First, install a good IIS
The specific installation method can be viewed: http://www.jb51.net/article/21274.htm.
Second, download and install IIS FastCGI
Download Address: http://www.iis.net/download/fastcgi. Select x86 or download x86 and download the name for Fcgisetup_1.5_rtw_x86.msi. After installation, there will be 5 more files in the C:\WINDOWS\system32\inetsrv\ directory fcgiconfig.js,fcgiext.dll,fcgiext.ini,fcgilicense.rtf, Fcgireadme.htm
This time there is an extra fastcgi in the IIS6 Web services extension Handler
Download and install the PHP5.3.8 under IIS
Download address http://windows.php.net/download/, download the zip version of VC9 x86 Non Thread safe, and extract to the desired directory, which needs to be given user read run permissions.
questions about PHP VC9 and VC6 and version selection for thread safe and non thread safe
Http://www.jb51.net/article/26646.htm
Iv. configuration and modification of content
1. Modification of environment variable
My Computer-> Properties-> Advanced-> Environment Variables-> system variables, added to the last side of path; E:\PHP\
2, fastcgi installation directory changes (registered PHP to fastcgi)
Open the C:\WINDOWS\system32\inetsrv\fcgiext.ini file, and at the end of the file, add the following statement:
[Types] (This is the original file, in [Types] followed by the following statement can be, to all oh otherwise will be an error. )
php=php
[PHP]
Exepath=e:\php\php-cgi.exe
instancemaxrequests=10000
activitytimeout=600
requesttimeout=600
Environmentvars=php_fcgi_max_requests:10000,phprc:e:\php\
3, PHP.ini Modification PHP5.3.8 installation directory is not php.ini this file, only Php.ini-development and php.ini-production, we change php.ini-development to PHP.ini (Of course, if you are afraid of mistakes you can back up first).
Note: First set up a folder named TMP, location at random, I put it in E:\PHP\tmp. (Upload_tmp_dir will use, Upload_tmp_dir is used to define the temporary path of the upload file storage, you can modify and define an absolute path to it, also need to have read, write permissions). Use Search (shortcut key: ctrl+f) to change the following keyword to the current value:
Short_open_tag = Off (this is the default is so we don't change it.) )
Note: This is off state, the probe is not available, and some programs will be 500 errors, such as the imperial backup King, so if there are these requirements can be set to on!
Upload_tmp_dir = Change to upload_tmp_dir= "E:\PHP\tmp"
Cgi.force_redirect = 1 Change to Cgi.force_redirect=0
Fastcgi.impersonate = 1; change to fastcgi.impersonate=1;
Put Extension_dir = "ext" changed to extension_dir= "E:\PHP\ext"
Date.timezone = Change to Date.timezone =PRC (if you do not modify Date.timezone, it is possible to prompt 500 errors when you open the Web page.) Someone also changed the value to Asia/shanghai, I have not tried you can try. )
In Windows extensions, remove the semicolon preceding the extension (;):
; Extension=php_curl.dll
; Extension=php_gd2.dll
; Extension=php_ldap.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
4.Internet Information Services (IIS) Manager modifications
(1) Web site Properties "Home Directory" Configuration "add
Executable file Fill C:\WINDOWS\system32\inetsrv\fcgiext.dll
Extension fill in. php.
Action-> Limited to Get,head,post.
(2) Site-> Properties-> Document-> Add default content index.php. It's all configured here, so be sure to restart the IIS service.
5, testing
Write a piece of test code in text:
Copy Code code as follows:
Save as index.php, name arbitrarily, as long as the suffix is. php is OK. Put index.php in the root directory, I am here C:\Inetpub\wwwroot, and then enter http://localhost/index.php in the browser can get the information returned.
If the error appears as follows, your computer does not have the VC9 runtime, Visual C + + 2008
Microsoft Visual C + + 2008 Redistributable Package (x86)
Download address: Http://www.microsoft.com/downloads/zh-cn/details.aspx? Familyid=9b2da534-3e03-4391-8a4d-074b9f2bc1bf&displaylang=zh-cn
Install it after downloading it.