{"id":703,"date":"2006-10-18T02:02:44","date_gmt":"2006-10-17T20:32:44","guid":{"rendered":"http:\/\/tao.kaoart.info\/science-document\/net-news\/kunstao\/2006\/703\/"},"modified":"2006-10-18T02:02:44","modified_gmt":"2006-10-17T20:32:44","slug":"%e5%a4%9a%e4%ba%ba%e5%8d%9a%e5%ae%a2%e7%b3%bb%e7%bb%9fwordpress_mu%e5%92%8clyceum%e5%8f%8a%e5%ae%89%e8%a3%85%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/tao0.date\/?p=703","title":{"rendered":"\u591a\u4eba\u535a\u5ba2\u7cfb\u7edfwordpress_mu\u548cLyceum\u53ca\u5b89\u88c5\u65b9\u6cd5"},"content":{"rendered":"<p>Boing Boing \u548c WordPress \u7684 Matt \u62a5\u9053\u4e86 <a href=\"http:\/\/lyceum.ibiblio.org\/\">Lyceum<\/a>\uff0c\u8fd9\u4e2aWordPress\u591a\u7528\u6237\u7248\u53d8\u79cd.<br \/>\n\u4e0e WordPress MU \u76f8\u6bd4\uff0c\u6613\u7528\u6027\u66f4\u597d\u3002\u5b83\u4eec\u5728\u6570\u636e\u5e93\u7684\u5904\u7406\u4e0a\uff0c\u8d70\u5411\u76f8\u53cd\u3002\u54ea\u79cd\u65b9\u5f0f\u66f4\u5229\u4e8e scale up\uff0c\u53cc\u65b9\u7684\u5f00\u53d1\u8005\u6709\u4e0d\u540c\u7684\u770b\u6cd5\u3002<br \/>\n\u5173\u4e8e\u6613\u7528\u6027\u9700\u8981\u89c2\u5bdf\u4e00\u4e0b\u4f7f\u7528\u60c5\u51b5\u3002<a href=\"http:\/\/linux-fans.com\/welcome.php\">linux-fans<\/a>\u636e\u8bf4\u5df2\u7ecf\u7528\u4e86\u3002<br \/>\n\u5b89\u88c5\u7b80\u4ecb\uff1a<br \/>\n\u6587\u7ae0\u51fa\u5904<br \/>\n<a href=\"http:\/\/blog.twkang.net\/2006\/06\/01\/lyceum-install-chinese-howto\/\">A\uff1atwkang\u7684<\/a><\/p>\n<blockquote><p>lyceum \u662f\u4e00\u500b\u591a\u4eba\u4f7f\u7528\u7684 wordpress \u7cfb\u7d71\uff0c\u548c mu wordpress \u662f\u985e\u4f3c\u7684\uff0c\u4e0d\u904e\u8cc7\u6599\u5eab\u8a2d\u5b9a\u4e0d\u540c\u3002<br \/>\n1 \u4e0b\u8f09 lyceum http:\/\/lyceum.ibiblio.org\/downloads<br \/>\n2 \u5efa\u7acb\u8cc7\u6599\u5eab\uff0c\u4e26\u4e14\u958b\u653e\u8a72\u8cc7\u6599\u5eab\u7684\u8b80\u5beb\u6b0a\u9650\u3002<br \/>\ncp config\/wp-config-sample.php config\/wp-config.php<br \/>\n3 \u4fee\u6539 wp-config.php\u3002<br \/>\n1. \u4e0d\u4f7f\u7528 subdomain<br \/>\n1.DB_NAME,DB_USER, DB_PASSWORD,DB_HOST \u8acb\u7167\u4f60\u5be6\u969b\u7684\u60c5\u6cc1\u4fee\u6539\u3002<br \/>\n2.WEBROOT \u6307\u7684\u662f\u4f60\u7684 portal.php \u7684\u4f4d\u7f6e\uff0c\u5982\u679c\u4f60\u7684 virtual host \u8a2d\u5b9a\u5728lyceum\/lyceum \u7684\u8a71\uff0c\u5728 svn \u88e1\u662f\u7559\u7a7a\u767d\uff0c 0.31 \u88e1\u662f \u2018\/\u2019 \u3002<br \/>\n3.MAINDOMAIN \u7167\u4f60\u5be6\u969b\u7684 DOMAIN \u4fee\u6539\uff0c\u5982\u679c\u4f60\u7528 blog.example.com \u7684\u8a71\uff0c\u8acb\u4e0d\u8981\u8a2d\u5b9a example.com \uff0c\u9019\u6a23\u6703\u6709\u5b89\u5168\u9867\u616e\u3002<br \/>\n4.DEFAULT* \u8acb\u7167\u4f60\u60f3\u8981\u7684\u60c5\u6cc1\u4fee\u6539\uff0c\u5176\u5b83\u7684\u9078\u9805\u5982\u679c\u4f60\u8981\u4f5c\u6e2c\u8a66\u7528\uff0c\u518d\u81ea\u884c\u6253\u958b\u3002<br \/>\n2.\u4f7f\u7528 subdomain<br \/>\n1.\u4ec0\u9ebc\u662f subdomain \uff1f\u5c31\u662f\u4f7f\u7528 user1.blog.example.com \u6216\u662f user2.blog.example.com \u9019\u7a2e\u7db2\u5740\u3002<br \/>\n2.\u8cc7\u6599\u5eab\u9084\u662f\u7167\u4e0a\u9762\u7684\u4fee\u6539\u3002\u53ea\u662f\u8981\u628a SUBDOMAINS \u6539\u6210 true \u3002<br \/>\n5 \u8a2d\u5b9a\u5b8c\u6210\u4e4b\u5f8c\uff0c\u700f\u89bd http:\/\/example.com\/wp-admin\/install.php \uff0c\u4e26\u4e14\u7167\u6b65\u9a5f\u4e00\u6b65\u4e00\u6b65\u4f86\u3002<br \/>\n6 \u5b8c\u6210\uff01<br \/>\nFAQ:<br \/>\n1. \u70ba\u4ec0\u9ebc\u6211\u7684 http:\/\/example.com\/login \u986f\u793a\u6c92\u6709\u9019\u500b\u7db2\u9801\u5462\uff1f<br \/>\n\u7b54\uff1a\u6709\u4e8c\u7a2e\u53ef\u80fd\uff0c\u4e00\u500b\u662f\u4f60\u76ee\u9304\u5e95\u4e0b\u7684 .htaccess \u4e26\u6c92\u6709\u7522\u751f\uff0c\u6240\u4ee5\u8acb\u5728 http:\/\/example.com\/system-admin\/rewriterules.php \u91cd\u65b0\u7522\u751f\u3002\u53e6\u4e00\u500b\u53ef\u80fd\u662f\u4f60\u7684 apache \u6b0a\u9650\u7684\u554f\u984c\uff0c\u8acb\u4fee\u6539 apache \u7684\u8a2d\u5b9a\u6a94\uff0c\u4e26\u4e14\u628a\u8a72\u76ee\u9304\u7684\u6b0a\u9650\u8a2d\u70ba\u4e0b\u9762\u7684\u8a2d\u5b9a\u5373\u53ef\uff1a<br \/>\nOptions Indexes FollowSymLinks MultiViews<br \/>\nAllowOverride All<br \/>\n2. \u70ba\u4ec0\u9ebc\u6211\u7684\u767b\u5165\u5f8c\uff0c\u4ed6\u554f\u6211\u8981\u4e0d\u8981\u4e0b\u8f09 profile \uff1f<br \/>\n\u7b54\uff1a\u5728 http:\/\/example.com\/system-admin\/ \u88e1\u5c07\u300c System HTML type \u300d\u8a2d\u70ba\u300c text\/html \u300d\u3002<br \/>\n3. \u70ba\u4ec0\u9ebc\u6211\u7528\u4e86\u8a9e\u7cfb\u5305\u4ee5\u5f8c\uff0c profile \u8b8a\u4e82\u78bc\uff1f<br \/>\n\u7b54\uff1a\u5728 http:\/\/example.com\/system-admin\/ \u88e1\u5c07\u300c System character encoding. \u300d\u8a2d\u70ba\u300c UTF-8 \u300d\u3002<br \/>\n4. \u597d\u50cf\u5f88\u591a\u529f\u80fd\u4e0d\u5b8c\u5168\uff1f<br \/>\n\u7b54\uff1a\u8acb\u5230 http:\/\/source.ibiblio.org\/trac\/lyceum \u5beb\u5165\u4f60\u9047\u5230\u7684\u554f\u984c\u6216\u662f\u60f3\u8981\u65b0\u589e\u7684\u529f\u80fd\uff0c\u6216\u662f\u7559\u8a00\u6216\u5bc4\u4fe1\u8ddf\u6211\u806f\u7d61\uff0c\u6211\u6703\u8ddf\u4f5c\u8005\u806f\u7d61\u3002<br \/>\n5.\u6211\u60f3\u8981\u6700\u65b0\u7684\u529f\u80fd\u3002<br \/>\n\u7b54\uff1a\u8acb\u4f7f\u7528 svn \u4e0b\u8f09\u6700\u65b0\u7684\u7a0b\u5f0f\u78bc\uff0c\u4e0d\u904e\u8acb\u8981\u6709\u5192\u96aa\u72af\u96e3\u7684\u7cbe\u795e\uff0c\u4e26\u4e14\u96a8\u6642\u8ffd\u8e64\u8a2d\u5b9a\u6a94\u7684\u8b8a\u66f4\u3002<\/p><\/blockquote>\n<p><!--more--><\/p>\n<blockquote><p>\u5c1d\u8bd5lyceum.\u7ecf\u8fc7\u51e0\u6b21\u5931\u8d25\u7ec8\u4e8e\u5b89\u88c5\u6210\u529f\u4e86.<br \/>\nless.. \u4e0b\u9762\u6211\u5c06\u5b89\u88c5\u6b65\u9aa4\u6574\u7406\u4e00\u4e0b:<br \/>\n1.\u4e0b\u8f7d\u89e3\u538blyceum:<br \/>\n\u5b98\u65b9\u7f51\u7ad9: http:\/\/lyceum.ibiblio.org\/<br \/>\n\u4e0b\u8f7d\u89e3\u538b\u540e\u53ef\u4ee5\u770b\u5230\u4e09\u4e2a\u76ee\u5f55: lyceum,lib\u548cconfig.<br \/>\n2.\u6839\u636e\u5b89\u88c5\u6587\u6863\u4e2d\u8981\u6c42,\u4e0a\u4f20lyceum\u5230\u670d\u52a1\u5668\u4e0a,\u6211\u7684\u4f4d\u7f6e\u662f\/home\/httpd\/html\/lyceum<br \/>\n3.\u7531\u4e8e\u4e0d\u5e0c\u671b\u6587\u4ef6\u5230\u5904\u5806\u653e,\u6240\u4ee5\u5c06lib\u548cconfig\u76ee\u5f55\u4e0a\u4f20\u81f3\/home\/httpd\/html\/lyceum\u4e0b.<br \/>\n4.\u5b89\u88c5\u6570\u636e\u5e93,mysql\u91cc\u5efa\u4e00\u4e2a\u540d\u4e3alyceum\u7684database,\u5e76\u8d4b\u4e88\u76f8\u5e94\u6743\u9650.(\u7b80\u5355\u4e0d\u591a\u8bf4\u4e86).<br \/>\n5.\u4fee\u6539\u914d\u7f6e\u6587\u4ef6.<br \/>\ncd \/home\/httpd\/html\/lyceum\/config\/<br \/>\ncp wp-config-sample.php wp-config.php<br \/>\ncp debug-sample.php debug.php<br \/>\nvi wp-config.php<br \/>\n\u66f4\u6539\u8def\u5f84\u548c\u6570\u636e\u5e93\u8bbe\u7f6e:<br \/>\ndefine(\u2019DB_NAME\u2019, \u2018lyceum\u2019); \/\/ The name of the database define(\u2019DB_USER\u2019, \u2018root\u2019); \/\/ Your MySQL username define(\u2019DB_PASSWORD\u2019, \u2018123456789\u2032); \/\/ \u2026and password define(\u2019DB_HOST\u2019, \u201810.10.10.1:3301\u2032); \/\/ hostname or IP of database server (possibly \u2018localhost\u2019)<br \/>\n\u7ea2\u8272\u90e8\u5206\u4e3a\u6839\u636e\u5177\u4f53\u60c5\u51b5\u4fee\u6539\u7684\u5185\u5bb9.<br \/>\ncd \/home\/httpd\/html\/lyceum\/<br \/>\nvi private.php<br \/>\ndefine(\u2019PRIVATE_REL_PATH\u2019, \u2018.\/\u2019);<br \/>\n\u7ea2\u8272\u5185\u5bb9\u4e3a\u66f4\u6539\u540e\u8def\u5f84,\u7531\u4e8e\u5df2\u5c06lib\u548cconfig\u76ee\u5f55\u4e0a\u4f20\u5230lyceum\u540c\u7ea7\u76ee\u5f55,\u6240\u4ee5\u5c06..\/\u6539\u4e3a.\/<br \/>\n6. cp wp-admin\/* lib\/wp-admin\/ -R<br \/>\n\u4e0d\u77e5\u9053\u662f\u4e0d\u662fbug,\u5982\u679c\u4e0d\u590d\u5236\u8fc7\u53bb\u5728\u767b\u5f55\u7684\u65f6\u5019\u5c31\u4f1a\u63d0\u793a\u7f51\u9875\u65e0\u6cd5\u6253\u5f00,\u6216profile\u6ca1\u627e\u5230.<br \/>\n7.\u4fee\u6539apache\u914d\u7f6e\u6587\u4ef6:<br \/>\nvi \/usr\/local\/apache2\/conf\/httpd.conf<br \/>\n\u589e\u52a0\u865a\u62df\u4e3b\u673a:<br \/>\n<virtualHost 10.10.10.10.1> DocumentRoot \/home\/httpd\/html\/lyceum ServerName lyceum.givingtree.com ServerAlias *.lyceum.givingtree.com #\u53ef\u52a0\u53ef\u4e0d\u52a0,\u968f\u4fbf\u4f60 <directory \u201c\/home\/httpd\/html\/lyceum\u201d> Options FollowSymlinks AllowOverride FileInfo Options Order allow,deny Allow from all <\/directory> #\u8fd9\u6bb5\u6bd4\u8f83\u5173\u952e,lyceum\u8981\u7528\u5230mod_rewrite,\u8fd9\u548cwordpress MU\u7248\u7c7b\u4f3c,\u4f46\u6ca1MU\u7248\u90a3\u4e48\u53d8\u6001 <\/virtualHost><br \/>\n\u6ce8\u610f:apache\u7f16\u8bd1\u65f6\u8981\u652f\u6301mod-rewrite,\u5982\u679c\u7f16\u8bd1\u8fdb\u53bb\u4e86\u5c31\u4e0d\u7528\u52a0\u4e0b\u9762\u8fd9\u53e5,\u5426\u5219\u7528DSO\u6a21\u5f0f\u8f7d\u5165mod_rewrote.<br \/>\nLoadModule rewrite_module modules\/mod_rewrite.so<br \/>\n\u91cd\u542fapache.<br \/>\n8.\u7528\u811a\u672c\u521b\u5efa\u88c5lyceum tables:<br \/>\nhttp:\/\/YOURURL\/wp-admin\/install.php<br \/>\n\u5b8c\u6210\u540e\u7cfb\u7edf\u5c31\u4f1a\u7ed9\u4f60admin\u7684\u9ed8\u8ba4\u767b\u5f55\u8d26\u53f7.\u4e5f\u53ef\u4ee5\u8fdb\u5165:<br \/>\nhttp:\/\/YOURURL\/system-admin\/settings.php \u8fdb\u884c\u8bbe\u7f6e.<br \/>\n\u8bbf\u95eehttp:\/\/lyceum.givingtree.com\u5c31\u4f1a\u51fa\u73b0lyceum\u7684\u4e3b\u754c\u9762.\u53ef\u4ee5\u6ce8\u518c\u6216\u767b\u5f55\u65b0\u7528\u6237\u4e86.<br \/>\n9.\u611f\u89c9:<br \/>\n1.\u7cfb\u7edf\u7ba1\u7406\u8d26\u6237admin\u7684\u529f\u80fd\u4f3c\u4e4e\u592a\u5f31,\u7528\u6237\u7ba1\u7406\u91cc\u9762\u5c45\u7136\u6ca1\u5217\u51fa\u5df2\u6ce8\u518c\u7684\u7528\u6237\u548c\u7528\u6237\u4fe1\u606f.\u53ea\u80fdlock\/unlock\u7528\u6237.\u4e0d\u80fd\u5220\u9664\u7528\u6237\u8d26\u6237.\u8fd8\u6709\u5f88\u591a\u7ba1\u7406\u65b9\u9762\u7684\u529f\u80fd\u90fd\u597d\u50cf\u662f\u6577\u884d\u4e86\u4e8b.<br \/>\n2.theme\u597d\u50cf\u7528\u7684\u662f\u7edf\u4e00\u7684theme\u76ee\u5f55\u4e0b\u7684theme,\u5403\u5927\u9505\u996d,\u6ca1\u6cd5\u4e2a\u6027\u5316.<br \/>\n3.\u5b89\u88c5\u8d77\u6765\u867d\u7136\u6709\u70b9\u6ce2\u6298,\u4f46\u662f\u603b\u7684\u6765\u8bf4\u8fd8\u7b97\u987a\u5229,\u4e0d\u50cfwordpress MU\u7248\u90a3\u4e48\u591a\u7684\u53d8\u6001rewrite,\u641e\u5f97\u6700\u57fa\u672c\u7684\u7cfb\u7edf\u90fd\u88c5\u4e0d\u8d77\u6765.(\u81f3\u5c11\u7cfb\u7edf\u8981\u8dd1\u8d77\u6765\u554a,\u518d\u8c08URL\u600e\u4e48\u4e2arewrite\u4e5f\u4e0d\u8fdf\u561b,shit )<br \/>\n4.\u770b\u6765\u7528\u6237\u7ba1\u7406\u548cURL\u8df3\u8f6c(http:\/\/blog.aaa.com\/user\/\u8df3\u8f6c\u5230http:\/\/user.aaa.com) \u8981\u81ea\u5df1\u641e\u5b9a\u4e86,\u597d\u5728\u4e00\u5207opensource!\u54c8\u54c8!<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Boing Boing \u548c WordPress \u7684&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,30],"tags":[],"class_list":["post-703","post","type-post","status-publish","format-standard","hentry","category-wordpress","category-net-news"],"_links":{"self":[{"href":"https:\/\/tao0.date\/index.php?rest_route=\/wp\/v2\/posts\/703","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tao0.date\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tao0.date\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tao0.date\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tao0.date\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=703"}],"version-history":[{"count":0,"href":"https:\/\/tao0.date\/index.php?rest_route=\/wp\/v2\/posts\/703\/revisions"}],"wp:attachment":[{"href":"https:\/\/tao0.date\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=703"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tao0.date\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=703"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tao0.date\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=703"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}