PHP 5 on IIS 6 giving 404 error and how to fix it
How hard can installing PHP on IIS on a Windows 2003 server be? It turns out that it can be very hard even if you follow every step-by-step in the world.I have spent the last two hours trying to get it to work, but despite my best efforts I kept getting a 404 error whenever I tried to browse a PHP page.
Here’s how I fixed it. It turns out that the installer configured IIS for using .php extension using the 8.3 file naming format (getting the dll to be named as pgp5is~1.dll). This was throwing things out of whack.
I simply edited this entry to Browse again to the actual path and saved that. This solved the problem.
Below is the screenshot:

This screen can be reached by going to “Home Directory” tab in web site properties, and then clicking on the configuration button.
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

September 20th, 2007 at 8:32 am
Dude this worked for me.
i can’t believe this was it.
you are the man.
September 20th, 2007 at 11:27 am
@Vlad: I am glad
September 20th, 2007 at 4:02 pm
[...] posts which symbolizes all that I like about blogging. I had made a post about how I was having a hard time getting PHP to run on IIS6. And after lots of searching on the net, I still couldn’t find a solution to my problem, till [...]
September 27th, 2007 at 6:16 am
amazing… works perfectly:)
September 28th, 2007 at 3:02 pm
Thank god for you whoever the hell you are
April 17th, 2008 at 10:12 pm
Thank You! You are the man!