Permissions and Ownerships issues
I've recently set up a new vps with cpanel / cloudlinux using suPHP and EA4 (centOS).
When I create an new account, it seems to always create the /public_html folder as user:user (rather than user:nobody)
Directories are correctly given 755 but files are being created with permission 644 - though I'm wondering if they should they be 664?
What could the issue be - or is this the correct setting?
I'm not seeing any specific errors on the frontend website (wordpress) but I don't seem able to display any errors - not even php notices are showing.... though debug constants and error reporting are all set to true/on.
-
Hello, 644 is correct file permission and it should be always 644. 0 -
Hello, cPanel will automatically assign the correct group ownership values to the public_html directories (e.g. it checks Mod_Ruid2/MPM-ITK and FileProtect settings). 0644 permissions for files and 0755 permissions for directories are correct, and the recommended permission values for files and directories. Thank you. 0 -
Ok thank you - but why are new accounts being created with ownership of public_html as user:user? I am creating them manually as root login. Should they not be user:nobody? In addition, the /public_html is being given 755 also and I thought it should be 750. What could be causing that? 0 -
Hello, I'm happy to see the information helped! Thank you for updating this thread with the outcome. 0
Please sign in to leave a comment.
Comments
5 comments