{"id":7,"date":"2011-01-01T15:52:52","date_gmt":"2011-01-01T15:52:52","guid":{"rendered":"http:\/\/hgtas.com\/?p=7"},"modified":"2011-01-01T15:55:34","modified_gmt":"2011-01-01T15:55:34","slug":"in-the-windows-iis-configure-wordpress-mu-environment","status":"publish","type":"post","link":"https:\/\/508.me\/?p=7","title":{"rendered":"\u5728Windows IIS\u4e0b\u914d\u7f6eWordPress MU\u73af\u5883"},"content":{"rendered":"<p>\u6628\u5929\u4ecb\u7ecd\u7684Windows Server 2003\u4e0b\u7684<a href=\"http:\/\/www.williamlong.info\/archives\/1354.html\" target=\"_blank\">IIS\u548cApache\u6027\u80fd\u6bd4\u8f83<\/a>\uff0c\u5176\u5b9eApache\u5728Linux\u73af\u5883\u4e0b\u7684\u6027\u80fd\u8fd8\u662f\u5f88\u4e0d\u9519\u7684\uff0c\u6211\u4e4b\u6240\u4ee5\u4f7f\u7528Windows Server 2003\u800c\u6ca1\u6709\u7528Linux\uff0c\u662f\u56e0\u4e3a\u6211\u5bf9Linux\u7684\u7ef4\u62a4\u5e76\u4e0d\u719f\u6089\uff0c\u56e0\u6b64\u624d\u4f7f\u7528Windows\u73af\u5883\u3002<\/p>\n<p>\u5728Windows\u73af\u5883\u4e0b\u4f7f\u7528IIS\u642d\u5efa\u548cLinux\u7684Apache\u4e00\u6837\u7684\u73af\u5883\u4e5f\u5e76\u975e\u4e0d\u53ef\u80fd\uff0c\u4e0b\u9762\u6211\u5c31\u4ecb\u7ecd\u4e00\u4e0b\u6211\u4f7f\u7528Windows Server 2003\u7684IIS\u642d\u5efa\u4e00\u4e2a\u548cApache\u4e00\u6837\u7684WordPress MU\uff08WordPress\u591a\u7528\u6237\u7248\uff09\u7684\u8fc7\u7a0b\u3002<\/p>\n<p>\u9996\u5148\u8981\u5b89\u88c5PHP\u548cMySQL\u73af\u5883\uff0c\u4e3a\u4e86\u65b9\u4fbf\u5b89\u88c5\uff0c\u53ef\u4ee5\u76f4\u63a5\u5b89\u88c5\u4e00\u4e2a<a href=\"http:\/\/www.williamlong.info\/archives\/1281.html\" target=\"_blank\">WAMP\u7684\u96c6\u6210\u5b89\u88c5\u73af\u5883<\/a>\uff0c\u53ef\u4ee5\u76f4\u63a5\u5c06Apache\u3001MySQL\u548cPHP\u5b89\u88c5\u597d\uff0c\u5c06\u5176\u5b89\u88c5\u4e3a\u670d\u52a1\u540e\uff0c\u7981\u7528Apache\u7684\u670d\u52a1\uff0c\u4ee5\u514d\u5176\u548cIIS\u51b2\u7a81\u3002<\/p>\n<p>\u63a5\u7740\u662f\u5728Windows Server  2003\u4e0b\u914d\u7f6ePHP\uff0c\u914d\u7f6e\u65b9\u6cd5\u662f\uff0c\u5728IIS\u7684\u201cWEB\u670d\u52a1\u6269\u5c55\u201d\u4e2d\uff0c\u6dfb\u52a0\u4e00\u4e2a\u65b0\u7684WEB\u670d\u52a1\u6269\u5c55\uff0c\u7a0b\u5e8f\u540e\u7f00\u4e3aPHP\uff0cISAPI\u7a0b\u5e8f\u4e3a php5isapi.dll\uff0c\u7136\u540e\u518d\u201c\u73af\u5883\u53d8\u91cf\u201d-\u201c\u7cfb\u7edf\u53d8\u91cf\u201d\u4e2d\u589e\u52a0\u53d8\u91cf\u540dPHPRC\uff0c\u6570\u503c\u4e3aphp.ini\u7684\u8def\u5f84\uff0c\u91cd\u542f\u670d\u52a1\u5668\u5373\u53ef\u5b8c\u6210PHP\u7684\u914d\u7f6e\u3002<\/p>\n<p>\u63a5\u4e0b\u6765\u5b89\u88c5WordPress MU\u73af\u5883\uff0c\u5b89\u88c5\u8fc7\u7a0b\u548cApache\u73af\u5883\u4e0b\u5b89\u88c5\u4e00\u6837\u3002<\/p>\n<p>\u6700\u540e\uff0c\u6700\u91cd\u8981\u7684\u4e00\u6b65\u5c31\u662f\u8bbe\u7f6eURL\u91cd\u5199\uff08URL rewriter\uff09\uff0c\u76ee\u524d\u6211\u4f7f\u7528\u7684\u662f\u4e00\u4e2a\u540d\u4e3a<a href=\"http:\/\/www.helicontech.com\/isapi_rewrite\/\" target=\"_blank\">ISAPI_Rewrite 3<\/a>\u7684ISAPI\u5b9e\u73b0\u7684\u8fd9\u4e2a\u529f\u80fd\uff0c3.0\u7248\u672cISAPI_Rewrite\u517c\u5bb9Apache\u7684mod_rewrite\u683c\u5f0f\uff0c\u53ef\u4ee5\u76f4\u63a5\u5c06.htaccess\u6587\u4ef6\u5185\u5bb9\u590d\u5236\u5230httpd.conf\u4e2d\uff0c\u53ef\u60dc\u8fd9\u4e2a\u8f6f\u4ef6\u7684\u514d\u8d39\u7248\u51cf\u5c11\u4e86\u5f88\u591a\u6709\u7528\u7684\u529f\u80fd\uff0c\u591a\u7ad9\u70b9\u8bbe\u7f6e\u6709\u70b9\u590d\u6742\u3002<\/p>\n<p>ISAPI_Rewrite\u5bf9\u4e8eApache\u7684mod_rewrite\u5e76\u4e0d\u662f\u5b8c\u5168\u517c\u5bb9\uff0c\u8fd8\u9700\u8981\u5bf9WordPress\u8fdb\u884c\u4e00\u4e9b\u4fee\u6539\uff0c\u6253\u5f00WordPress MU\u7684wp-settings.php\u6587\u4ef6\uff0c\u5728\u6587\u4ef6\u7684\u6700\u5f00\u5934\u589e\u52a0\u4e0b\u9762\u8fd9\u4e00\u884c\uff1a<\/p>\n<p><strong>$_SERVER[&#8216;REQUEST_URI&#8217;] = $_SERVER[&#8216;HTTP_X_ORIGINAL_URL&#8217;];<\/strong><\/p>\n<p>\u597d\u4e86\uff0c\u73b0\u5728WordPress MU\u5373\u53ef\u5728IIS\u4e0b\u8fd0\u884c\u4e86\uff0cWordPress\u5355\u7528\u6237\u7248\u7684\u914d\u7f6e\u4e5f\u662f\u540c\u6837\u9053\u7406\uff0c\u800c\u4e14\u4f1a\u66f4\u7b80\u5355\u3002<\/p>\n<div>\n<p>\u8f6c\u8f7d\u81ea<a href=\"http:\/\/www.williamlong.info\/\">\u6708\u5149\u535a\u5ba2<\/a> [ <a href=\"http:\/\/www.williamlong.info\/\">http:\/\/www.williamlong.info\/<\/a> ]<\/p>\n<p>\u94fe\u63a5\u5730\u5740\uff1a<a href=\"http:\/\/www.williamlong.info\/archives\/1355.html\">http:\/\/www.williamlong.info\/archives\/1355.html<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u6628\u5929\u4ecb\u7ecd\u7684Windows Server 2003\u4e0b\u7684IIS\u548cApache\u6027\u80fd\u6bd4\u8f83\uff0c\u5176\u5b9eApache\u5728Linux [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[5,7],"_links":{"self":[{"href":"https:\/\/508.me\/index.php?rest_route=\/wp\/v2\/posts\/7"}],"collection":[{"href":"https:\/\/508.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/508.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/508.me\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/508.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7"}],"version-history":[{"count":3,"href":"https:\/\/508.me\/index.php?rest_route=\/wp\/v2\/posts\/7\/revisions"}],"predecessor-version":[{"id":9,"href":"https:\/\/508.me\/index.php?rest_route=\/wp\/v2\/posts\/7\/revisions\/9"}],"wp:attachment":[{"href":"https:\/\/508.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/508.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/508.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}