How to Install PHP on IIS

Installation of PHP on IIS includes following steps. This blog provides configuration about IIS 6 shipped with Window XP Service Pack 3.
  •  Download latest version of PHP from Note you should download installer version not the zip version. Installer version automatically performs all necessary configurations. If we use zip version, Environmental variables must be modified manually
  •  Run the setup and choose installation directory for example C:\PHP
  •  On next screen choose your version of web server, here choose IIS ISAPI and click next.
  •  On next screen in the extension portion choose extensions to be installed on local hard drive and click Install. You may add and remove extension later.
To test your PHP installation,
Now open your favorite text editor and type following :
$str = “I am PHP”;
Echo $str;
Save this file as “test.php” in C:\Inetpub\wwwroot (assuming windows installation directory is C:) . Now open browser and type :
If page show PHP message, it means your installation is successful.
Remember PHP installer has added path of C:\php in “PATH” Environmental variable and has also added .PHP extension in IIS configuration.

Author: Nimit Sharma

Hey I am Nimit Sharma, Working as a Lead Software Engineer. I am willing to learn new concepts and technologies. All content here are my personal views and not those of my employer.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s