Its Pretty simple to Install and configure PHP in Windows 2008. Here are the steps.
1) Download PHP from http://www.php.net/downloads.php. I get the zip package because I think it is just as easy, and gives me control over setup.
2) Unzip the PHP…zip file to your drive. I usually unzip it to C:\php
3) Copy the c:\php\php.ini-dist file to c:\windows\php.ini. Tweak it as needed.
4) Install IIS7, making sure you install the ISAPI Extension component (for PHP-ISAPI) or the CGI component (if you prefer CGI) during IIS installation (ISAPI and CGI are *not* installed by default)
5) Open the IIS Manager (C:\windows\system32\inetsrv\inetmgr.exe
6) Click on “Handler Mappings”
7) Click on the “Add Script Map” task on the right (in blue):
8) Fill in the dialog box like this:
Request Path: *.php
Click “yes” if you click “Yes” it will automatically register this ISAPI /CGI with the extension restriction list – the feature we added in IIS6 to prevent unauthorized executables from running on the server. This saves time, and considering the fact that you’re adding the script-map, it’s a safe bet you want it to run. 🙂
9) Go to your C:\inetpub\wwwroot directory and create a test.php page. You can use the simple
<?php phpInfo(); ?>
function to test if PHP is working correctly.