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(); ?> |
留言