Web Hosting Talk







View Full Version : Problem installing php on windows 2000


AC1
09-12-2002, 06:58 AM
Hi

I have my website running OK on a unix server on the web, but I want to set it up on my local windows 2000 PC for testing as I currently use a dialup connection to the internet.

I am running windows 2000, PWS, php and mysql.

Everytime I call my php screens I get the error

Warning: Failed opening 'c:\inetpub\wwwroot\it_and_computing.php' for inclusion (include_path='.;C:\php4\pear') in unknown on line 0

I have tried numerous things from the php installation manual as well as looking at the mailing lists but I still can't get it working, maybe I am missing something obvious here.

I have checked all the following:
a) I have made sure the file it_and_computing.php exists in the specified directory
b) I have checked I only have 1 php.ini file in the winnt group
c) I have changed the include_path parameter in the php.ini file and the include_path in the warning message changes accordingly, so I believe it is using the php.ini file.
d) I have removed all include statements from my PHP code as this is not fully supported in windows 2000 version of php.
e) I have checked the permissions on the file and everyone can read the file
f) The calling screen and the php screen are both located in the same directory.
g)pws has execution permissions to webroot

Any ideas as to what else I could try?

Thanks in advance for any help,

Cheers

Andy

CJCS
09-12-2002, 07:44 AM
Hy,

this is a permission problem.

Try to set the permissions to Full Access to your webserver user then try again. If it works, then pull back some permissions and try again, and again and again...

Greetings
Oliver

AC1
09-14-2002, 03:33 PM
Hi

I have allowed my PWS full access and I still get the same error, is there anything else I could maybe try?

Cheers
Andy

prosayist
09-14-2002, 04:18 PM
.. it may or may not apply to your situation, but 'good' coding practice is, if you're including a file in the current directory, use
include'./filename.ext';
/*rather than*/
include'filename.ext';
which sometimes prevents those kind of errors

AC1
09-15-2002, 10:52 AM
Hi Prosayist,

It can't be this as I have removed all the include commands from my code and included the code directly in the php code.

Andy