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 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!
February 19th, 2009 at 9:01 pm
You are deffinately the man. This has saved me so much work I can’t even tell you. I’m not a PHP guy. So this was a huge break through.
February 24th, 2009 at 5:06 pm
Thanks dude!
May 28th, 2009 at 1:37 pm
Great stuff, fixed my issue! Thank you.
May 29th, 2009 at 7:02 pm
I am glad
August 29th, 2009 at 4:26 am
It’s in for me, but I still get the 404..