PHP 5.2.4 IIS 6 Windows 2003 PHP install not working

Posted on 2007-10-15
Last Modified: 2013-12-13
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 I won't reconsider staying with Apache)

Thanks - Spyder
Question by:spyder357
    LVL 21

    Expert Comment


    This is a good tutorial, make sure you have done all that has been specified in there?

    Accepted Solution

    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.
    LVL 1

    Expert Comment

    Closed, 250 points refunded.
    Community Support Moderator

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Consider the following scenario: You are working on a website and make something great - something that lets the server work with information submitted by your users. This could be anything, from a simple guestbook to a e-Money solution. But what…
    If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now