Cannot update Wordpress plugins (file permission issues)?

August 28, 2017 10.4k 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?

8 Answers
sab August 28, 2017
Accepted Answer

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

The commands also worked for me, thanks!

Worked as well, does it open any security backdoor ?

Have another answer? Share your knowledge.