{"id":110,"date":"2018-04-24T05:42:41","date_gmt":"2018-04-24T05:42:41","guid":{"rendered":"http:\/\/td_uid_61_5adec3d11f39e"},"modified":"2018-05-21T03:00:04","modified_gmt":"2018-05-21T03:00:04","slug":"how-to-fix-wordpress-asking-for-ftp-credentials","status":"publish","type":"post","link":"https:\/\/forumweb.hosting\/blog\/how-to-fix-wordpress-asking-for-ftp-credentials\/","title":{"rendered":"How to fix WordPress asking for FTP credentials"},"content":{"rendered":"<p>WordPress is the open source alternative. However, new versions of wp require high security when you upgrade or install may require FTP password of Hosting account, VPS, or Server. It is rare to see this situation, but unfortunately you have encountered. You need to follow these steps to solve it.<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-321\" src=\"https:\/\/forumweb.hosting\/blog\/wp-content\/uploads\/2018\/04\/How-to-fix-bug-ask-FTP-password-on-WordPress-when-upgrade-and-install-theme-and-plugin.png\" alt=\"\" width=\"967\" height=\"377\" srcset=\"https:\/\/forumweb.hosting\/blog\/wp-content\/uploads\/2018\/04\/How-to-fix-bug-ask-FTP-password-on-WordPress-when-upgrade-and-install-theme-and-plugin.png 967w, https:\/\/forumweb.hosting\/blog\/wp-content\/uploads\/2018\/04\/How-to-fix-bug-ask-FTP-password-on-WordPress-when-upgrade-and-install-theme-and-plugin-300x117.png 300w, https:\/\/forumweb.hosting\/blog\/wp-content\/uploads\/2018\/04\/How-to-fix-bug-ask-FTP-password-on-WordPress-when-upgrade-and-install-theme-and-plugin-768x299.png 768w, https:\/\/forumweb.hosting\/blog\/wp-content\/uploads\/2018\/04\/How-to-fix-bug-ask-FTP-password-on-WordPress-when-upgrade-and-install-theme-and-plugin-696x271.png 696w\" sizes=\"(max-width: 967px) 100vw, 967px\" \/><\/p>\n<p>1. If you do not want to display this message anymore, please insert the following into the wp-config.php file:<\/p>\n<blockquote class=\"td_quote_box td_box_left\"><p>define (&#8216;FS_METHOD&#8217;, &#8216;direct&#8217;);<\/p><\/blockquote>\n<p>Or if the above paragraph is not inserted then insert the following into the wp-config.php file and change to the FTP account information of the host:<\/p>\n<blockquote class=\"td_quote_box td_box_left\"><p>define (&#8216;FTP_USER&#8217;, &#8216;username&#8217;);<br \/>\ndefine (&#8216;FTP_PASS&#8217;, &#8216;password&#8217;);<br \/>\ndefine (&#8216;FTP_HOST&#8217;, &#8216;host&#8217;);<\/p><\/blockquote>\n<p>If you use a separate server, make sure that the public_html directory of the website is authorizing the user to execute PHP. For example, if you use Apache on CentOS, you will use:<\/p>\n<blockquote class=\"td_quote_box td_box_left\"><p>chown -R apache: apache \/path\/domain.com<\/p><\/blockquote>\n<p>Or the simplest way is to use the FTP Access plugin.<\/p>\n<p>Good luck!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress is the open source alternative. However, new versions of wp require high security when you upgrade or install may require FTP password of Hosting account, VPS, or Server. It is rare to see this situation, but unfortunately you have encountered. You need to follow these steps to solve it. 1. If you do not [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":324,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[6,10,8],"tags":[29,17],"_links":{"self":[{"href":"https:\/\/forumweb.hosting\/blog\/wp-json\/wp\/v2\/posts\/110"}],"collection":[{"href":"https:\/\/forumweb.hosting\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/forumweb.hosting\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/forumweb.hosting\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/forumweb.hosting\/blog\/wp-json\/wp\/v2\/comments?post=110"}],"version-history":[{"count":3,"href":"https:\/\/forumweb.hosting\/blog\/wp-json\/wp\/v2\/posts\/110\/revisions"}],"predecessor-version":[{"id":323,"href":"https:\/\/forumweb.hosting\/blog\/wp-json\/wp\/v2\/posts\/110\/revisions\/323"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/forumweb.hosting\/blog\/wp-json\/wp\/v2\/media\/324"}],"wp:attachment":[{"href":"https:\/\/forumweb.hosting\/blog\/wp-json\/wp\/v2\/media?parent=110"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/forumweb.hosting\/blog\/wp-json\/wp\/v2\/categories?post=110"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/forumweb.hosting\/blog\/wp-json\/wp\/v2\/tags?post=110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}