(1) Prepare the Installation File
1. FastCGI http://www.iis.net/expand/FastCGI
2. php http://windows.php.net/download/
3. Visual C ++ 2008 redistributable package
Http://www.microsoft.com/downloads/details.aspx? Familyid = 9b2da534-3e03-4391-8a4d-074b9f2bc1bf & displaylang = ZH-CN
4. Windows cache extension for PHP
Http://www.iis.net/download/WinCacheForPHP
(2) Start Installation
1. Install FastCGI first. Follow the prompts to install FastCGI. After installation, FastCGI handle service extension will appear.
Open fcgiext. ini in the c: \ windows \ system32 \ inetsrv directory
Add under [Types]
PHP = PHP
[PHP]
PHP path should be changed according to your own situation
Exepath = D: \ progra ~ 1 \ PHP \ php-cgi.exe
Open IIS, right-click the website, and choose "home directory"> "Configure ing"> "add ".
Executable File: c: \ windows \ system32 \ inetsrv \ fcgiext. dll
Extension:. php
2. The next step is to install PHP. Here we will talk about the zip version. You can skip this step.
Decompress php-5.3.2-nts-win32-vc9-x86.zip to a directory. Here I use "D: \ Program Files \ PHP"
Copy PHP. ini-development or PHP. ini-production and rename it to PhP. INI (Note: PHP. INI can be directly stored in the PHP Directory without moving it)
Modify parameters:
Extension_dir = "Ext"
CGI. force_redirect = 0
FastCGI. Impersonate = 1;
Date. timezone = Asia/Shanghai
Date. default_latitude = 31.7667
Date. default_longpolling = 121.4500
3. Visual C ++ 2008 redistributable package is the PHP version of VC support library. vc9 needs to be installed. Follow the prompts to "Next ".
4. Windows cache extension for PHP is an extension module that improves execution efficiency. decompress the package and copy it to D: \ progra ~ 1 \ PHP \ ext directory. Add the following at the end of PHP. ini:
[Php_wincache]
Extension = php_wincache.dll