• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1857
  • Last Modified:

PHP 5.2.4 IIS 6 Windows 2003 PHP install not working

I cannot get PHP to display on my webserver.  Everytime I browse to a .php page it displays a page cannot be found error even though html pages display fine.

The setup is as follows:
Server:  Windows 2003 Enterprise SP2 fresh load with all patches

IIS 6.0: Standard install with no extra options (ala just check the IIS option under Add/Remove programs and taking all of the defaults)

PHP: I downloaded the 5.2.4 Win32 install and took all of the default options.  The only selection I made was for the IIS ISAPI module as my web server (I also tried IIS CGI and that didn't work either).  No customizations or extra options were installed.

I've tried using the test code for php that I've found on several websites:


and testing with the following address  http://servername/test.php.... no go.

I keep getting a page cannot be found (http 404) error.  Even though the file is there (I've also tried index.php and yes I've added that into default documents as a valid index extension).

FYI I'm a network/server admin so I know the server stuff inside and out but I'm no code ninja so please go easy on me :)

Any help would be appreciated as I'd like to convert from an Apache to an IIS server ASAP. (and yes it needs to be converted...no I won't reconsider staying with Apache)

Thanks - Spyder
1 Solution

This is a good tutorial, make sure you have done all that has been specified in there?
spyder357Author Commented:
I figure out what's going on.  The PHP install did not create a mapping for the .php extension.

I found this website that helped me out.  That would seem to be a requirement that the install should take care of...guess not.


Mods can you please refund my points.
Closed, 250 points refunded.
Community Support Moderator
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now