Install PHP on IIS7
This article will detail the procedure required to install PHP on IIS7.
Download the PHP installation files to your server: http://www.php.net/get/php-5.2.12-Win32.zip/from/a/mirror
Extract the installation .zip file to C:\PHP on your server.
Copy the C:\PHP\PHP.INI-Recommended file and rename it to C:\PHP\PHP.INI
Open Internet Information Services (IIS) Manager by going to Start > Administrative Tools.
Click on the server name in the left window pane, and double-click Handler Mappings
Click Add Module Mapping... on the right
Enter the following:
Request Path: *.php
Module: FastCgiModule
Executable: C:\PHP\php-cgi.exe
Name: PHP5
Click on the server name in the left window pane again, and double-click ISAPI and CGI Restrictions
Click Add... on the right
Enter the following:
ISAPI or CGI path: C:\PHP\php-cgi.exe
Description: PHP
[x] Allow extension path to execute
Your server should now be ready to serve PHP requests. You can test PHP functionality by putting the following line of code into a .php file on your server:
<?php phpinfo() ?>