1. Decompress php-5.2.6.zip to D: php5, find php. ini-dist and change it to php. ini and put it in the C: WINDOWS directory. 2. Set libmcrypt under the D: php5 directory. dll and libmysql. dll and php5ts. dll to C: WINDOWSsystem32 (this is to make these three files can be called by IIS to facilitate loading the corresponding module) 3. Open W
1. Decompress php-5.2.6.zip to D: \ php5, find php. ini-dist and change it to php. ini and put it in the C: \ WINDOWS directory. 2. Set libmcrypt under the D: \ php5 directory. dll and libmysql. dll and php5ts. dll to C: \ WINDOWS \ system32 (this is to make these three files can be called by IIS to facilitate loading the corresponding module) 3. Open W
1. Decompress php-5.2.6.zip to D: \ php5, find php. ini-dist and change it to php. ini and put it in the C: \ WINDOWS directory.
2. Set libmcrypt under the D: \ php5 directory. dll and libmysql. dll and php5ts. dll to C: \ WINDOWS \ system32 (this is to make these three files be called by IIS to facilitate loading the corresponding modules)
3. Open php. ini in the WINDOWS directory,
Change display_errors = On to display_errors = Off (indicating no error information is displayed. It is best to set it in the launch environment so that the program error information is not displayed to the viewer)
Change extension_dir = "./" to extension_dir = "G:/php5/ext" (change the extension module path)
Find
; Extension = php_gd2.dll (this is used to support the GD library)
; Extension = php_mbstring.dll)
; Extension = php_mysql.dll (required to support MYSQL)
Remove ";" in front of the text. You can also remove the previous text if you need it. Then, close and save the file.
4. Open Control Panel → Administrative Tools → Internet Information Service (IIS) manager, expand local computer → website, right-click the default website, and select Properties.
5. Click the "ISAPI filter" tab, and then click "add". In the "filter attributes" dialog box that appears, enter the Filter Name "php" and the executable file "D: \ php5 \ php5isapi. dll "and click" OK "to exit.
6. Click the "handler ing" tab, click the "add script ing" button, and fill in the content as shown in:
7. Click the "document" tab to add index. php as the default homepage"
8. Click "application pool" and select "add application pool ":
9. Restart IIS and add the following file named "index. php" under the IIS root directory:
10. Open IE and enter "http: // localhost/or http: // 127.0.0.1/" in the address bar. The PHP configuration is successful, as shown in the following figure, if it fails, check whether the website directory permission and IIS permission are configured.