Install and configure PHP with IIS – Windows Server

Install and configure PHP with IIS – Windows Server

There are two ways of installing and configuring PHP with IIS on windows server.

1. Using Web Platform Installer

2. Manual.

Here, I am explaining how to install IIS and PHP, and configuring PHP with IIS.

Installing IIS.

  1.  Open Add Roles and Features Wizard. Click Next.

  2.  In Installation type, select Role-based or feature-based installation and click Next.

  3. In Server Selection screen, select currect server or the server you want to add IIS role.

  4. In Serve Roles window, select Web Server (IIS) and click Next.

  5. Click Add Features.

  6. Click Next.

  7. Click Next

  8. Select GCI and Click Next in Role Services.

  9. In the confirmation window, Click Install.

  10. Wait for the installation to complete. You will get a confirmation message that the role is installed. (Installation succeeded.)

  11. Open web browser and type http://localhost . You must see a web page Internet Information Services.

configuring PHP with IIS.

  1. Download PHP zip file from 
  2. Extract zip file to c:\php
  3. Download the WinCache extension from
  4. Execute file and extract the content to c:\php\ext
  5. Open COntrol Panel -> System and Security -> System -> Advanced system settings

  6. Click Environment Properties

  7. In System variables, select Path and add ;c:\php

  8. Open Internet Information Services (IIS) manager and double click Handler Mappings.

  9. Click add Module Mapping.

  10. Add the following information in add module mapping and clic OK.

  11. Click Default document.

  12. Add index.php

Testing php configuration:

Create an index.php document in C:\inetpub\wwwroot directory and browse to http://localhost/index.php

You should see php configuration.



Share on facebook
Share on twitter
Share on linkedin
Share on pinterest
Share on reddit
Share on skype
Share on telegram
Share on whatsapp
Share on email
Share on print

Leave a Reply

Your email address will not be published. Required fields are marked *

Post comment