{"id":112,"date":"2011-01-16T18:07:49","date_gmt":"2011-01-16T10:07:49","guid":{"rendered":"http:\/\/blog.garphy.com\/?p=112"},"modified":"2011-01-19T11:02:15","modified_gmt":"2011-01-19T03:02:15","slug":"wordpress-%e8%bf%81%e7%a7%bb%e5%90%8e%ef%bc%8c%e4%b8%8a%e4%bc%a0%e6%96%87%e4%bb%b6%e5%a4%b1%e8%b4%a5%e7%9a%84%e9%97%ae%e9%a2%98%e8%a7%a3%e5%86%b3","status":"publish","type":"post","link":"https:\/\/blog.garphy.com\/?p=112","title":{"rendered":"wordpress \u8fc1\u79fb\u540e\uff0c\u4e0a\u4f20\u6587\u4ef6\u5931\u8d25\u7684\u95ee\u9898\u89e3\u51b3"},"content":{"rendered":"<p>\u672c\u6765\u4e00\u8def\u987a\u98ce\uff0c\u73af\u5883\u642d\u5efa\u6709\u70b9\u8f7b\u8f66\u719f\u8def\u7684\u611f\u89c9\uff0c\u4e2d\u9014\u8fd8\u4f18\u5316\u4e86\u4e00\u4e9b\u914d\u7f6e\u6587\u4ef6\u7ed3\u6784(nginx+spawn-fcgi)\uff0c\u6ca1\u60f3\u5230\u6d4b\u8bd5\u7684\u65f6\u5019\uff0c\u53d1\u73b0\u63d2\u4ef6\u66f4\u65b0\u5931\u8d25\uff0c\u63d0\u793a\uff1a<\/p>\n<blockquote><p>Could not create directory. \/www\/blog\/wp-content\/upgrade\/akismet.tmp<\/p><\/blockquote>\n<p>\u540c\u65f6\u4e0a\u4f20\u56fe\u7247\u4e5f\u5931\u8d25\uff0c\u63d0\u793a\uff1a<\/p>\n<blockquote><p>The uploaded file could not be moved to \/www\/blog\/wp-content\/uploads\/2011\/01\/<\/p><\/blockquote>\n<p>\u4e2a\u676f\u5177\u7684\uff0c\u7ecf\u6392\u67e5\uff1a<\/p>\n<p><!--more-->\u7b2c\u4e00\u4e2a\u662fftp\u6ca1\u6709\u6253\u5f00\u5199\u5165\u6743\u9650\u00b7\u00b7\u00b7\uff0c\u914d\u7f6e\u6587\u4ef6\u91cc\u5fd8\u4e86\u53bb\u6389\u6ce8\u91ca\u5bfc\u81f4\uff1b<\/p>\n<p>\u7b2c\u4e8c\u4e2a\u5012\u817e\u4e86\u66f4\u4e45\uff0c\u65b0\u88c5\u4e86\u4e00\u4e2awordpress 3.0.4\u4e5f\u4e00\u6837\u3002<\/p>\n<p>\u67e5\u4e86\u4e00\u5806\u5e16\u5b50\uff0c\u57fa\u672c\u90fd\u662f\u8bf4\u76ee\u5f55\u6743\u9650\u95ee\u9898\uff0c\u4f46\u662f\u6211\u6539\u4e86777\u90fd\u662f\u6ca1\u6709\u7528\u7684\uff0c\u5947\u602a\u7684\u662f\u65b0\u88c5\u7684dicuz\u8bba\u575b\u662f\u53ef\u4ee5\u4f20\u56fe\u7684\u00b7\u00b7\u00b7<\/p>\n<p>\u63a5\u7740\u624b\u52a8\u8bbe\u7f6ephp.ini\u91cc\u9762\u7684<\/p>\n<blockquote><p>upload_tmp_dir = \/tmp<\/p><\/blockquote>\n<p>\u91cd\u542fnginx\uff0c\u8fd9\u65f6\u5019\u65b0\u88c5\u7684wp\u53ef\u4ee5\u4f20\u56fe\u4e86\uff0c\u8fdb\u4e00\u6b65\u67e5\u770b\u65b0\u88c5wp\u91cc\u7684uploads\u76ee\u5f55\u5c5e\u6027\uff0c\u624d\u53d1\u73b0\u662f\u5c5e\u4e8ewww-data\u7528\u6237\uff08\u6c57\uff0c\u56e0\u4e3aspawn-fcgi\u548cnginx\u90fd\u662f\u7531\u8fd9\u4e2a\u7cfb\u7edf\u7528\u6237\u5728\u6267\u884c\uff09\uff1b<\/p>\n<p>\u4e8e\u662f\u4fee\u6539\u539fwp\u7684upload\u76ee\u5f55\u53ca\u4e0b\u5c5e\u6587\u4ef6\u5f52\u5c5e<\/p>\n<blockquote><p>sudo chown -R www-data .\/wp-content\/uploads\/<\/p><\/blockquote>\n<p>\u4e00\u5207\u95ee\u9898\u89e3\u51b3\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7<\/p>\n<p>\u540e\u8bb0\uff1a<\/p>\n<p>\u6743\u9650\u95ee\u9898\u6709\u70b9\u8ba8\u538c\uff0c\u4e3a\u4e86\u907f\u514d\u6df7\u4e71\uff0c\u6211\u73b0\u5728\u7528chown\u53d6\u5f97\u6240\u6709\u6587\u4ef6\u6743\u9650\uff0c\u7136\u540e\u7528chgrp\u8bbe\u7f6e\u6240\u6709\u6587\u4ef6\u7ec4\u5230www-data\uff0c\u7136\u540ewp-content\u76ee\u5f55\u6743\u9650\u8bbe\u7f6e\u4e3a775\uff0c\u903b\u8f91\u6e05\u6670\uff0c\u7701\u4e8b\uff0c\u5173\u952e\u662fftp\u53ef\u4ee5\u6b63\u5e38\u64cd\u4f5c\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6765\u4e00\u8def\u987a\u98ce\uff0c\u73af\u5883\u642d\u5efa\u6709\u70b9\u8f7b\u8f66\u719f\u8def\u7684\u611f\u89c9\uff0c\u4e2d\u9014\u8fd8\u4f18\u5316\u4e86\u4e00\u4e9b\u914d\u7f6e\u6587\u4ef6\u7ed3\u6784(nginx+spawn-fcgi)\uff0c\u6ca1 &hellip; <a href=\"https:\/\/blog.garphy.com\/?p=112\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">wordpress \u8fc1\u79fb\u540e\uff0c\u4e0a\u4f20\u6587\u4ef6\u5931\u8d25\u7684\u95ee\u9898\u89e3\u51b3<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,8],"tags":[20,21,19],"class_list":["post-112","post","type-post","status-publish","format-standard","hentry","category-linux","category-8","tag-nginx","tag-upload","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/blog.garphy.com\/index.php?rest_route=\/wp\/v2\/posts\/112","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.garphy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.garphy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.garphy.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.garphy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=112"}],"version-history":[{"count":6,"href":"https:\/\/blog.garphy.com\/index.php?rest_route=\/wp\/v2\/posts\/112\/revisions"}],"predecessor-version":[{"id":116,"href":"https:\/\/blog.garphy.com\/index.php?rest_route=\/wp\/v2\/posts\/112\/revisions\/116"}],"wp:attachment":[{"href":"https:\/\/blog.garphy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.garphy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=112"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.garphy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}