I have used the Web Platform Installer 2.0 beta to install php on IIS6.
I tried this first on a test server with success.
When I did this on the production server and browse to a test php file, I see:
The page cannot be found
Is there anything I need to configure in IIS 6 to get this working?
There are a number of things you need to check:
This article shows the steps for setting up PHP manually, it may be worth following it through to check you have all steps completed.
If you are attempting to go to index.php by addressing the root of a folder (i.e.
http://localhost/
) and you are getting a 404, then you may need to addindex.php
to the list of default documents.If you are getting a 404 error trying to access a specific page (i.e.
http://localhost/index.php
), then there may be an issue with how you are attempting to access the page - not necessarily a problem with the php config in IIS.If I remember correctly, when php is not configured correctly, you would get a mime-type error which may attempt to save a copy of the page, but not a
file not found
error.Also, in IIS6, FastCGI needs to be installed (download it here) and enabled through the "add Windows components" tool.
I had the exact same problem which was due to manual ISAPI installs of old installations of php.
The problem is just the configuration of "Default Web Site", click properties -> Home Directory -> Configuration.
Scroll to .php and change the executable path to: C:\WINDOWS\system32\inetsrv\fcgiext.dll (previously this will have been C:\Program Files\PHP\php5isapi.dll)
Click the Limit to: and type GET,HEAD,POST
Done.