1. Download fastcgi for IIS6.
2. Download the PHP Windows version, unzip to the d:/php directory, and give the user group permission to read and run the directory.
3. Register PHP to fastcgi, open the C:/windows/system32/inetsrv/fcgiext.ini file, and add the configuration under [Types]:
[Types] php = php
[PHP] ExePath = D:/php/php-cgi.exe
4. Configure php.ini, modify the corresponding content as follows:
Extension_dir=d:\php/ext
Fastcgi.impersonate = 1
5. Configure Web site: Website, properties, home directory, configuration, add, executable path, C:\windows\system32\inetsrv/fcgiext.dll
6. Modify the configuration file C:\windows\system32\inetsrv\fcgiext.ini:
[Types]
php=php
[PHP]
Exepath=c:\program Files\php\php-cgi.exe
instancemaxrequests=10000
activitytimeout=300
requesttimeout=600
Environmentvars=php_fcgi_max_requests:10000,phprc:c:\program files\php\
Changes the path in all configuration files to include a forward slash to a backslash.
IIS configuration fastcgi running PHP