docker-compose-wordpress icon indicating copy to clipboard operation
docker-compose-wordpress copied to clipboard

Unable install plugins or themes when using Admin Panel

Open ngmikeng opened this issue 3 years ago • 3 comments

Wordpress ask information of FTP server when I try to install a Plugin or Theme. image

Although we can use WP-CLI but it's good to have if we can install plugin or theme by using Admin Panel.

ngmikeng avatar Dec 27 '22 08:12 ngmikeng

Just a quick change to wp-config.php, add this:

define('FS_METHOD','direct');

YevheniiVolosiuk avatar Oct 19 '23 22:10 YevheniiVolosiuk

I'm having the same issue. WordPress asks for an FTP server when trying to install a Plugin or Theme.

I tried adding define('FS_METHOD','direct'); and it stopped asking for FTP information but it shows me an error message that says: Installation failed: Could not create directory. /var/www/html/wp-content/upgrade

Any help hit will be appreciated.

edwinxico avatar May 19 '24 04:05 edwinxico

It's a folder permission problem.

You need to change permissions for upgrade or better for the full wp-content folder.

You can try:

sudo chmod -R 755 wp-content

WP docs

YevheniiVolosiuk avatar May 19 '24 17:05 YevheniiVolosiuk