Contact Latest Articles Home rafled dot net

How to fix inconsistent file permissions error in Wordpress?


December 11, 2020 | Tech


Did you get

 Downloading update from https://downloads.wordpress.org/release/wordpress-5.1-new-bundled.zip…
 Unpacking the update… 
 The update cannot be installed because we will be unable to copy some files.
 This is usually due to inconsistent file permissions.: wp-admin/includes/update-core.php Installation Failed
error?

Don't worry, you can fix the error using just 2 commands.

Use this command first


sudo usermod -aG www-data $USER

Then, use this command.

*remember to replace the path with your wordpress directory path*


sudo chown -R www-data:www-data /*your wordpress directory here*

Then, the last command

*remember to replace path here with your wordpress directroy*


sudo chmod -R 774 /*your wordpress directory here*


That's it, this should fix the error. If you don't have access to sudo, please contact your hosting provider regarding this