WordPress Won’t Upgrade on Redhat RHEL / Centos (Solved)

If you’ve ever been greeted with the error 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” while trying to upgrade WordPress via the UI on Centos or RHEL; typically most people point you to examine file permissions.  Usually, those are correct, apache:apache.  SELinux interferes with this process and must be manipulated with the following:

Assuming a WordPress installation path of /var/www/wordpress

chcon -R -t httpd_sys_content_t /var/www/wordpress
chcon -R -t httpd_sys_rw_content_t /var/www/wordpress

About the author

Lima is the visual nautical indicator for "stop instantly."

Leave a Reply