- Wordpress

Remove FTP login in WordPress

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 “wordpress”.

# If the dir required root permission, add sudo at the beginning.
vim /wordpress/wp-config.php

Step 2. Edit the file

Add the code below at the end of the file:

define("FS_METHOD","direct");
define("FS_CHMOD_DIR",0777);
define("FS_CHMOD_FILE",0777);

Step 3. Save the file and refresh

Save the file and refresh the website, it is ok now.

About Ziqi.Yang394

Read All Posts By Ziqi.Yang394

Leave a Reply

Your email address will not be published. Required fields are marked *