{"id":255,"date":"2019-11-01T20:08:38","date_gmt":"2019-11-01T20:08:38","guid":{"rendered":"http:\/\/blog.davcloud.top\/?p=255"},"modified":"2019-11-01T20:23:16","modified_gmt":"2019-11-01T20:23:16","slug":"remove-ftp-login-in-wordpress","status":"publish","type":"post","link":"https:\/\/blog.davcloud.top\/?p=255","title":{"rendered":"Remove FTP login in WordPress"},"content":{"rendered":"\n<h2>Abstract<\/h2>\n\n\n\n<p>The article aims to remove the FTP login prompt when configuring WordPress in admin management system.<\/p>\n\n\n\n<h2>Step 1. Open the wp-config.php file<\/h2>\n\n\n\n<p>Open the wp-config.php file. Assume the root dir of the wordpress is \u201cwordpress\u201d.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># If the dir required root permission, add sudo at the beginning.\nvim \/wordpress\/wp-config.php<\/code><\/pre>\n\n\n\n<h2>Step 2. Edit the file<\/h2>\n\n\n\n<p>Add the code below at the end of the file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>define(\"FS_METHOD\",\"direct\");\ndefine(\"FS_CHMOD_DIR\",0777);\ndefine(\"FS_CHMOD_FILE\",0777);<\/code><\/pre>\n\n\n\n<h2>Step 3. Save the file and refresh<\/h2>\n\n\n\n<p>Save the file and refresh the website, it is ok now. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Abstract The article aims to remove the FTP login prompt when configuring WordPress in admin management system. Step 1. Open the wp-config.php file Open the wp-config.php file. Assume the root dir of the wordpress is \u201cwordpress\u201d. Step 2. Edit the file Add the code below at the end of the file: Step 3. Save the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[27],"tags":[31],"_links":{"self":[{"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=\/wp\/v2\/posts\/255"}],"collection":[{"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=255"}],"version-history":[{"count":5,"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=\/wp\/v2\/posts\/255\/revisions"}],"predecessor-version":[{"id":261,"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=\/wp\/v2\/posts\/255\/revisions\/261"}],"wp:attachment":[{"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=255"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}