How to Install PHP 5 or Greater with Microsoft IIS 6.0 on Windows Server 2003

December 28th, 2008 · No Comments · Microsoft

This article will aid you with installing, configuring, and running PHP 5 or greater in synchronization with IIS 6.0 on a Windows Server 2003 operating system. This combination is quite popular and can be very useful for those who are comfortable with a Microsoft Windows environment.


The following is assumed:

  1. Microsoft Windows Server 2003 is Installed, Configured, and Running
  2. PHP ( files have been uploaded to default directory and has been properly configured, including any modifications to PHP.ini
  3. PHP Default Install (directory) Location is C:\PHP
  4. Default configurations and permissions exist
  5. Microsoft IIS 6.0 is Installed, Configured, and Running

The first thing you’ll need to do is open IIS manager. Go to Start >> Run then type inetmgr and click OK

IIS Manager

This will open the IIS manager. Next do these steps.

  1. Select and Highlight Web Service Extension in the right-hand panel
  2. Click on “Add New Web Service Extension” in the left-hand panel
  3. Type PHP as the Extension Name
  4. Click Add and Browse to PHP Install Location (i.e. C:\PHP\php5isapi.dll)
  5. Check the box to Set the Extension to Allowed

PHP Script Configuration

Now you’ll need to add the php5isapi.dll as an application extension in the website configuration. Make sure IIS manager is still open

  1. Select and Highlight Web Sites Container in the right-hand panel
  2. Right-click on the Web Sites Container and Select Properties
  3. Select the Home Directory Tab
  4. Change Execute Permissions to Scripts Only (or Scripts and Executables if needed. NOTE: if you do not need “Scripts and Executables” or not sure then choose Scripts Only)
  5. Click on the Configuration Button
  6. Under Application Extensions Click on Add
  7. For Executable Field Browse to C:\PHP\php5isapi.dll
  8. Type .php in the Extension Field
  9. Select Limit To for the Verbs and type GET,HEAD,POST in the Verbs Limit To Field
  10. Leave All Other Defaults and Click OK
  11. Click OK All the Way Out

PHP 5+ should now be properly configured to work with IIS 6.0 on Windows Server 2003.

Test IIS and PHP config

Test that PHP works with your IIS configuration

  1. Create a new website in IIS (or use an existing website)
  2. In the root directory of your website create a file called “phpinfo.php”
  3. Inside the phpinfo.php file type or copy/paste the following lines:


  1. Save the file in the root directory of your website
  2. Open your web browser and navigate to the file by typing into your web browser

If you see the PHP configuration page then PHP is successfully installed and works with IIS. If you do not see the PHP configuration page and receive a blank or error page then you should troubleshoot the issue and retry the steps above.

Do you have any questions, suggestions, or feedback? Then let’s here it, leave a comment below.

Tags: ·

No Comments so far ↓

There are no comments yet...Kick things off by filling out the form below.

Leave a Comment