I have a dedicated server running CentOS 6.9 and WHM/Cpanel
Sometime ago I ran two commands as following
chgrp -R shahzaib-ftp /home
chmod -R g+w /home
I am able to run cpanel and WHM but no website from any cpanel account is working. Can you please help me to setup correct owner and permissions? To see error visit aubdesign.com.au website for example.
Then, run it (with ROOT permissions) while using the ‘a’ flag to specify a particular cPanel user:
sh ./fixperms.sh -a USER-NAME
It does not matter which directory you are in when you run fixperms. You can be in the user’s home directory, the server root, etc… The script will not affect anything outside of the particular user’s home folder.
Fixperms - for all of the users
If you would like fix the permissions for every user on your cPanel server, simply use the ‘-all’ option: