Saturday 24 April 2021

[SOLVED] Wordpress update failed

 I recently tried to update the wordpress installation on useful.website and got the following message.


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.


So here's how I resolved it. My installation is behind the useful.website VPN which protects the login from other countries (esp. China and Russia ) so once I was connected to vpn.useful.website I issued the following command.

sudo chown -R www-data:www-data /path/to/wordpress


Breakdown of the command.

sudo         - switch to superuser for this command
chown     - give ownership to a folder
-R            recurse - so give permission to all files ans folders inside
www-data:www-data  - the user and group that apache web server is using when running wordpress
/path/to/wordpress  - sometimes its /var/www/html or /var/www/my.website.name but its where all the word press files are 

Hopefully this is useful for you. If you want to setup a VPN for protecting your wordpress site, please contact. VPN.team@projektor.co.uk
























No comments:

Post a Comment