# Thread: Problem installing php on windows 2000

1. Newbie
Join Date
Aug 2002
Location
Originally from Bolton, England. I have been working in Brussels, Belgium for the last 2.5 years.
Posts
29

## Problem installing php on windows 2000

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

2. Junior Guru Wannabe
Join Date
Jun 2001
Location
Germany
Posts
69
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

3. Newbie
Join Date
Aug 2002
Location
Originally from Bolton, England. I have been working in Brussels, Belgium for the last 2.5 years.
Posts
29
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

4. Junior Guru Wannabe
Join Date
Dec 2001
Location
New Hampshire
Posts
93
.. 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
PHP Code:
 include'./filename.ext';  /*rather than*/ include'filename.ext';  
which sometimes prevents those kind of errors

5. Newbie
Join Date
Aug 2002
Location
Originally from Bolton, England. I have been working in Brussels, Belgium for the last 2.5 years.
Posts
29
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

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•