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

    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?

      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

        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.

          2 months later

          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?

            Write a Reply...