Home PHP Basics Configure PHP on IIS

Relevant sites

Configure PHP on IIS PDF E-mail
Thursday, 26 February 2009 08:09

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

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

 

<?php

phpinfo();

?>



 

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

Http://localhost/fist.php.

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 clink on Website and clik Properties. A screen like below appear

 

IIS server Administration

 

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

 

IIS configuration

 

Note .PHP extension here.

 



Last Updated on Sunday, 07 June 2009 16:47