Author Topic: Broken File Permissions after site upload  (Read 4902 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Broken File Permissions after site upload
« on: February 11, 2019, 08:04:11 PM »
All on a CentOS 7 Linode.

Created a new user with domain X. 
Logged into Webpanel with account of user X.
Create MySQL Database and User, imported database exported from CPanel - OK!
Looged into FTP using FileZilla using credentials of user X
Uploaded Wordpress site (originally from cPanel) to the public_html folder of User X
Browsed website using Chrome and saw the wesbite front end.
Logged into the Wordpress site.

Attempted to use any Admin functionality - FAILED

Back in Webpanel as User X attempted top set permissions for files in public_html.

Wordpress site now completely broken with Permission error.

Log into Webpanel as root, Fix Account Permissions, selected nobody - fix, selected User X - fix.

Retest  Wordpress site - STILL broken with permissions error.

Suggestion? Help?


Offline
*
Re: Broken File Permissions after site upload
« Reply #1 on: February 11, 2019, 08:11:17 PM »
So I disabled mod_security for the user and suddenly the website works fine.

Why did this make a different?  Question is. Shouldn't I be using mod_security to security reasons?  How dp I fix the permission to make the Wordpress site compatible to mod_security?

Thanks.

Offline
*
Re: Broken File Permissions after site upload
« Reply #2 on: February 12, 2019, 09:58:21 PM »
how do you know that you have file permission issues ?
You need to check in the webserver logs for the issue and then you would know the exact error.

if this is related to mod_security then you would probably simply only need to check rule id of mod_security causing that issue and while list it for that domain....you can find more info about that on the cwp wiki site.
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.