Finally found out why the automatic update did not work, SELinux. The first thing I say to my colleges when on linux and the rights are ok, check for SElinux, and what am I doing…

I found this link: Unable to Update WordPress

My listing said:

unconfined_u:object_r:httpd_sys_r_content_t:s0

and the wp_content had:

unconfined_u:object_r:httpd_sys_rw_content_t:s0

But it needs to be:

system_u:object_r:httpd_sys_rw_content_t:s0

To get it there:

chcon --reference=/var/www/html -R /var/www/html/wordpress-blog
chcon -R --type httpd_sys_rw_content_t /var/www/html/wordpress-blog

The first gives you “system_u:object_r” and the second

system_u:object_r:httpd_sys_rw_content_t:s0

This needs also be done after you restore your backup!