At present, many websites were written primarily in PHP. But the server environments on which the websites run may not be FreeBSD, Linux. Many PHP websites run on Windows 2000, Windows 2003, and Windows Server 2008.According as many tests; PHP on Windows Server 2008 has advantages. Now, we’ll show how easy it is to get PHP up and configured on your IIS7 webserver.
The system environment: Vista/Windows Server 2008.
Firstly, install IIS7 such as control panels\programmers and features, windows, by default; remember to choose the two options of ISAPI.
The next step is to install PHP.
Download PHP and Windows binaries. Unzip the php…zip file to your drive. I usually unzip it to D:\php.In this catalog, find php.ini-dist and rename it php.ini. Open php.ini :at first, find extension_dir=”./”,and replace it with extension_dir=”d:\php”; and then find Windows Extensions ,do the following modifications: extension=php_mbstring.dll
extension=php_gd2.dll
extension=php_MySQL.dll
and then save the modifications, copy the file to the system windows directory .
The third step is to create the application pool, whose type is .net which is set as “unmanaged type”.
After all of these steps, you create a new Web site and start “Read” and “Run script” permissions, and then add ISAPI Filters and Handler Mapping.
Finally,add D:\PHP\php5isapi.dl into Handler Mapping.
Now, successfully, you have installed PHP on ISS7.