Install IIS 7.0
Open the control panel\programs\programs and Features\turn Windows Features in oroff, and in the Open dialog box, tick the two options:
Click OK to wait a moment, and IIS is ready to install.
Install PHP 5.2.6
1. Download: PHP 5.2.6; Other versions of PHP downloads.
2. Unzip the compressed package and place it in a directory, such as D:\php
3. Copy the php.ini-dist to the C:\Windows directory and change the name to PHP.ini
4. Copy Php5ts.dll and Libmysql.dll to C:\Windows\System32
Configuring IIS
1. Add ISAPI filter (ISAPI Filters)
2. Configuration handler mapping (Handler mappings)
Test
Create a new text file, enter <?php phpinfo (),?> Save as a php file, and store it in the file directory (C:\inetpub\wwwroot) of the Default Web Site, and enter HTTP://LOCALH in the browser Ost/test.php can view the deployed PHP information.