By the time the dispatch was made (September 25, 2009), PHP was the latest version of 5.3.0, but the 5.3.0 in IIS is fastcgi, and I never got it done on Vista IIS7.
Finally I used the old method, ISAPI, selected a version of the previous 5.3, I chose 5.2.11.
Download address for Php-5.2.11-win32.zip
Http://cn2.php.net/distributions/php-5.2.11-Win32.zip
If the above address is not easy to start, you can also go to the following address to download from other mirrors
Http://cn.php.net/get/php-5.2.11-Win32.zip/from/a/mirror
Download the Php-5.2.11-win32.zip back, the inside of the file into the C:\php directory (or D disk E is all right, but I used to put C disk).
Also make sure that in Vista "turn on or off Windows features" you will not only install IIS, but also install two important ISAPI components, as shown in the following illustration:
Here we start configuring PHP ...
1, the PHP directory under the php.ini-dist (display extension) to php.ini, and then open with Notepad, found in the Extension_dir = "./", and then the inside of the./Change to c:\php (that is, the path to the PHP to extract).
2, or in php.ini this file, find the following three lines, remove the semicolon before them (with a semicolon is the meaning of the annotation)
Extension=php_mbstring.dll
Extension=php_mssql.dll
Extension=php_mysql.dll
3, Save the php.ini, and then copy to the Windows directory.
4, open the Vista management tool in the Internet Information Services (IIS) Manager, in the "Application Pool" in the new application pool, named PHP. NET version is "no managed code."
5, in the "ISAPI filter" right click "Add", named PHP, executable file selected as C:\php\php5isapi.dll.
6, in the "ISAPI and CGI restrictions" in the right button "add", the path is selected as C:\php\php5isapi.dll, described also written in PHP, check "allow the extension path to execute."
7, in the "processor mapping" in the right key "add script map", the request path fill *.php, executable file also select C:\php\php5ispai.dll, name also called PHP.
8, the above work finished after the basic completion, the following test:
Build a folder in the directory specified by IIS, called PHP (I want to build php+iis, mainly because I want to develop and manage the project is both PHP, ASP and. NET), Then in this PHP directory to create a new file phpinfo.php, inside the content is the classic PHP test function:
Phpinfo ();
?>
Open the browser after saving to see the results: localhost/php/phpinfo.php, if you can see a page similar to the following shows you succeed: