{"id":4804,"date":"2016-02-21T00:09:45","date_gmt":"2016-02-20T15:09:45","guid":{"rendered":"https:\/\/y2tech.net\/blog\/?p=4804"},"modified":"2016-02-21T00:18:46","modified_gmt":"2016-02-20T15:18:46","slug":"automatic-secure-updating","status":"publish","type":"post","link":"https:\/\/y2tech.net\/blog\/inet\/wp\/automatic-secure-updating-4804\/","title":{"rendered":"WordPress\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092SSH\u3067\u884c\u3046"},"content":{"rendered":"<h3>WordPress\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u6a5f\u80fd\u3092\u3061\u3087\u3063\u3068\u3060\u3051\u30bb\u30ad\u30e5\u30a2\u306b\u3057\u3066\u307f\u308b<\/h3>\r\n<br>\r\n<div style=\"width: 100%; margin: 0 auto; text-align: center;\">\r\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2016\/02\/UpdateDialog-537x640.jpg\" alt=\"Wordpress Update Dialog\" width=\"537\" height=\"640\" class=\"size-medium wp-image-4807\" srcset=\"https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2016\/02\/UpdateDialog-537x640.jpg 537w, https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2016\/02\/UpdateDialog-201x240.jpg 201w, https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2016\/02\/UpdateDialog.jpg 640w\" sizes=\"auto, (max-width: 537px) 100vw, 537px\" \/>\r\n<br>\r\n<span>WordPress\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u7ba1\u7406\u753b\u9762<span>\r\n<\/div>\r\n<br>\r\n<p>WordPress\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u6a5f\u80fd\u306f\u4fbf\u5229\u306a\u306e\u3060\u304c\u3001\u3069\u306e\u3088\u3046\u306a\u74b0\u5883\u3067\u3082\u3053\u306e\u6a5f\u80fd\u304c\u4f7f\u3048\u308b\u8a33\u3067\u306f\u306a\u3044\uff0e\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u3092\u501f\u308a\u3066Wordpress\u3092\u52d5\u304b\u3057\u3066\u3044\u308b\u4eba\u9054\u306e\u5927\u90e8\u5206\u306f\u3001\u4f55\u3082\u3057\u306a\u304f\u3066\u3082Wordpress\u306e\u7ba1\u7406\u753b\u9762\u3092\u901a\u3058\u3066\u7c21\u5358\u306b\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3067\u304d\u3066\u3044\u308b\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u601d\u3046\uff0e\u3055\u304f\u3089\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u306a\u3069\u306e\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u3067\u306f\u3001\u500b\u3005\u306e\u30e6\u30fc\u30b6\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u4e0b\u3067Apache\u306a\u3069\u306eHTTP\u30b5\u30fc\u30d0\u304c\u52d5\u3044\u3066\u3044\u308b\u306e\u3067\u3001Wordpress\u30b3\u30f3\u30c6\u30f3\u30c4\u304c\u7f6e\u304b\u308c\u3066\u3044\u308b\u5404\u7a2e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u914d\u4e0b\u3092HTTP\uff08PHP)\u5074\u304b\u3089\u66f8\u304d\u63db\u3048\u308b\u3053\u3068\u304c\u53ef\u80fd\u3060\uff0e<\/p>\r\n<br>\r\n<p>\u81ea\u5206\u3067OS\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066HTTP\u30b5\u30fc\u30d0\u3092\u7acb\u3061\u4e0a\u3052\u305f\u5834\u5408\u306b\u306f\u3001\u4e00\u822c\u306e\u30e6\u30fc\u30b6\u6a29\u9650\u3067Wordpress\u914d\u4e0b\u306e\u5404\u7a2e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3084\u30d5\u30a1\u30a4\u30eb\u3092\u7f6e\u304f\u3053\u3068\u304c\u591a\u3044\u3060\u308d\u3046\uff0eHTTP\u306e\u30d7\u30ed\u30bb\u30b9\u306f&#8221;apache&#8221; \u306a\u3069\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u8d77\u52d5\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u305d\u306e\u307e\u307e\u3067\u306fHTTP\uff08PHP\uff09\u5074\u304b\u3089\u3053\u308c\u3089\u306eWordpress\u914d\u4e0b\u306e\u5404\u7a2e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3084\u30d5\u30a1\u30a4\u30eb\u3092\u66f8\u304d\u63db\u3048\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044\uff0e<\/p>\r\n<br>\r\n<p>\u3053\u306e\u3088\u3046\u306a\u72b6\u6cc1\u3067\u3001Wordpress\u306e\u7ba1\u7406\u753b\u9762\u3092\u901a\u3058\u3066\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u884c\u3046\u3068\u3001\u6b21\u306e\u69d8\u306aFTP\u306b\u3088\u308b\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u8a2d\u5b9a\u753b\u9762\u304c\u73fe\u308c\u308b\uff0eWordpress\u914d\u4e0b\u306e\u5404\u7a2e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3084\u30d5\u30a1\u30a4\u30eb\u3092FTP\u3092\u901a\u3058\u3066\u66f4\u65b0\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3092\u4fc3\u3055\u308c\u308b\u3068\u3044\u3046\u8a33\u3060\uff0e\u5f53\u7136\u306a\u304c\u3089\u3001\u3053\u306eFTP\u306b\u3088\u308b\u66f4\u65b0\u3092\u884c\u3046\u306b\u306f\u3001Wordpress\u3092\u52d5\u304b\u3057\u3066\u3044\u308b\u540c\u3058\u30b5\u30fc\u30d0\u4e0a\u3067FTP\u30b5\u30fc\u30d0\u304c\u52d5\u3044\u3066\u304a\u308a\u3001Wordpress\u914d\u4e0b\u306e\u5404\u7a2e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3084\u30d5\u30a1\u30a4\u30eb\u306e\u30aa\u30fc\u30ca\u30fc\u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u3001wordpress.org\u306eFTP\u30b5\u30fc\u30d0\u304b\u3089\u5404\u7a2e\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c8\u3067\u304d\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\uff0e<\/p>\r\n<br>\r\n<div style=\"width: 100%; margin: 0 auto; text-align: center;\">\r\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2016\/02\/FTPRequestDialog.jpg\" alt=\"FTP Request Dialog\" width=\"565\" height=\"523\" class=\"size-full wp-image-4808\" srcset=\"https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2016\/02\/FTPRequestDialog.jpg 565w, https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2016\/02\/FTPRequestDialog-240x222.jpg 240w\" sizes=\"auto, (max-width: 565px) 100vw, 565px\" \/> \r\n<br>\r\n<span>FTP\u306b\u3088\u308b\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u304c\u8981\u6c42\u3055\u308c\u308b<span>\r\n<\/div>\r\n<br>\r\n<br>\r\n<p>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u7684\u306a\u9762\u304b\u3089\u3001\u3053\u306eFTP\u306b\u3088\u308b\u30d5\u30a1\u30a4\u30eb\u8ee2\u9001\u6a5f\u80fd\u3092Wordpress\u3092\u52d5\u304b\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d0\u4e0a\u3067\u52d5\u304b\u3059\u306e\u306f\u5927\u554f\u984c\u3060\uff0e\u4e00\u5fdcFTPS\u3068\u3044\u3046\u6697\u53f7\u5316\u3055\u308c\u305fFTP\u30bb\u30c3\u30b7\u30e7\u30f3\u3082\u4f7f\u3048\u308b\u3088\u3046\u3060\u304c\u3001FTP\u306f\u3084\u306f\u308a\u4f7f\u3044\u305f\u304f\u306a\u3044\uff0eFTPS\u306e\u8a2d\u5b9a\u3092Wordpress\u306e\u30b5\u30a4\u30c8\u3067\u8abf\u3079\u3066\u3044\u305f\u3089\u3001SSH\u306b\u3088\u308b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u306b\u95a2\u3059\u308b\u8a18\u8ff0\u304c\u3042\u3063\u305f\u306e\u3067\u3001SSH\u63a5\u7d9a\u306b\u3088\u308bWordpress\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u884c\u3063\u3066\u307f\u305f\uff0e<\/p>\r\n<br>\r\n\u3000\u3000<b>&#8220;<a href=\"http:\/\/codex.wordpress.org\/Editing_wp-config.php#Enabling_SSH_Upgrade_Access\" target=\"_blank\">Editing wp-config.php &#8211; Enabling SSH Upgrade Access<\/a>&#8220;<\/b>\r\n<br>\r\n<br>\r\n<p>\u3053\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u8aac\u660e\u306b\u3088\u308b\u3068\u3001SSH2\u306b\u3088\u308b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3092\u884c\u3046\u65b9\u6cd5\u306f2\u3064\u6709\u308a\u3001\u4e00\u3064\u306f &#8220;<a href=\"https:\/\/wordpress.org\/plugins\/ssh-sftp-updater-support\/\" target=\"_blank\">SSH SFTP Updater Support<\/a>&#8221; \u3068\u3044\u3046\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f7f\u3046\u65b9\u6cd5\u3067\u3001\u3082\u3046\u4e00\u3064\u304c PHP\u306bSSH2\u30a2\u30af\u30bb\u30b9\u6a5f\u80fd\u3092\u8ffd\u52a0\u3059\u308b &#8220;pecl SSH2 extension&#8221; \u3092\u5c0e\u5165\u3059\u308b\u3068\u3044\u3046\u65b9\u6cd5\u3060\uff0e\u52ff\u8ad6\u7c21\u5358\u306a\u306e\u306f\u524d\u8005\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f7f\u3046\u65b9\u6cd5\u306a\u306e\u3060\u304c\u3001\u4eca\u56de\u306f\u3068\u308a\u3042\u3048\u305a\u5f8c\u8005\u306e&#8221;pecl SSH2 extension&#8221; \u3092\u5c0e\u5165\u3057\u3066\u8a66\u3057\u3066\u307f\u305f\uff0e<\/p>\r\n<br>\r\n<br>\r\n<p>\uff11\uff0e &#8220;php-pear&#8221; \u3092 yum \u3092\u4f7f\u3063\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\r\n<br>\r\n<br>\r\n<b style=\"margin: 3em;\"> #yum -y install php-pear<\/b>\r\n<br>\r\n<\/p>\r\n<br>\r\n<p>\uff12\uff0e pecl SSH2 extension\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\r\n<br>\r\n<br>\r\n<b style=\"margin: 3em;\"> #pecl install ssh2<\/b>\r\n<br>\r\n<\/p>\r\n\r\n<br>\r\n<p>\uff13\uff0e SSH2 extension\u3092\u5f37\u5236\u3055\u305b\u308b\uff08\u4e0b\u8a18\u306e\u8a2d\u5b9a\u3092 &#8220;wp-config.php&#8221; \u5185\u306b\u8a18\u8ff0\u3059\u308b\uff09\r\n<br>\r\n<br>\r\n<b style=\"margin: 3em;\"> define( &#8216;FS_METHOD&#8217;, &#8216;ssh2&#8217; );<\/b>\r\n<br>\r\n<br>\r\n\r\n<\/p>\r\n<pre><code class=\"language-Markup\">\r\n \r\n...\r\n \r\n\/**\r\n * For developers: WordPress debugging mode.\r\n *\r\n * Change this to true to enable the display of notices during development.\r\n * It is strongly recommended that plugin and theme developers use WP_DEBUG\r\n * in their development environments.\r\n *\/\r\n\r\ndefine('WP_DEBUG', false);\r\n\r\ndefine(\u2018FS_METHOD\u2019, 'ssh2');\r\n\r\n\/* That's all, stop editing! Happy blogging. *\/\r\n\r\n\/** Absolute path to the WordPress directory. *\/\r\nif ( !defined('ABSPATH') )\r\n\tdefine('ABSPATH', dirname(__FILE__) . '\/');\r\n\r\n<\/code><\/pre>\r\n<br>\r\n<br>\r\n<p>\u3053\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u306f\u3001&#8221;pecl SSH2 extension&#8221;\u306e\u5c0e\u5165\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f\u4e0a\u8a18\u306e\u7c21\u5358\u306a\u8a18\u8ff0\u3057\u304b\u3055\u308c\u3066\u3044\u306a\u3044\u304c\u3001\u30e6\u30fc\u30b6\u306e\u74b0\u5883\u306b\u3088\u3063\u3066\u306f\u305d\u3046\u7c21\u5358\u306b\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u306a\u3044\u304b\u3082\u3057\u308c\u306a\u3044\uff0e<\/p>\r\n<br>\r\n<div style=\"width: 100%; margin: 0 auto; text-align: center;\">\r\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2016\/02\/SSHUpdateDialog-640x603.jpg\" alt=\"SSH Update Dialog\" width=\"640\" height=\"603\" class=\"size-medium wp-image-4813\" srcset=\"https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2016\/02\/SSHUpdateDialog.jpg 640w, https:\/\/y2tech.net\/blog\/wp-content\/uploads\/2016\/02\/SSHUpdateDialog-240x226.jpg 240w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/> \r\n<br>\r\n<span>PHP\u306b&#8221;pecl SSH2 extension&#8221;\u3092\u7d44\u307f\u8fbc\u3080\u3068\u3001SSH\u306b\u3088\u308b\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u6a5f\u80fd\u304c\u8ffd\u52a0\u3055\u308c\u308b<span>\r\n<\/div>\r\n<br>\r\n<br>\r\n<p>\u3053\u306e\u65b9\u6cd5\u3067\u3042\u308c\u3070\u3001SSH\u306b\u3088\u308b\u30b3\u30cd\u30af\u30b7\u30e7\u30f3\u304c\u5f35\u308c\u308c\u3070\u826f\u3044\u306e\u3067\u3001FTP\u3092\u4f7f\u308f\u306a\u304f\u3066\u6e08\u3080\uff0e\u4e00\u822c\u7684\u306b\u306fSSH\u306e\u30dd\u30fc\u30c8\u756a\u53f7\u3068\u3057\u3066\u306f22\u756a\u3092\u4f7f\u3046\u4e8b\u304c\u591a\u3044\u304c\u3001\u5225\u306a\u756a\u53f7\u3092\u4f7f\u3044\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u5f37\u5316\u3092\u8b00\u308b\u306e\u304c\u826f\u3044\u3060\u308d\u3046\uff0e<\/p>\r\n<br>","protected":false},"excerpt":{"rendered":"Wordpress\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u6a5f\u80fd\u306f\u4fbf\u5229\u306a\u306e\u3060\u304c\u3001\u3069\u306e\u3088\u3046\u306a\u74b0\u5883\u3067\u3082\u3053\u306e\u6a5f\u80fd\u304c\u4f7f\u3048\u308b\u8a33\u3067\u306f\u306a\u3044\uff0eWordpress\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u65b9\u6cd5\u3068\u3057\u3066SSH\u306b\u3088\u308b\u30bb\u30ad\u30e5\u30a2\u306a\u30b3\u30cd\u30af\u30b7\u30e7\u30f3\u3092\u7528\u3044\u305f\u81ea\u52d5\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u6a5f\u80fd\u304c\u4f7f\u3048\u308b\u3088\u3046\u306a\u306e\u3067\u3001\u7c21\u5358\u306b\u7d39\u4ecb\u3057\u3066\u304a\u304f\uff0e","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[12],"tags":[702,202,688],"class_list":["post-4804","post","type-post","status-publish","format-standard","hentry","category-wp","tag-ssh-update","tag-update","tag-wp"],"_links":{"self":[{"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/posts\/4804","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/comments?post=4804"}],"version-history":[{"count":2,"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/posts\/4804\/revisions"}],"predecessor-version":[{"id":4819,"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/posts\/4804\/revisions\/4819"}],"wp:attachment":[{"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/media?parent=4804"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/categories?post=4804"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/tags?post=4804"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}