PHP on IIS 7.0

May 10th, 2009 by Cip

IIS 7 looks nothing like IIS 6. But fear not, just because it’s sexier than ever it doesn’t mean that you cant set up PHP in less than a minute!

Ladies and gentlemen, start your stopwatches (and webengines?)!

  1. Go to PHP.net and download the latest ZIP package for Windows.

     
  2. Extract into a folder that doesn’t make the path have spaces in it.
    Wrong:
    C:\Program Files\PHP
    Correct:
    C:\ProgramFiles\PHP      

    Obviously doesn’t need to be in ProgramFiles, it’s just an example.

  3. Launch IIS
  4. Select your server and click Handler Mappings

     
  5. Add Script Map

     
  6. Set Request Path to *.php and Executable to be php5isapi.dll in your PHP folder

     
  7. Press OK and allow it permissions to do its thing (press Yes in the inevitable permissions popup).

     
  8. Done!

Now, normally you would want to add index.php to your Default Documents list, but I assume you know how/will Google it. Enjoy your new PHP server! :-)


2 Responses to “PHP on IIS 7.0”

Feed for this Entry Trackback Address
  1. 1 Thomas Deml

    Or you try Web Platform Installer 2.0 Beta if you want it even faster:
    http://www.microsoft.com/web/downloads/platform.aspx

  2. 2 Cip

    Well I already have IIS, and I don’t really want SQL Server or Visual Web Developer, this guide is aimed at those who just want the core PHP extension.

    Seems neat though! :-)

Leave a Reply