Click to See Complete Forum and Search --> : Getting "page not found" on local php page


k89mmmk
08-03-2004, 01:42 PM
Hi All,

Something doesn't seem to be working and I'm at a loss. Any help is appreciated.

I'm using XP Prof. with IIS running. I just downloaded and installed the PHP installer. I created a new virtual directory pointing the the folder in C:/inetpub/wwwroot/php. There are two files in this folder: index.html and index.php. When I access http://localhost/php/index.html, it loads fine, but when I access http://localhost/php/index.php, it says "File Not Found". Both files are in the same directory. Is there something I'm missing?

Thanks!
MK

Messer
08-03-2004, 02:05 PM
I am having a similar problem but with a slightly different scenario.

I am running Apache on windowsXP. I have php installed and for one directory it works fine. In another directory and *.php file gives me a page not found error. Sounds like a chmod problem but I have no clue how to fix it. Any help?

MarkR
08-03-2004, 02:09 PM
Sounds like an installation problem with the PHP on IIS.

Read the instructions properly; if it requires you to have any .exe or .dll in your /scripts directory, ensure that they are there.

If you have remove the /scripts virtual directory, you might have to recreated it in order for PHP pages to work (This is a guess based on how IIS plugins usually work).

Mark

k89mmmk
08-03-2004, 02:32 PM
Problem solved ... but I'm not sure why. I had tryed to install php manually first (downloading the .zip file instead of the installer), and later decided to go with the installer, after which my problem above occured. So I just deleted everything I had copied based on instructions for the .zip file, deleted the installed files and started over. Now it works. Huh.

heylan
10-08-2004, 09:21 AM
Hi,

I think I know why. I had the same problem with IIS 5.1 as well. It turns out that after I disabled the root_doc directive in php.ini, the virtual directory works properly.

I guess this directive is really meant for Apache?