Cannot update WordPress to 5.2

I am using CentOS 7 (CentOS Linux release 7.6.1810 (Core)), NGINX 1.15.12, WordPress 5.1

Error

Update WordPress
Downloading update from https://downloads.wordpress.org/release/wordpress-5.2-no-content.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

My screenshoots

Topic nginx updates Wordpress

Category Web


You might need to switch SELinux into Permissive mode:

sudo setenforce 0

You will most likely want to set the mode back when you are done.


All directories should be 755 or 750. All files should be 644 or 640. Exception: wp-config.php should be 440 or 400 to prevent other users on the server from reading it. No directories should ever be given 777, even upload directories. Since the PHP process is running as the owner of the files, it gets the owners permissions and can write to even a 755 directory.

Run the following commands in your root folder and try to update your WordPress again.

find . -type d -exec chmod 755 {} \;  
find . -type f -exec chmod 644 {} \;  

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.