Cannot update Wordpress plugins (file permission issues)?

Posted August 28, 2017 21.8k views

I get: Update Failed: The update cannot be installed because we will be unable to copy some files. This is usually due to inconsistent file permissions.

When trying to update plugins from the admin interface. I’ve set the user to www-data for both directories and files … but nothing works.

What do I have to do to simply being able to use Wordpress as it is intended?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

8 answers

Ran these commands, and it’s now working just fine (both dashboard and ftp).

sudo usermod -aG www-data $USER

sudo chown -R www-data:www-data /var/www

sudo chmod -R 774 /var/www

Worked as well, does it open any security backdoor ?

Thanks man, work perfectly..

The commands also worked for me, thanks!

Thanks it worked for me too!

Thanks, it worked for me -

worked for me! ty!

Submit an Answer