This paper is reproduced from https://www.zh30.com/win7-iis7-php.html
Method One, install use Phpmanager
1. Download and install Phpmanager, official address: http://phpmanager.codeplex.com/.
2. Create and configure PHP.ini. Rename the Php.ini-development file to php.ini and modify Date.timezone= "Asia/shanghai". Go to the semicolon to open the desired extension, not to repeat here.
3. Open IIS7, double-click Phpmanager in the main panel, and click on "Register new PHP Version", select your Php-cgi.exe, OK. The rest of the configuration will be set up automatically for you.
4. Complete.
Method Two, manually configure the CGI mode (php5.3)
1. Create and configure PHP.ini, Ibid. 2.
2. Open IIS7, double-click the handler mapping in the main panel, and click "Add Module Map ..." In the right-hand menu, set as follows:
Request path: *.php;
module: fastcgimodule;
Executable file: Php-cgi.exe in your PHP folder;
Name: PHP;
3. Complete.
Method Three, manually configuring the ISAPI mode (php5.2)
1. Create PHP.ini. Php.ini-dist renamed to PHP.ini, open to find extension_dir= "/", change the path to your PHP path.
2. Add an application pool, set as follows:
Name: PHP;
. NET Framework version: no managed code;
Managed piping mode: integration
Tick start the application pool immediately.
Are you sure.
3. Double-click ISPA and CGI restrictions. Add a limit, set as follows:
ISAPI or CGI path: your php5isapi.dll.
Description: PHP.
Tick allows the extension path to be executed.
Are you sure.
4. Add an ISAPI filter, set as follows:
Filter Name: PHP;
Executable file: your Php5isapi.dll file;
Are you sure.
5. Add script Mappings. Double-click the handler mapping and click "Add script Map ..." On the right menu, set as follows:
Request path: *.php;
Executable file: your Php5isapi.dll file;
Name: PHP5;
Are you sure.
6. Complete.