{"id":1602,"date":"2013-06-24T16:15:05","date_gmt":"2013-06-24T08:15:05","guid":{"rendered":"http:\/\/www.huzs.top\/?p=1602"},"modified":"2013-06-24T16:31:30","modified_gmt":"2013-06-24T08:31:30","slug":"windows-server-2003-%e9%85%8d%e7%bd%aephp%e6%94%af%e6%8c%81","status":"publish","type":"post","link":"https:\/\/www.huzs.top\/?p=1602","title":{"rendered":"Windows Server 2003 \u914d\u7f6ephp\u652f\u6301"},"content":{"rendered":"<p><span style=\"text-decoration: underline;\"><strong>\u4e00\u3001\u8981\u51c6\u5907\u7684\u8f6f\u4ef6\u5305\uff1a<\/strong><\/span><br \/>\u64cd\u4f5c\u7cfb\u7edf:Windows Server 2003 \u4f01\u4e1a\u7248\uff08X86\uff09<br \/><strong>1\u3001Microsoft Visual C++ 2008 Redistributable Package<\/strong> (x86)<br \/><a href=\"http:\/\/www.microsoft.com\/zh-cn\/download\/details.aspx?id=29\" target=\"_blank\">http:\/\/www.microsoft.com\/zh-cn\/download\/details.aspx?id=29<\/a><br \/><a href=\"http:\/\/download.microsoft.com\/download\/7\/5\/0\/7502f4e9-1f90-4895-9259-1bde67b8b9a1\/vcredist_x86.exe\" target=\"_blank\">http:\/\/download.microsoft.com\/download\/7\/5\/0\/7502f4e9-1f90-4895-9259-1bde67b8b9a1\/vcredist_x86.exe<\/a><\/p>\n<p>Microsoft Visual C++ 2008 Redistributable Package (x64)<br \/><a href=\"http:\/\/www.microsoft.com\/zh-cn\/download\/details.aspx?id=15336\" target=\"_blank\">http:\/\/www.microsoft.com\/zh-cn\/download\/details.aspx?id=15336<\/a><\/p>\n<p><strong>2\u3001FastCGI 1.5 for IIS 6 and 5.1<\/strong>(x86)<br \/><a href=\"http:\/\/download.microsoft.com\/download\/E\/0\/C\/E0C0709A-66E5-4113-9A6C-A5F65BF6717D\/fcgisetup_1.5_rtw_x86.msi\" target=\"_blank\">http:\/\/download.microsoft.com\/download\/E\/0\/C\/E0C0709A-66E5-4113-9A6C-A5F65BF6717D\/fcgisetup_1.5_rtw_x86.msi<\/a><\/p>\n<p>FastCGI 1.5 for IIS 6 and 5.1(x64)<br \/><a href=\"http:\/\/download.microsoft.com\/download\/6\/0\/2\/60237D55-DABA-4FF1-921B-786E0A968049\/fcgisetup_1.5_rtw_x64.msi\" target=\"_blank\">http:\/\/download.microsoft.com\/download\/6\/0\/2\/60237D55-DABA-4FF1-921B-786E0A968049\/fcgisetup_1.5_rtw_x64.msi<\/a><\/p>\n<p><strong>3\u3001.NET Framework 2.0<\/strong> (x86)<br \/><a href=\"http:\/\/download.microsoft.com\/download\/c\/6\/e\/c6e88215-0178-4c6c-b5f3-158ff77b1f38\/NetFx20SP2_x86.exe\" target=\"_blank\">http:\/\/download.microsoft.com\/download\/c\/6\/e\/c6e88215-0178-4c6c-b5f3-158ff77b1f38\/NetFx20SP2_x86.exe<\/a><br \/><a href=\"http:\/\/download.microsoft.com\/download\/c\/6\/e\/c6e88215-0178-4c6c-b5f3-158ff77b1f38\/NetFx20SP2_x64.exe\" target=\"_blank\">http:\/\/download.microsoft.com\/download\/c\/6\/e\/c6e88215-0178-4c6c-b5f3-158ff77b1f38\/NetFx20SP2_x64.exe<\/a><br \/><a href=\"http:\/\/download.microsoft.com\/download\/c\/6\/e\/c6e88215-0178-4c6c-b5f3-158ff77b1f38\/NetFx20SP2_ia64.exe\" target=\"_blank\">http:\/\/download.microsoft.com\/download\/c\/6\/e\/c6e88215-0178-4c6c-b5f3-158ff77b1f38\/NetFx20SP2_ia64.exe<\/a><\/p>\n<p><strong>4\u3001PHP 5.3<\/strong> (5.3.26)<br \/><a href=\"http:\/\/windows.php.net\/download\/\" target=\"_blank\">http:\/\/windows.php.net\/download\/<\/a><br \/>\u4e0b\u8f7d\u7684\u65f6\u5019\u6709\u51e0\u4e2a\u4e0d\u540c\u7248\u672c\u9009\u62e9\u3002\u90a3\u5c31\u662fVC6 X86\u548cVC9 X86\u3002<br \/>(1)\u3001VC6\u5c31\u662flegacy Visual Studio 6 compiler\uff0c\u5c31\u662f\u4f7f\u7528\u8fd9\u4e2a\u7f16\u8bd1\u5668\u7f16\u8bd1\u7684\u3002\u5982\u679c\u4f60\u662f\u5728windows\u4e0b\u4f7f\u7528Apache+PHP\u7684\uff0c\u8bf7\u9009\u62e9VC6\u7248\u672c\uff1b<br \/>(2)\u3001VC9\u5c31\u662fthe Visual Studio 2008 compiler\uff0c\u5c31\u662f\u7528\u5fae\u8f6f\u7684VS\u7f16\u8f91\u5668\u7f16\u8bd1\u7684\u3002\u5982\u679c\u4f60\u662f\u5728windows\u4e0b\u4f7f\u7528IIS+PHP\u7684\uff0c\u8bf7\u9009\u62e9VC9\u7248\u672c\uff1b<\/p>\n<p>(1)\u3001Non Thread Safe\u5c31\u662f\u975e\u7ebf\u7a0b\u5b89\u5168\uff1b<br \/>(2)\u3001Non Thread Safe \u662f\u7ebf\u7a0b\u5b89\u5168\uff1b<br \/>\u5b98\u65b9\u5e76\u4e0d\u5efa\u8bae\u4f60\u5c06Non Thread Safe \u5e94\u7528\u4e8e\u751f\u4ea7\u73af\u5883\uff0c\u6240\u4ee5\u6211\u4eec\u9009\u62e9Thread Safe \u7248\u672c\u7684PHP\u6765\u4f7f\u7528\u3002<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>\u4e8c\u3001\u5b89\u88c5\u6b65\u9aa4\uff1a<\/strong><\/span><br \/>1.\u5b89\u88c5\u5b8c\u524d3\u6b3e\u6587\u4ef6<\/p>\n<p>2.\u89e3\u538bphp-5.3.26-nts-Win32-VC9-x86.zip\u6587\u4ef6\u5230<\/p>\n<pre>C:\\php\\<\/pre>\n<p>3.\u5b89\u88c5\u5b8cFastCGI\u6587\u4ef6,\u53ef\u4ee5\u5728Internet\u4fe1\u606f\u670d\u52a1(IIS)\u7ba1\u7406\u5668\u4e2d\u67e5\u770b\u5230\uff08\u9ed8\u8ba4\u662f\u7981\u6b62\u7684\uff0c\u9700\u53cc\u51fb\u6216\u70b9\u51fb\u6309\u94ae\u5141\u8bb8\uff09<\/p>\n<p>\u914d\u7f6eFCGIEXT.ini\u6587\u4ef6<br \/>\u7f16\u8f91 <\/p>\n<pre>C:\\WINDOWS\\system32\\inetsrv\\fcgiext.ini<\/pre>\n<p>\u6587\u4ef6,\u5728\u6700\u540e\u589e\u52a0<\/p>\n<pre>[Types]<br>php=PHP<br>[PHP]<br>ExePath=C:\\php\\php-cgi.exe<br><\/pre>\n<p>\u8fd8\u53ef\u589e\u52a0\u5982\u4e0b\u66f4\u591a\u7684\u914d\u7f6e<\/p>\n<pre>InstanceMaxRequests=10000<br>ActivityTimeout=300<br>RequestTimeout=300<br>EnvironmentVars=PHP_FCGI_MAX_REQUESTS:10000,PHPRC:ExePath=C:\\php\\ext<\/pre>\n<p>\u914d\u7f6ePHP.ini\u6587\u4ef6<\/p>\n<p>1.\u590d\u5236C:\\php\\php.ini-development\u6587\u4ef6,\u5e76\u6539\u540d\u4e3aphp.ini<\/p>\n<p>2.\u4fee\u6539PHP.ini\u6587\u4ef6\u4e2d,\u5c06\u9009\u9879\u524d\u7684&#8221;;&#8221;\u53f7\u53bb\u6389\uff08\u6ce8\u610f\uff0c\u6587\u4ef6\u8def\u5f84\u662f\u5426\u6b63\u786e\u3002\uff09<\/p>\n<pre><br>extension=ext\/php_gd2.dll<br>extension=ext\/php_mbstring.dll<br>extension=ext\/php_mysql.dll<br>extension=ext\/php_mysqli.dll<br>extension=ext\/php_pdo_mysql.dll<br>extension=ext\/php_pdo_sqlite.dll<br>extension=ext\/php_sqlite.dll<br>extension=ext\/php_sqlite3.dll<br><br>[Date]<br>; http:\/\/php.net\/date.timezone<br>date.timezone = Asia\/Shanghai<br><br>upload_max_filesize = 20M<\/pre>\n<p>\u914d\u7f6eIIS\u7684PHP\u6269\u5c55\u652f\u6301<\/p>\n<p>\u7f51\u7ad9-\u5c5e\u6027-\u4e3b\u76ee\u5f55-\u914d\u7f6e-\u6dfb\u52a0\uff08\u4e0b\u9762\u56fe\u91cc\u9762\u9009\u62e9\u7684\u662f\u201c\u9ed8\u8ba4\u7f51\u7ad9\u201d\uff0c\u4e0d\u4e88\u7406\u4f1a\uff0c\u64cd\u4f5c\u65b9\u6cd5\u662f\u4e00\u6837\u7684\uff09<br \/><a href=\"http:\/\/www.huzs.top\/wp-content\/uploads\/2013\/06\/001.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1603\" alt=\"001\" src=\"http:\/\/www.huzs.top\/wp-content\/uploads\/2013\/06\/001.png\" width=\"415\" height=\"465\" \/><\/a><\/p>\n<p><a href=\"http:\/\/www.huzs.top\/wp-content\/uploads\/2013\/06\/002.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1604\" alt=\"002\" src=\"http:\/\/www.huzs.top\/wp-content\/uploads\/2013\/06\/002.png\" width=\"890\" height=\"455\" \/><\/a><br \/>\u53ef\u6267\u884c\u6587\u4ef6:[C:\\WINDOWS\\system32\\inetsrv\\fcgiext.dll]<\/p>\n<p>\u6269\u5c55\u540d:[.php]<\/p>\n<p>\u9650\u5236\u4e3a:[GET,HEAD,POST]<br \/><a href=\"http:\/\/www.huzs.top\/wp-content\/uploads\/2013\/06\/003.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1605\" alt=\"003\" src=\"http:\/\/www.huzs.top\/wp-content\/uploads\/2013\/06\/003.png\" width=\"443\" height=\"460\" \/><\/a><\/p>\n<p><strong>\u6d4b\u8bd5PHP<\/strong><\/p>\n<p>\u5efa\u7acb\u4e00\u4e2a\u6587\u672c\u6587\u4ef6,\u4ee3\u7801\u53e6\u5b58\u4e3aindex.php<\/p>\n<p>&lt;?php<br \/>phpinfo();<br \/>?&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u8981\u51c6\u5907\u7684\u8f6f\u4ef6\u5305\uff1a\u64cd\u4f5c\u7cfb\u7edf:Windows Server 2003 \u4f01\u4e1a\u7248\uff08X86\uff091\u3001Microsoft  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-1602","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.huzs.top\/index.php?rest_route=\/wp\/v2\/posts\/1602","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.huzs.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.huzs.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.huzs.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.huzs.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1602"}],"version-history":[{"count":0,"href":"https:\/\/www.huzs.top\/index.php?rest_route=\/wp\/v2\/posts\/1602\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.huzs.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1602"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.huzs.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1602"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.huzs.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1602"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}