Windows 2016 IIS10.0+PHP+MySQL鐜澧冩惌寤虹2/3椤

2021 年 7 月 10 日1700

Windows 2016 IIS10.0+PHP+MySQL鐜澧冩惌寤虹2/3椤

鏍忕洰锛win鏈嶅姟鍣ㄩ棶棰樻眹鎬

鏃堕棿锛2019-07-15 09:42

IIS7缃戠珯鐩戞帶锛

蹇閫熷噯纭鐨勬娴嬬綉绔欐槸鍚﹁鍔鎸侊紝鏌ョ湅鍩熷悕鏄鍚﹁澧欙紝绮惧噯鐨凞NS姹℃煋妫娴嬶紝鍏峰囩綉绔欐墦寮閫熷害妫娴嬪姛鑳斤紝绗涓鏃堕棿鐭ラ亾缃戠珯鏄鍚﹁榛戙佽鍏ヤ镜銆佽鏀规爣棰樸佽鎸傞粦閾俱傜簿鐩婃眰绮剧殑浜у搧锛岀己闄蜂负闆舵暟鎹鎻愪緵锛

IIS7缃戠珯鐩戞帶鍦板潃锛http://http://www.zjjv.com///b/wzjk/

===============================================================================

Windows Server 2016鏄寰杞浜2016骞10鏈13鏃ユe紡鐨勫彂甯冩渶鏂版湇鍔″櫒鎿嶄綔绯荤粺锛屾垜浠浠婂ぉ鏉ヨ︾粏鐪嬬湅鍦╓indows Server 2016涓濡備綍鎼寤簆hp+mysql鐨勭幆澧

涓銆佸畨瑁匬HP

1銆乂isual C++ Redistributable for Visual Studio 2015 锛坸86銆亁64锛

瀹夎

瀹夎呭畬鎴愩傚叧闂

缁х画瀹夎厁64

瀹屾垚

2銆佸畨瑁卲hp-7.1.0-nts-Win32-VC14-x86.zip

瑙e帇php-7.1.0-nts-Win32-VC14-x86.zip鏂囦欢

閲嶅懡鍚嶆枃浠跺す涓簆hp锛屾妸php鏂囦欢澶规嫹璐濆埌C鐩樻牴鐩褰

鎵撳紑C:\php

澶嶅埗php.ini-production涓簆hp.ini

鐢ㄨ颁簨鏈鎵撳紑php.ini

鍋氬備笅淇鏀癸細





extension_dir = "C:\php\ext" #璁剧疆php妯″潡璺寰刣ate.timezone = PRC #璁剧疆鏃跺尯涓轰腑鍥芥椂鍖簊hort_open_tag = On #php鏀鎸佺煭鏍囩綾gi.force_redirect = 0 #寮鍚浠CGI鏂瑰紡杩愯宲hpfastcgi.impersonate = 1;cgi.rfc2616_headers = 1

浠ヤ笅php鎵╁睍妯″潡锛屾牴鎹闇瑕侀夋嫨寮鍚锛屽彇娑堝墠闈㈢殑鍒嗗彿涓哄紑濮嬬浉搴旀墿灞曟ā鍧





extension=php_curl.dllextension=php_gd2.dllextension=php_mbstring.dllextension=php_exif.dllextension=php_mysqli.dllextension=php_sockets.dllextension=php_xmlrpc.dllextension=php_pdo_mysql.dll

鏈鍚庯紝淇濆瓨閫鍑

3銆侀厤缃甀IS鏀鎸丳HP

鎵撳紑鎺у埗闈㈡澘

绯荤粺鍜屽畨鍏

绠$悊宸ュ叿

鎵撳紑Internet Information Services(IIS)绠$悊鍣

鍙屽嚮宸﹁竟“璧峰嬮〉”涓嬮潰鐨勮$畻鏈哄悕绉

鎵惧埌涓闂寸殑IIS閮ㄥ垎

鎵撳紑“澶勭悊绋嬪簭鏄犲皠”

鐐瑰彸杈圭殑“娣诲姞妯″潡鏄犲皠”

璇锋眰璺寰勶細*.php

妯″潡锛欶astCgiModule

鍙鎵ц屾枃浠讹紙鍙閫夛級锛欳:\php\php-cgi.exe

鍚嶇О锛欶astCGI

鏈鍚庯紝纭瀹

鍙屽嚮宸﹁竟“璧峰嬮〉”涓嬮潰鐨勮$畻鏈哄悕绉

鎵惧埌涓闂寸殑IIS閮ㄥ垎锛屾墦寮“FastCGI璁剧疆”

鍙抽敭閫変腑锛欳:\php\php-cgi.exe鐒跺悗閫夋嫨缂栬緫

鐩戣嗗规枃浠舵墍鍋氱殑鏇存敼锛欳:\php\php.ini

鐜澧冨彉閲忥紝鐐规梺杈圭殑"..."

鐐“娣诲姞”

Name锛歅HP_FCGI_MAX_REQUESTS

涓婁竴绡囷細濡備綍杩滅▼绠$悊杩炴帴浜戜富鏈哄拰VPS(鏈嶅姟鍣)

涓嬩竴绡囷細iis搴旂敤绋嬪簭姹犵洃鎺ф柟娉曞疄渚

1 0