Select Page

The error usually occurs when the following code is missing from  wp-config.php  file;

define(‘FS_METHOD’,‘direct’);

This function allows the current user to edit or install files in your folder. Here is how you can remedy this issue.

We need to follow a few steps to fix this.

Step 1:

in your main folder of the website find wp-config.php and right click then choose edit.

Step 2:

Add the following code at the end of the file.

define(‘FS_METHOD’,‘direct’);

save and close.

Step 3:

If you using ispconfig or any host that you have access to the /var/www/web folder using the terminal then paste the below command

sudo chmod 777 /var/www/web/
chown -R apache:apache /var/www/web -R

But your client folder might be different than use pwd command to show where is the exact web folder.

Refresh your page. it will fix. if it doesn’t work for you let us know.