Web Server deploys a PHP Web site under IIS under IIS
A. Reference address:
Windows8
Http://www.cnblogs.com/haocool/archive/2012/10/14/windows-8-iis-to-configure-php-runtime-environment.html
Windows Server2008
Http://www.jb51.net/article/38048.htm
Two. Steps to summarize yourself:
IIS configuration:
To download the required package files:
1. Download the PHP installation file: Php-5.4.4-nts-win32-vc9-x86.zip
Unzip, rename to PHP; copy php.ini-development to PHP.ini
Open php.ini with Notepad and make the following changes:
Extension_dir = "D:\php\ext" #设置php模块路径
Date.timezone = PRC #设置时区为中国时区
Register_globals = on #开启GET数据调用
Short_open_tag = on #php支持短标签
Cgi.force_redirect = 0 #开启以CGI方式运行php
Fastcgi.impersonate = 1;
Cgi.rfc2616_headers = 1
The following PHP extension module, select on as required, cancel the preceding semicolon to start the corresponding extension module
Extension=php_curl.dll
Extension=php_gd2.dll
Extension=php_mbstring.dll
Extension=php_exif.dll
Extension=php_mysql.dll
Extension=php_mysqli.dll
Extension=php_sockets.dll
Extension=php_xmlrpc.dll
Extension=php_pdo_mysql.dll
2. Download the PHP acceleration software: Zendguardloader-php-5.3-windows.zip Unzip, copy the ZendLoader.dll file in the package folder and put it into C:\PHP\ext\ Under the path (that is, the downloaded PHP package file corresponds to the Ext folder)
Two. Configure IIS to support PHP:
1. FastCGI Settings:
(1) Add or edit an application
(2) Select the full path: C:\PHP\php-cgi.exe
(3) Monitor changes to the file: C:\php\php.ini
(4) Environment variables:
Add Member
Nmae:php_fcgi_max_requests
value:10000
2. Handler mappings:
Add Module mappings
Request Path: *.php
Module: Fastcgimodule
Executable file: C:\PHP\php-cgi.exe
Name: PHP
Three. PS:
Depending on your needs, there may be steps that you don't need.
Web Server deploys a PHP Web site under IIS under IIS