Upgrading WordPress – This is usually due to inconsistent file permissions.: wp-admin/includes/update-core.php

Error in WordPress can very ennoying and they can be fixed as follow:

This may happenned whey you are trying to use the auto update button to upgrade to WordPress to the lastest version 3.8.1 (01/02/2014).

eg. Exampe of the error – This is usually due to inconsistent file permissions.: wp-admin/includes/update-core.php

Sometimes the solution is very simple.

Run the following command

ps aux | grep apache (if you run the apache server) WordPress require that the owner of the files is equil to the user who runs the web server eg apache.
in this case my user is

root@amios:/home/wordpress/public_html# ps aux | grep apacche
root 28868 0.0 0.1 9392 896 pts/0 S+ 16:54 0:00 grep –color=auto apacche
root@amios:/home/wordpress/public_html# ps aux | grep apache
root 7368 0.0 2.9 298460 14836 ? Ss Jan22 0:55 /usr/sbin/apache2 -k start
www-data 28840 0.0 1.7 298616 8660 ? S 16:53 0:00 /usr/sbin/apache2 -k start
www-data 28841 1.1 7.6 328132 38624 ? S 16:53 0:01 /usr/sbin/apache2 -k start
www-data 28842 0.0 1.7 298616 8660 ? S 16:53 0:00 /usr/sbin/apache2 -k start
www-data 28843 0.0 1.7 298616 8660 ? S 16:53 0:00 /usr/sbin/apache2 -k start
www-data 28844 0.0 1.7 298616 8660 ? S 16:53 0:00 /usr/sbin/apache2 -k start
www-data 28846 0.0 1.7 298616 8660 ? S 16:53 0:00 /usr/sbin/apache2 -k start
www-data 28850 0.0 1.7 298616 8660 ? S 16:53 0:00 /usr/sbin/apache2 -k start
www-data 28852 3.4 7.5 326708 37904 ? S 16:53 0:02 /usr/sbin/apache2 -k start
www-data 28853 0.0 1.7 298616 8660 ? S 16:53 0:00 /usr/sbin/apache2 -k start
www-data 28862 0.0 1.7 298616 8660 ? S 16:54 0:00 /usr/sbin/apache2 -k start
root 28870 0.0 0.1 9392 892 pts/0 S+ 16:54 0:00 grep –color=auto apache

then run the following command on your wordpress installation
You are changing the user who owns the wordpress installation to

root@amios:/home/wordpress/public_html# chown -R www-data /home/wordpress/

then you can upgrade your wordpress and change the user back if you prefer.

Enjoy!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s