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.

If you found this content helpful, then please help by linking to me. You can also help me by sharing the content using any of these nifty buttons above. Thank you.



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.

11 Responses to “PHP 5 on IIS 6 giving 404 error and how to fix it”

  1. Dude this worked for me.

    i can’t believe this was it.

    you are the man.

    Reply
  2. amazing… works perfectly:)

    Reply
  3. Thank god for you whoever the hell you are

    Reply
  4. Thank You! You are the man!

    Reply
  5. 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.

    Reply
  6. Thanks dude!

    Reply
  7. Great stuff, fixed my issue! Thank you.

    Reply
  8. It’s in for me, but I still get the 404.. :(

    Reply




Leave a Reply