FastCGI and IIS 7
The FastCGI component is built-in to Microsoft IIS 7 (on Windows Server 2008 and Windows Vista SP1) but it is an optional component and is not installed as part of the "vanilla" Server 2008 or Vista setup. You have to manually install it. See the Using FastCGI to Host PHP Applications on IIS 7.0 article on iis.net for instructions on how to do this.
If you are running IIS 7 you can skip this section and go right ahead and install PHP after you've enabled FastCGI in IIS.
[Types]
php=PHP
[PHP]
ExePath=C:\PHP\php-cgi.exe
InstanceMaxRequests=10000
EnvironmentVars=PHP_FCGI_MAX_REQUESTS:10000
ActivityTimeout=300
NOTE
The ExePath variable must point to the folder where you installed PHP (if you did not use C:\PHP).
You can also do the above fcgiext.ini file configuration via the command line:
![]()
NOTE
It is not necessary to run the above commands on the command line if you manually added the PHP settings to the fcgiext.ini file as described in point 3 above. The command line is just an alternative way to configure the fcgiext.ini file.
FastCGI is now installed on the web server. You now need to configure IIS for PHP and add the script mapping for the .php extension so that the web server knows how to process .php files.