Control Web Panel

WebPanel => CentOS-WebPanel GUI => Topic started by: affriedl on February 11, 2019, 08:04:11 PM

Title: Broken File Permissions after site upload
Post by: affriedl 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?

Title: Re: Broken File Permissions after site upload
Post by: affriedl 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.
Title: Re: Broken File Permissions after site upload
Post by: studio4host 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.