aschmelyun / docker-compose-wordpress

A docker-compose workflow for local WordPress development
241 stars 151 forks source link

Unable install plugins or themes when using Admin Panel #13

Open ngmikeng opened 1 year ago

ngmikeng commented 1 year ago

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.

YevheniiVolosiuk commented 11 months ago

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

define('FS_METHOD','direct');

edwinxico commented 4 months ago

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.

YevheniiVolosiuk commented 4 months ago

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