File/Directory Permissions on CentOS
-
I have been tasked with migrating a site from a hosted site to an in-house server. I have the CentOS 7 server installed. I have Apache, MariaDB, and PHP installed along with WordPress. I copied the files of the live site to /var/www/html and created the database for WordPress. The site itself is working fine. In the WP Admin, I can update all the plugins with no problem. I have full console access to the server.
Here is two things I am trying to accomplish with no luck.
(1) – I want to be able to use the one-click update for WP. I am getting the error:
Downloading update from https://downloads.www.remarpro.com…
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 FailedI know this is mentioned many times on the support sites I have found, but nothing I have tried has fixed this issue.
(2) – In attempting to fix my problem in (1) above, I know that I have likely left settings so that things are not set with the proper owner and permissions. I am relatively new to Linux and I have not found a step-by-step guide to ensure permissions and ownership are what they need to be. After (1) above is working I want to harden the file/folder permissions to the recommended settings while still maintaining all the functionality of WP and updates. Initially, root was the oner of the /html folder and all subfolders, but now it is apache. I am not sure if this is correct or not.
Can anyone help me with this?
Thanks in advance…
- The topic ‘File/Directory Permissions on CentOS’ is closed to new replies.