{"id":14,"date":"2011-05-21T14:39:31","date_gmt":"2011-05-21T06:39:31","guid":{"rendered":"http:\/\/www.withonly.com\/?p=14"},"modified":"2011-05-21T14:39:31","modified_gmt":"2011-05-21T06:39:31","slug":"%e5%8d%9a%e5%ae%a2%e7%8e%af%e5%a2%83%e6%90%ad%e9%85%8d%e7%9a%84%e4%b8%80%e4%ba%9b%e2%80%9c%e4%be%8b%e5%a4%96%e2%80%9d","status":"publish","type":"post","link":"https:\/\/blog.5danyuan.com\/?p=14","title":{"rendered":"\u535a\u5ba2\u73af\u5883\u642d\u914d\u7684\u4e00\u4e9b\u201c\u4f8b\u5916\u201d"},"content":{"rendered":"<p>\u5728\u4e0a\u4e00\u4e2a\u65e5\u5fd7\u91cc\uff0c\u6211\u6709\u63d0\u53ca\u6709\u51e0\u4e2a\u95ee\u9898\u6ca1\u6709\u8bf4\uff0c\u5728\u8fd9\u4e2a\u65e5\u5fd7\u91cc\uff0c\u6211\u4eec\u7ee7\u7eed\u3002<\/p>\n<p>\u9996\u5148\u662f\u5b89\u88c5\u5b8c phpmyadmin \u5e76\u8fdb\u5165\u7cfb\u7edf\u540e\uff0c\u4f1a\u770b\u5230\u9875\u9762\u63d0\u793a\u201c\u4f7f\u7528\u94fe\u63a5\u8868\u7684\u989d\u5916\u7279\u6027\u5c1a\u672a\u6fc0\u6d3b\u201d\u00a0\uff0c\u5728\u7f51\u4e0a\u641c\u7d22\u4e86\u4e0b\uff0c\u610f\u601d\u5927\u6982\u5c31\u662f phpmyadmin \u7684\u65b0\u7248\u672c\u63d0\u4f9b\u7684\u8fd9\u4e2a\u529f\u80fd\uff0c\u7f51\u4e0a\u5f88\u591a\u4eba\u7684\u89e3\u51b3\u65b9\u6cd5\u5c31\u662f\u518d\u521b\u5efa\u4e2a\u6570\u636e\u5e93\u3002\u6211\u5728\u865a\u62df\u673a\u91cc\u4e5f\u662f\u8fd9\u6837\u8bbe\u7f6e\u7684\uff0c\u8c8c\u4f3c\u4e5f\u6ca1\u6709\u4ec0\u4e48\u95ee\u9898\u3002\u540e\u6765\u53c8\u770b\u5230\u4e00\u7bc7\u4ecb\u7ecd\uff0c\u53ea\u8981\u5728config.inc.php\u4e2d\u52a0\u8fd9\u4e48\u4e00\u884c\u5c31\u53ef\u4ee5\u4e86\uff1a$cfg[&#8216;PmaNoRelation_DisableWarning&#8217;] = true; \u6211\u6bd4\u8f83\u503e\u5411\u8fd9\u4e2a\u505a\u6cd5\u3002<\/p>\n<p>\u8fd8\u6709\u4e2a\u60c5\u51b5\u5c31\u662f phpmyadmin \u7684\u767b\u9646\u754c\u9762\u91cc\u7528\u6237\u540d\u663e\u793a\u7684\u662f\u4e71\u7801\uff0c\u540e\u6765\u4e5f\u662f\u5728 config.inc.php \u6587\u4ef6\u91cc\u7ed9\u628a $dbuser \u548c $dbpassword \u7ed9\u5199\u6b7b\u4e86\uff0c\u7136\u540e\u5c31\u6b63\u5e38\u4e86\u3002<\/p>\n<p>\u5f00\u59cb\u7684\u65f6\u5019\u6211\u4e00\u4e2a\u52b2\u5730\u60f3\u5b89\u88c5 ftp \uff0c\u8fd9\u6837\u4ee5\u540e\u5c31\u53ef\u4ee5\u4e0a\u4f20\u4e86\u3002\u5728\u865a\u62df\u673a\u91cc\u4f7f\u7528 sudo apt-get install vsftpd \u4e5f\u5b89\u88c5\u597d\u4e86\uff0c\u4f46\u662f\u5982\u4f55\u914d\u7f6e\u8fd8\u6ca1\u6709\u6478\u6e05\u695a\uff0cJerry\u540c\u5b66\u63d0\u4f9b\u4e86\u4ed6\u7528\u7684\u5de5\u5177 Filezilla \uff0c\u7528\u4e86\u4e00\u4e0b\u679c\u7136\u5f88\u7b80\u5355\u5bb9\u6613\u4e0a\u624b\u3002\u4e8e\u662f\u679c\u65ad\u653e\u5f03\u5b89\u88c5 vsftpd \uff0c\u53e6\u5916\u628a\u7535\u8111\u4e0a\u7684 F-Secure \u4e5f\u7ed9\u5378\u8f7d\uff0c\u4ee5\u524d\u5728\u516c\u53f8\u91cc\u8dd1\u65e5\u5fd7\u5206\u6790\u7684\u65f6\u5019\u66fe\u7ecf\u7528\u8fc7\u3002\u53e6\u5916\uff0c\u5728 SecureCRT \u548c putty \u95f4\uff0c\u6211\u9009\u62e9\u4e86 SecureCRT \uff0c\u867d\u7136\u5728\u5b89\u88c5 phpmyadmin \u65f6\u51fa\u4e86\u4e00\u5806\u7684\u4e71\u7801\uff0c\u4f46\u662f\u8fd8\u80fd\u63a5\u53d7\u3002\u6211\u5728\u672c\u5730\u865a\u62df\u673a\u4e0a\u5b89\u88c5 phpmyadmin \u65f6\u624d\u53d1\u73b0\u51fa\u4e71\u7801\u7684\u65f6\u5019\u662f\u8ba9\u4f60\u8bbe\u7f6e phpmyadmin \u767b\u9646\u6570\u636e\u5e93\u7684\u5bc6\u7801\u3002<\/p>\n<p>\u5269\u4e0b\u7684\u8fd9\u5757\uff0c\u5c31\u662f apache \u7684\u914d\u7f6e\u4e86\u3002\u521a\u5f00\u59cb\u770b\u5230\u7f51\u4e0a\u90fd\u662f\u8bb2\u7684\u5982\u4f55\u8bbe\u7f6e httpd.conf ,\u4f46\u662f\u5728\u6211\u7684\u7cfb\u7edf\u91cc\uff0chttpd.conf \u6587\u4ef6\u662f\u7a7a\u7684\u3002apache\u7684\u4f4d\u7f6e\u662f\u5728 \/etc\/apache2 \u4e0b\uff0c\u91cc\u9762\u67092\u4e2a\u76ee\u5f55 sites-available \u548c sites-enabled\u3002available \u91cc\u653e\u7684\u90fd\u662f\u7f8e\u5973\uff0cenabled \u91cc\u653e\u7684\u5c31\u662f\u9009\u4e2d\u7684\u7a7a\u59d0\uff0c\u800c apache \u5c31\u5982\u540c\u4e00\u4e2a\u98de\u673a\uff0c\u53ea\u8981\u7a7a\u59d0\u7684\u3002\u7a7a\u59d0\u4e5f\u662f\u7f8e\u5973\u561b\uff0c\u6240\u4ee5\u5728 enabled \u91cc\u653e\u7684\u53ea\u662f available \u7684\u5feb\u6377\u65b9\u5f0f\u3002<\/p>\n<p>\u5728 sites-available \u91cc\u521b\u5efa\u4e00\u4e2a\u6587\u4ef6\uff0c\u6587\u4ef6\u540d\u53d6\u4e3a wwwwithonlycom \uff0c\u91cc\u9762\u7684\u5185\u5bb9\u53ef\u4ee5\u662f\u8fd9\u6837\uff1a<\/p>\n<p>&lt;VirtualHost *:80&gt;<br \/>\n#\u9700\u8981\u7ed1\u5b9a\u7684\u57df\u540d<br \/>\nServerName <a href=\"http:\/\/www.withonly.com\">www.withonly.com<\/a><br \/>\n#\u7ba1\u7406\u5458\u90ae\u7bb1<br \/>\nServerAdmin <a href=\"mailto:hkshadow@mudbest.com\" target=\"_blank\">me@5danyuan.com<\/a><br \/>\n#\u7f51\u7ad9\u76ee\u5f55<br \/>\nDocumentRoot &#8220;\/var\/site\/wordpress\/&#8221;<br \/>\n#\u8be5\u7f51\u7ad9\u7684\u9519\u8bef\u65e5\u5fd7<br \/>\nErrorLog\u00a0 &#8220;\/var\/log\/apache2\/wordpresserrors.log&#8221;<br \/>\n#\u6539\u7f51\u7ad9\u7684\u914d\u7f6e\u65e5\u5fd7<br \/>\nCustomLog\u00a0 &#8220;\/var\/log\/apache2\/blog_accesses.log&#8221; common<br \/>\n&lt;\/VirtualHost&gt;<\/p>\n<p>\u5728\u521b\u5efa\u8fd9\u4e2a\u6587\u4ef6\u7684\u65f6\u5019\uff0c\u987a\u4fbf\u5b66\u4e60\u4e86\u4e0b nano \u7684\u4f7f\u7528\uff0c\u522b\u7684\u50cf vi \u4ec0\u4e48\u7684\u4e0d\u4f1a\u7528\uff0cgedit \u8c8c\u4f3c\u670d\u52a1\u5668\u4e0d\u652f\u6301\u3002<\/p>\n<p>\u7136\u540e\u518d\u751f\u6548\u3002 sudo a2ensite wwwwithonlycom \uff0c\u53d6\u6d88\u5c31\u4f7f\u7528 sudo a2dissite wwwwithonlycom<\/p>\n<p>\u518d\u91cd\u65b0\u542f\u52a8 apache \u7684\u65f6\u5019\uff0c\u603b\u662f\u51fa\u9519\uff0c\u4e0d\u77e5\u9053\u4ec0\u4e48\u60c5\u51b5\uff0c\u540e\u6765\u65e0\u610f\u95f4\u770b\u4e86\u4e0b\u9519\u8bef\u65e5\u5fd7\uff0c\u539f\u6765\u662f\u914d\u7f6e\u6587\u4ef6\u91cc \/var \u524d\u9762\u7684\u00a0 \/ \u7ed9\u6f0f\u6389\u4e86\u3002\u52a0\u4e0a\u53bb\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<p>\u5230\u8fd9\u91cc\uff0c\u57fa\u672c\u4e0a\u5c31\u544a\u4e00\u4e2a\u6bb5\u843d\u4e86\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u60f3\u505a\u7684\u6709 url-rewriting \uff0c\u81ea\u5b9a\u4e49 url \uff0c\u66f4\u6362 wordpress \u76ae\u80a4\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u4e0a\u4e00\u4e2a\u65e5\u5fd7\u91cc\uff0c\u6211\u6709\u63d0\u53ca\u6709\u51e0\u4e2a\u95ee\u9898\u6ca1\u6709\u8bf4\uff0c\u5728\u8fd9\u4e2a\u65e5\u5fd7\u91cc\uff0c\u6211\u4eec\u7ee7\u7eed\u3002 \u9996\u5148\u662f\u5b89\u88c5\u5b8c phpmyadmin \u5e76\u8fdb\u5165 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-14","post","type-post","status-publish","format-standard","hentry","category-daily"],"_links":{"self":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/posts\/14","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=14"}],"version-history":[{"count":0,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/posts\/14\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}