{"id":26,"date":"2013-12-19T23:02:13","date_gmt":"2013-12-19T15:02:13","guid":{"rendered":"http:\/\/web.jofar.cn\/?p=26"},"modified":"2013-12-19T23:02:13","modified_gmt":"2013-12-19T15:02:13","slug":"%e5%9c%a8win2003-iis6-ntfs%e4%b8%8b%e8%a3%85php%e9%9c%80%e8%a6%81%e5%bc%80%e6%94%be%e7%9a%84%e6%9d%83%e9%99%90","status":"publish","type":"post","link":"https:\/\/web.jofar.cn\/?p=26","title":{"rendered":"\u5728Win2003 IIS6 NTFS\u4e0b\u88c5PHP\u9700\u8981\u5f00\u653e\u7684\u6743\u9650"},"content":{"rendered":"<p>\u4ee5\u4e0b\u5185\u5bb9\u5728www.jofar.cn\u4e0a\u7684VPS\u4e0a\u5b9e\u9645\u4f7f\u7528\u8fc7\uff0c\u6743\u9650\u7684\u786e\u5f88\u91cd\u8981<\/p>\n<p>\u5728Windows Server 2003\/ IIS 6.x\u4e0a\u5b89\u88c5PHP 5.x\u65f6\u8bf7\u9605\u8bfb\u4ee5\u4e0b\u6587\u4ef6. \u8ba9\u5b83\u5de5\u4f5c\u8d77\u6765\u7684\u8fc7\u7a0b\u771f\u662f\u5f88\u6709\u632b\u8d25\u611f, \u6240\u4ee5\u5e0c\u671b\u6211\u7684\u7ecf\u5386\u53ef\u4ee5\u8ba9\u5176\u4ed6\u4eba\u5c11\u8d70\u5f2f\u8def.<\/p>\n<p>\u5728\u6839\u636e\u7f51\u7edc\u6559\u7a0b\u5b89\u88c5PHP 5\u524d<br \/>\n\u8bf7\u9605\u8bfb\u4ee5\u4e0b\u63d0\u793a:<br \/>\n\u8fd9\u4e9b\u662f\u6211\u627e\u5230\u7684\u53ef\u4ee5\u5b89\u5168\u5de5\u4f5c\u7684\u6743\u9650\u8bbe\u7f6e:<br \/>\nNTFS\u6743\u9650(\u53f3\u952e\u5355\u51fb\u6587\u4ef6\u6216\u6587\u4ef6\u5939, \u9009\u62e9\u5c5e\u6027, \u6253\u5f00\u5b89\u5168\u9875)<br \/>\n1) PHP\u5b89\u88c5\u76ee\u5f55 -&gt; \u4f60\u9700\u8981\u7ed9NT\u7528\u6237:&#8217;Network Service&#8217; \u8bfb\/\u8fd0\u884c \u6743\u9650(\u5982C:\/PHP). \u5982\u679c\u4f60\u5728\u5b89\u88c5\u76ee\u5f55\u91cc\u6709\u4e00\u4e2a tmp \u6216 session \u76ee\u5f55, \u4f60\u9700\u8981\u5bf9\u8fd9\u4e9b\u76ee\u5f55\u7ed9&#8217;Network Service&#8217;\u7528\u6237 \u8bfb\/\u8fd0\u884c \u548c \u5199 \u6743\u9650. *(\u4f60\u4e0d\u9700\u8981\u5bf9PHP\u5b89\u88c5\u6587\u4ef6\u7ed9\u533f\u540dInternet\u7528\u6237&#8217;IUSR_[name]&#8217;\u4efb\u4f55\u6743\u9650.<br \/>\n2) \u4f60\u9700\u8981\u5bf9\u5b9e\u9645\u7684WWW\u6839\u76ee\u5f55\u548c\u7f51\u9875 .php\u6587\u4ef6(\u5982\u679c\u4f60\u60f3\u5e94\u7528\u5230\u5168\u90e8\u7ad9\u70b9)\u6216\u6bcf\u4e00\u4e2a\u7ad9\u70b9\u7684\u6839\u76ee\u5f55\u548c.php\u6587\u4ef6(\u5982\u679c\u662f\u591a\u4e2a\u8fd0\u884c\u7684\u7ad9\u70b9)\u7ed9\u533f\u540dInternet\u7528\u6237&#8217;IUSR_[name]&#8217; \u8bfb\/\u8fd0\u884c \u6743\u9650<br \/>\n3) \u5bf9\u4e8eIIS6.0\u63a7\u5236\u53f0, \u5982\u679c\u7ad9\u70b9\u5c5e\u6027(\u53f3\u51fb\u67d0\u72ec\u7acb\u7ad9\u70b9\u6216\u7f51\u7ad9\u6839\u7ed3\u70b9\u4ee5\u5e94\u7528\u5230\u5168\u90e8\u7ad9\u70b9-&gt;\u9009\u62e9\u5c5e\u6027) \u5728\u76ee\u5f55\u5b89\u5168\u9875-&gt;\u5355\u51fb\u7f16\u8f91, \u5982\u679c\u4f60\u5e0c\u671b\u7ad9\u70b9\u53ef\u4ee5\u88ab\u533f\u540d\u8bbf\u95ee, \u9009\u4e2d\u533f\u540d\u8bbf\u95ee\u7684\u591a\u9009\u6846\u5e76\u8f93\u5165\u7528\u6237\u540d:&#8217;IUSER_[name]&#8217; (IUSER_[name]\u6839\u636e\u4f60\u7684\u670d\u52a1\u5668\u7684\u7528\u6237\u8bbe\u7f6e\u800c\u81ea\u5b9a\u4e49)<br \/>\n4) *\u6700\u91cd\u8981\u7684*<br \/>\n\u6839\u636e\u5176\u4ed6\u4eba\u63d0\u53ca\u7684, \u5b89\u88c5\u548c\u8bbe\u7f6ePHP.INI\u65f6, \u5148\u4e0d\u8981\u6253\u5f00\u4efb\u4f55\u6269\u5c55EXTENSIONS. \u539f\u56e0\u662f\u5982\u679c\u67d0\u4e00\u4e2a\u6269\u5c55extension\u51fa\u9519, \u9519\u8bef\u63d0\u793a\u6846\u4f1a\u5f39\u51fa\u5728\u8fdc\u7a0b\u684c\u9762\u4e4b\u5916, \u4f60\u5c06\u4e0d\u80fd\u5173\u95ed\u90a3\u4e2a\u5bf9\u8bdd\u6846, \u800c\u4f60\u7684PHP\u9875\u9762\u5c31\u4f1a\u65e0\u9650\u671f\u6302\u8d77(\u51fa\u73b0\u8fd9\u4e2a\u95ee\u9898\u540e, \u4e3a\u4e86\u89e3\u51b3\u6211\u51e0\u4e4e\u8981\u75af\u4e86)<br \/>\n\u7136\u540e\u5728\u4f60\u6210\u529f\u6253\u5f00\u6d4b\u8bd5PHP\u9875\u540e, \u518d\u53bb\u628aPHP.INI\u6587\u4ef6\u91cc\u7684\u6269\u5c55extensions\u4e00\u6b21\u5168\u90e8\u6253\u5f00.<br \/>\n\u5982\u679c\u4f60\u6709\u4efb\u4f55\u6211\u6ca1\u6709\u63d0\u53ca\u7684\u6280\u5de7,\u8bf7\u53d1\u90ae\u4ef6\u7ed9\u6211. \u518d\u6b21\u58f0\u660e, \u6211\u5e76\u4e0d\u4e13\u4e1a, \u4e5f\u5728\u5b66\u4e60\u4e2d.<br \/>\n\u73b0\u5728\u4f60\u8bfb\u5b8c\u4e86\u8fd9\u4e9b, \u6253\u5f00\u6211\u5728\u9876\u90e8\u53d1\u7684\u94fe\u63a5, \u8ddf\u7740\u6559\u7a0b\u5b8c\u6210\u4e00\u822c\u7684\u8bbe\u7f6e\u5b89\u88c5.<\/p>\n<p>iis6.0+php5.3 fastcgi\u5b89\u88c5\u65b9\u5f0f<\/p>\n<p>2010-05-18 11:09:36| ?\u5206\u7c7b\uff1a PHP | ?\u6807\u7b7e\uff1aphp ? |\u5b57\u53f7 \u8ba2\u9605<\/p>\n<p>PHP\u5b98\u65b9\u6b63\u5f0f\u53d1\u5e03\u4e86PHP5.3.0\uff0c\u8fd9\u662f\u4e00\u4e2a\u4e0d\u5bfb\u5e38\u7684PHP\u7248\u672c\uff0c\u56e0\u4e3a\u5b83\u4fee\u590d\u4e86\u4e0d\u5c11Bug\uff08\u8d85\u8fc7140\u4e2a\uff09\uff0c\u800c\u4e14\u5e26\u6765\u4e86\u5f88\u591a\u8ba9PHP\u7a0b\u5e8f\u5458\u4eec\u671f\u5f85\u5df2\u4e45\u7684\u65b0\u7279\u6027\u3002PHP 5.3\u53d1\u5e03\u7684Windows\u7248\u5df2\u7ecf\u4e0d\u652f\u6301ISAPI\u6a21\u5f0f\u4e86\uff0c\u8981\u7528\u5230\u5fae\u8f6f\u63a8\u8350\u7684FastCGI\u65b9\u5f0f\u8fd0\u884cPHP\uff0c\u901f\u5ea6\u5feb\u4e86\u4e0d\u5c11\u3002<br \/>\n\u51c6\u5907\u5b89\u88c5\u6587\u4ef6\uff1a<br \/>\n1. FastCGI for IIS 6 http:\/\/www.iis.net\/expand\/FastCGI<br \/>\n2. PHP 5.3 http:\/\/windows.php.net\/download\/<br \/>\n3. wincache53_rc.exe http:\/\/www.microsoft.com\/downloads\/details.aspx?familyid=BA2E0D7A-02CE-42BE-A7A3-2BAA5D666BF7&amp;displaylang=en<br \/>\n\u5f00\u59cb\u5b89\u88c5\uff1a<br \/>\n\u9996\u5148\u5b89\u88c5 FastCGI\uff0c\u5b89\u63d0\u793a\u5b89\u88c5\u5373\u53ef\uff0c\u5b89\u88c5\u5b8c\u6210\u540e\u4f1a\u51fa\u73b0 fastcgi handle \u7684\u670d\u52a1\u6269\u5c55\u3002<br \/>\n\u63a5\u7740\u5b89\u88c5 PHP 5.3 ?\u4e5f\u6309\u63d0\u793a\u5b89\u88c5\u5373\u53ef\uff0c\u4f46\u6ce8\u610f\u6700\u597d\u5b89\u88c5\u5728D\u76d8\u3002<br \/>\nphp.ini \u4fee\u6539\u53c2\u6570\uff1a<br \/>\nextension_dir = &#8220;D:\\Program Files\\PHP\\ext&#8221;<br \/>\ncgi.force_redirect = 0<br \/>\nfastcgi.impersonate = 1;<br \/>\ndate.timezone = Asia\/Shanghai<br \/>\ndate.default_latitude = 31.7667<br \/>\ndate.default_longitude = 121.4500<br \/>\n\u5176\u4ed6\u5b89\u9700\u8981\u4fee\u6539\u3002<br \/>\n\u6253\u5f00 C:\\WINDOWS\\system32\\inetsrv \u76ee\u5f55\u4e0b\u7684 fcgiext.ini \u6dfb\u52a0\u5982\u4e0b\uff1a<br \/>\n[Types]<br \/>\nphp=PHP<br \/>\n[PHP]<br \/>\nExePath=D:\\Program Files\\PHP\\php-cgi.exe ? ?\u8fd9\u91cc\u7684\u8def\u5f84\u8bf7\u6309\u81ea\u5df1\u5b89\u88c5\u8def\u5f84\u4fee\u6539<br \/>\n\u6253\u5f00iis \uff0c\u70b9\u51fb \u7f51\u7ad9 \u53f3\u952e\u5c5e\u6027\uff0c\u4e3b\u76ee\u5f55\uff0d\u914d\u7f6e\uff0c\u6620\u5c04\uff0d\u6dfb\u52a0\uff0c<br \/>\n\u53ef\u6267\u884c\u6587\u4ef6\uff1aC:\\WINDOWS\\system32\\inetsrv\\fcgiext.dll<br \/>\n\u6269\u5c55\u540d\uff1a.php<br \/>\n\u89e3\u538b wincache53_rc.exe \uff0c\u628a php_wincache.dll \u62f7\u8d1d\u81f3 D:\\Program Files\\PHP\\ext<br \/>\n\u5e76\u5728 php.ini \u6700\u540e \u6dfb\u52a0\u5982\u4e0b\uff1a<br \/>\n[PHP_WINCACHE]<br \/>\nextension=php_wincache.dll<br \/>\n\u8fd9\u65f6 \u5728\u9ed8\u8ba4web \u65b0\u5efa phpinfo() \u7684\u6587\u4ef6\u5373\u53ef\u68c0\u67e5\u662f\u5426\u5b89\u88c5\u6210\u529f\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee5\u4e0b\u5185\u5bb9\u5728www.jofar.cn\u4e0a\u7684VPS\u4e0a\u5b9e\u9645\u4f7f\u7528\u8fc7\uff0c\u6743\u9650\u7684\u786e\u5f88\u91cd\u8981 \u5728Windows Server 20\u2026 <span class=\"read-more\"><a href=\"https:\/\/web.jofar.cn\/?p=26\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,12,5],"tags":[],"class_list":["post-26","post","type-post","status-publish","format-standard","hentry","category-cloud","category-server","category-practice-readme"],"_links":{"self":[{"href":"https:\/\/web.jofar.cn\/index.php?rest_route=\/wp\/v2\/posts\/26","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/web.jofar.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/web.jofar.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/web.jofar.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/web.jofar.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=26"}],"version-history":[{"count":0,"href":"https:\/\/web.jofar.cn\/index.php?rest_route=\/wp\/v2\/posts\/26\/revisions"}],"wp:attachment":[{"href":"https:\/\/web.jofar.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=26"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/web.jofar.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=26"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/web.jofar.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=26"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}