Configuration of PHP on IIS includes following steps. This guide provides configuration about IIS 5.1 shipped with Window XP sp2.

1- 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

2- Run the setup and choose installation directory for example C:PHP

3- On next screen choose your version of web server, here choose IIS ISAPI and click next.

4- 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

Save this file as “first.php” in C:Inetpubwwwroot ( assuming windows directory is C:) . Now open browser and type


If page show PHP configuration, 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.

To view it GO to Control Panel–Administrative Tools and open “Internet Information Services”

And explore this as shown in figure


Now Right clik on Website and clik Properties. A screen like below appear


Here clink on Home Directory tab and clink on Configuration Button,it will open configuration as under


Note .PHP extension here.

Comments are closed.