{"id":952,"date":"2011-06-09T01:00:00","date_gmt":"2011-06-08T16:00:00","guid":{"rendered":"https:\/\/ecoop.net\/memo\/2011-06-09-1.html"},"modified":"2012-05-11T19:43:49","modified_gmt":"2012-05-11T10:43:49","slug":"2011-06-09-1","status":"publish","type":"post","link":"https:\/\/www.ecoop.net\/memo\/archives\/2011-06-09-1.html","title":{"rendered":"WordPress + Pure-FTPd \u306e\u554f\u984c"},"content":{"rendered":"<p>\nPure-FTPd \u3092\u4f7f\u3063\u3066\u3044\u308b\u3068\u3001WordPress (3.0\u4ee5\u964d\uff1f)\u306eweb\u7ba1\u7406\u30b3\u30f3\u30bd\u30fc\u30eb\u304b\u3089\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u66f4\u65b0\u3084\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306a\u3069\u304c\u6a5f\u80fd\u3057\u306a\u3044\u3088\u3046\u3067\u3059\u3002<br \/>\ndefine(&#8220;FTP_METHOD&#8221;,&#8221;ftpsockets&#8221;); \u3068\u3057\u3066\u3044\u308b\u5834\u5408\u3001\n<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">Downloading update from &lt;a href=&quot;http:\/\/downloads.wordpress.org\/plugin\/akismet.2.5.2.zip&quot;&gt;http:\/\/downloads.wordpress.org\/plugin\/akismet.2.5.2.zip&lt;\/a&gt;\u2026\nUnpacking the update\u2026\n\nWarning: Invalid argument supplied for foreach() in \/path\/to\/wordpress\/wp-admin\/includes\/class-wp-filesystem-ftpsockets.php on line 299\n&amp;nbsp;\nCould not copy file. \/path\/to\/wordpress\/wp-content\/upgrade\/akismet.tmp\/&quot;\n<\/pre>\n<p>\u3068\u3044\u3046\u30a8\u30e9\u30fc\u306b\u306a\u308a\u3001<br \/>\ndefine(&#8220;FTP_METHOD&#8221;,&#8221;ftpext&#8221;); \u3068\u3057\u3066\u3044\u308b\u5834\u5408\u3082\u5225\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u5931\u6557\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002<br \/>\n\u30d5\u30a9\u30fc\u30e9\u30e0\u3092\u63a2\u3057\u305f\u3068\u3053\u308d\u3001\u5bfe\u5fdc\u65b9\u6cd5\u306f<\/p>\n<ul>\n<li>suPHP\u3092\u4f7f\u3063\u3066\u6a29\u9650\u3092\u5909\u3048\u308b(FTP_METHOD \u306b &#8216;direct&#8217;\u3092\u4f7f\u3046\uff1f)\n<li>PureFTPd \u306f\u8ae6\u3081\u3066ProFTPd\u306b\u4e57\u308a\u63db\u3048\u308b\n<\/ul>\n<p>\u306e\uff12\u901a\u308a\u306b\u5206\u304b\u308c\u3066\u3044\u308b\u69d8\u5b50\u3002<br \/>\nsuPHP\u3092\u4f7f\u3046\u3068\u4ed6\u306ePHP\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u307e\u3067\u5f71\u97ff\u304c\u51fa\u3066\u3057\u307e\u3046\u305f\u3081\u907f\u3051\u305f\u3044\u3002<br \/>\n\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306fPureFTPd\u3068\u306f\u5225\u30dd\u30fc\u30c8\u3067 ProFTPd \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001ProFTPd \u306f\u30ed\u30fc\u30ab\u30eb\u30a2\u30af\u30bb\u30b9\u5c02\u7528\u3068\u3057\u3066\u914d\u7f6e\u3059\u308b\u3053\u3068\u3067\u5bfe\u5fdc\u3057\u307e\u3057\u305f\u3002\n<\/p>\n<p>\n\u6700\u7d42\u7684\u306awp-config.php \u306e\u8a2d\u5b9a\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002<\/p>\n<p>define(&#8216;FS_METHOD&#8217;, &#8216;ftpext&#8217;);<br \/>\ndefine(&#8216;FTP_BASE&#8217;, &#8216;\/path\/to\/wordpress\/&#8217;); \/\/ FTP\u3067\u898b\u305f\u6642\u306eWordPress\u8a2d\u7f6e\u30d5\u30a9\u30eb\u30c0\u306e\u30d1\u30b9( \/ \u3067\u7d42\u308f\u308b)<br \/>\ndefine(&#8216;FTP_CONTENT_DIR&#8217;, FTP_BASE.&#8217;wp-content&#8217;);<br \/>\ndefine(&#8216;FTP_PLUGIN_DIR&#8217;, FTP_BASE.&#8217;wp-content\/plugins&#8217;);<br \/>\ndefine(&#8216;FTP_USER&#8217;, &#8216;username&#8217;); \/\/ ProFTPd\u306e\u30ed\u30b0\u30a4\u30f3\u30e6\u30fc\u30b6\u540d<br \/>\ndefine(&#8216;FTP_PASS&#8217;, &#8216;password&#8217;); \/\/ ProFTPd\u306e\u30ed\u30b0\u30a4\u30f3\u30d1\u30b9\u30ef\u30fc\u30c9<br \/>\ndefine(&#8216;FTP_HOST&#8217;, &#8216;localhost:2211&#8217;); \/\/ \u30dd\u30fc\u30c8\u306b2211\u756a\u3092\u4f7f\u7528<br \/>\n[\/code]<\/p>\n<p>\n\u53c2\u8003:<\/p>\n<ul>\n<li><a href=\"http:\/\/wordpress.org\/support\/topic\/30-upgrade-bug-ftps\/page\/4\">3.0 Plugin Upgrade Bug? Could Not Create Directory<\/a>\n<li><a href=\"http:\/\/forums.cpanel.net\/f5\/problem-pureftpd-wordpress-164674.html\">Problem with PureFTPd &amp; WordPress<\/a>\n<li><a href=\"http:\/\/wordpress.org\/extend\/plugins\/ftp-upgrade-fix\/\">FTP Upgrade Fix \u30d7\u30e9\u30b0\u30a4\u30f3<\/a>\n<li><a href=\"http:\/\/wpdocs.sourceforge.jp\/wp-config.php_%E3%81%AE%E7%B7%A8%E9%9B%86\">wp-config.php \u306e\u7de8\u96c6<\/a>(WordPress Codex)\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Pure-FTPd \u3092\u4f7f\u3063\u3066\u3044\u308b\u3068\u3001WordPress (3.0\u4ee5\u964d\uff1f)\u306eweb\u7ba1\u7406\u30b3\u30f3\u30bd\u30fc\u30eb\u304b\u3089\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u66f4\u65b0\u3084\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306a\u3069\u304c\u6a5f\u80fd\u3057\u306a\u3044\u3088\u3046\u3067\u3059\u3002 define(&#8220;FTP_METHOD&#8221;, &hellip; <a href=\"https:\/\/www.ecoop.net\/memo\/archives\/2011-06-09-1.html\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">WordPress + Pure-FTPd \u306e\u554f\u984c<\/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":[85],"tags":[39],"class_list":["post-952","post","type-post","status-publish","format-standard","hentry","category-android-dev","tag-wordpress"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/952","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/comments?post=952"}],"version-history":[{"count":0,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/952\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/media?parent=952"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/categories?post=952"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/tags?post=952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}