sab
By:
sab

Cannot update Wordpress plugins (file permission issues)?

August 28, 2017 139 views
WordPress

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?

1 Answer
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

Have another answer? Share your knowledge.