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 http://www.php.net/downloads.php. 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 :
<?php
$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.