Windows IIS7 with PHP5 fires HTTP error 404

Question: I get HTTP error 404 on my PHP pages except the Default Website. I have reinstalled Win Server 2008 Std & IIS7 & PHP 5.3… Is there a particular way to set up IIS7 before installing PHP? If you have a Windows Server 2008 with IIS 7 – or Windows 7 with IIS 7.5 – and PHP 5.x has been installed by the downloaded MSI package, you may run into a problem. The 404 (Not Found) error message is one of the most hated screens on the Internet. We do not like it as it indicates that though you, the browser, were able to communicate with the server, but the page you need was not delivered either because it was not found or because the server for some reason was configured to not fulfill the request you made. There is a huge room for different errors. In your case you could find that PHP runs perfectly on the default c:\inetpub\wwwroot folder, but when you want to use other folders or virtual directories, PHP files fire 404 error messages. Try the followings: 1. Open your php.ini file and remove the value part of the open_basedir=’c:\inetpub\wwwroot’ line (ie. set to an empty key of open_basedir= ) . If you want to be sure that it stays empty, start the line with a semicolon:
; open_basedir=
2. Do the same with the doc_root =”c:\inetpub\wwwroot’ line:
; doc_root=
3. If you run PHP as a FastCGI module, save php.ini AND save it as php-cgi-fcgi.ini into the same PHP folder. PHP-CGI.EXE must reside in the very same folder. 4. Restart IIS Good luck.