You are here: Php On IIS - 404 Errors « All PHP « IT news, forums, messages
Php On IIS - 404 Errors

Posted by Martin Harran on 08/26/05 12:56

This is driving me nuts, I'm sure it is something simple or obvious I'm
missing but I just can't see it :(

Set up is W2003 SP1 i.e. IIS 6 with PHP Version 4.3.10

My basic structure is mydefaultsite.com under c:\inetpub\wwwroot. I also
have a number of sites, each with registered domain, which are stored on a
separate disk e.g. d:\Sites\myfirstsite, with HTTP headers for each site.

I'm using a simple test page called test.php to try this out, the page just
contains <?php phpinfo(); ?>

I cannot get this page to display in any of my sites in the d:\sites folder,
e.g myfirstsite.com\test.php gives "HTTP Error 404 - File or directory not
found".

It's not a php installation issue - if I create a virtual directory in my
default website pointing to folder containing myfirstsite.com, then
mydefaultsite.com\myvirtualdirectory\test.php displays ok.

It's not a script issue as an asp page works fine in both the above
situations.

Permissions seems the likely culprit but I've tried all the following to no
effect:

- sharing the myfirstsite folder with permission for everyone set to full
control
- enabling websharing on the myfirstsite folder
- specifically giving IUSR_machine name and IWAM_machinename access to the
d:\sites folder
- specifically giving IUSR_machine name and IWAM_machinename access to the
php.exe

One thing I do notice, is that IUSR_machine name and IWAM_machinename are
slightly out of kilter, the server name was changed after IIS was installed
and machinename is actually the former name but googling that suggests it
should not be an issue and is better left alone rather than trying to change
them.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация