Wordpress Plugins Couldn't Update: Could not create directory

1.4k Views Asked by At

Good day! Why is it that I am not able to update my plugins in my Wordpress Website.

In my FTP File I have already set my plugins folder to 755 then configured my wp-contents to 755. In my wordpress Site Health, this is what is written in File Permission

The main WordPress directory    Writable
The wp-content directory        Writable
The uploads directory           Writable
The plugins directory           Writable
The themes directory            Writable

I have done everything written in this site and still I can't update any of my plugins. I don't know what is wrong anymore or what should I do.

I am using CWP, with WordPress 5.5.1 and PHP version 7.4.10

1

There are 1 best solutions below

12
On

One way to solve this problem, trying to change the FTP permissions by the “wp-config.php” file.

There're some steps to fix “Installation failed, could not create directory.” From your web hosting account, open the “File Manager”. Within the root folder, locate the “wp-config.php” file. In your “wp-config.php” file, enter the following passage of code. NOTE: Replace the information in brackets with your information.

define(‘FS_METHOD’, ‘ftpext’);
define(‘FTP_BASE’, ‘/pathtorootofyourblog/’);
define(‘FTP_USER’, ‘ftpusername’);
define(‘FTP_PASS’, ‘ftppassword’);
define(‘FTP_HOST’, ‘yoursite.com’);
define(‘FTP_SSL’, false);

Save the “wp-config.php” file. Return to your dashboard and try to install the plugin or upgrade once again. This time, it should be done without any problems.