Deploying IIS 7.5 FASTCGI PHP on Server Core
FastCGI is a language-independent, scalable, open extension to CGIthat provides high performance. The FastCGI extension is installable inServer Core and enables application frameworks such as PHP to achieveimproved performance and stability on Internet Information Services.Watch for recorded demonstrations of the following instructions at MSDNChannel9. Prerequisites See how-to configure IIS 7.5 on Server Core at http://code.msdn.microsoft.com/r2coreaspnet
IIS 7.5 (Enable the following components)
- IIS-WebServerRole
- IIS-WebServer
- IIS-CommonHttpFeatures
- IIS-StaticContent
- IIS-DefaultDocument
- IIS-DirectoryBrowsing
- IIS-HttpErrors
- IIS-ApplicationDevelopment
- IIS-HealthAndDiagnostics
- IIS-HttpLogging
- IIS-LoggingLibraries
- IIS-RequestMonitor
- IIS-Security
- IIS-RequestFiltering
- IIS-HttpCompressionStatic
- IIS-WebServerManagementTools
- WAS-WindowsActivationService
- WAS-ProcessModel
Install FASTCGI and PHP on Server Core 1. Install FastCGI feature for IIS. Run the following command:
dism /online /enable-feature /featurename:IIS-CGI |
3. Create a C:\php folder on Server Core.
4. Copy the php binaries to C:\php folder on Server Core.

Configure PHP on Server Core 1. We need to configure IIS7.5 to use PHP as a CGI execution environment. To do this, run the following command:
appcmd set config /section:system.webServer/fastCGI / [fullPath=''C:\php\php-cgi.exe''] |
appcmdset config /section:system.webServer/handlers/ [name=''PHP-FastCGI'',path=''*.php'',verb=''*'',modules=''FastCgiModule'',scriptProcessor=''C:\php\php-cgi.exe'',resourceType=''Either''] |
<?php phpinfo(); ?> |

评论

React 18的并发渲染确实是个重大改进,我们在项目中已经升级使用,性能提升明显!