Related software Download:
1 , PHP:
http://windows.php.net/downloads/releases/
1 , installing the Microsoft Visual C + + Redistributable Package (x86)
Double-click Vc++.exe
2 , install IIS7, install the CGI service note
3 , install PHP
Unzip the php-5.6.30-nts-win32-vc11-x86 file
Rename the folder to PHP, copy the PHP folder to the D packing directory
4 , modify PHP.ini
Open D:\php
Copy php.ini-development Save as PHP.ini
Open php.ini with Notepad
Make the following changes:
Extension_dir = "D:\php\ext" # Set the PHP module path
Date.timezone = PRC # set time zone to China time zone
register_globals = on # turn on Get data call
Short_open_tag = on #php support for short labels
cgi.force_redirect = 0 # turn on CGI to run 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_pdo_mysql.dll
Extension=php_sockets.dll
Extension=php_xmlrpc.dll
The ";" in front of the above common components Remove.
6 , configuring IIS to support PHP
Open IIS
Double-click the computer name under "Start Page" on the Left
Find the middle IIS section and need to re-build a Web site open "Handler mappings"
650) this.width=650; "title=" 1.gif "src=" https://s4.51cto.com/wyfs02/M01/99/B6/wKioL1lLdJDxZTihAAD6j_ Ludde391.gif-wh_500x0-wm_3-wmp_4-s_831081855.gif "alt=" Wkiol1lldjdxztihaad6j_ludde391.gif-wh_50 "/>
650) this.width=650; "title=" 2.gif "src=" Https://s5.51cto.com/wyfs02/M01/99/B6/wKioL1lLdhGwo_ 7oaad1oe2sdhe483.gif-wh_500x0-wm_3-wmp_4-s_1506404848.gif "alt=" Wkiol1lldhgwo_7oaad1oe2sdhe483.gif-wh_50 "/>
7 , after configuration is complete, configure FastCGI Settings:
650) this.width=650; "title=" 3.png "src=" https://s5.51cto.com/wyfs02/M01/99/B6/ Wkiom1lldkgb4nhkaafthvozx9g844.png-wh_500x0-wm_3-wmp_4-s_1648211832.png "alt=" Wkiom1lldkgb4nhkaafthvozx9g844.png-wh_50 "/>
right click "FastCGI set " Span style= "font-family:arial, ' Sans-serif '; background: #f9f9f9; color: #444444;" > " "
650) this.width=650; "title=" 11.png "src=" https://s5.51cto.com/wyfs02/M02/99/B6/ Wkiol1lldnvrkzckaaiu-owvcsg992.png-wh_500x0-wm_3-wmp_4-s_791078975.png "alt=" Wkiol1lldnvrkzckaaiu-owvcsg992.png-wh_50 "/>
Right-click "D:\php\php-cgi.exe", Select " Edit " :
650) this.width=650; "title=" 22.png "src=" https://s5.51cto.com/wyfs02/M02/99/B6/wKiom1lLdp_ Igeiuaacjrduvp-u328.png-wh_500x0-wm_3-wmp_4-s_3449219533.png "alt=" wkiom1lldp_igeiuaacjrduvp-u328.png-wh_50 "/ >
Monitor changes to the file: D:\php\php.ini650) this.width=650; "title=" 33.png "src=" https://s3.51cto.com/wyfs02/M00/99/B6 /wkiol1lldsrhie-0aaa95id2594461.png-wh_500x0-wm_3-wmp_4-s_1258648756.png "alt=" Wkiol1lldsrhie-0aaa95id2594461.png-wh_50 "/>
SELECT environment variable, then click Add, add php_fcgi_max_requests,
note: Use Span style= "font-family:arial, ' Sans-serif '; color: #000000;" >x64php You can not configure the program pool, but use the 32 php must be configured for the appropriate site program pool
" Application Pools "– Locate the same program pool as the site name " Dvbbs" – " Advanced Settings " :
650) this.width=650; "title=" 123.png "src=" https://s5.51cto.com/wyfs02/M02/99/B6/ Wkiol1lldvrss7syaad2zaaz3uq522.png-wh_500x0-wm_3-wmp_4-s_1482456154.png "alt=" Wkiol1lldvrss7syaad2zaaz3uq522.png-wh_50 "/>
Create and specify a site directory Create a index.php inside the folder
, <?
Phpinfo ();
?>
permissions to the Site Directory IIS add index.php in the default directory
Complete configuration, restart IIS .
This article is from the "high-tech blog" blog, please be sure to keep this source http://gpj1997.blog.51cto.com/12830710/1940977
Windows Server R2 (x64) iis7+php5.6.30 (FastCGI) environment setup