Archive for the ‘cPanel’ category

Specifying allowable permissions of files and folders

February 26th, 2010

If you have setup suPHP/phpsuexec and it currently has accounts on it you will want to run the following:

In root you will run:
/scripts/postsuexecinstall
/scripts/chownpublichtmls

And from under your /home directory (or the directory you’ve specified for accounts)
find -perm 777 -exec chmod 755 {} \; -print
find -perm 666 -exec chmod 644 {} \; -print
/scripts/fixsuexeccgiscripts

cPanel shows License File Expired

February 26th, 2010

If you try to access WHM/cPanel one day but are shown an error message stating “License File Expired,” first you can go to cPanel’s License Verification page and enter in the IP address that is attached to your cPanel license. If it shows as valid then you can run the following command under root:

/usr/local/cpanel/cpkeyclt.

If that does not work and the error still persists, you will need to open a support ticket with cPanel to have them look into the issue.

Fix Quotas for cPanel accounts

February 26th, 2010

If your accounts are showing as using 0 disk space ensure that you have enabled quotas within cPanel. This should have been selected while you were going through your initial cPanel setup however if you did not enable this setting you can go to WHM > Server Configuration > Initial Quota Setup.

Once you’ve got your quotas all set, you’ll need to log into SSH to run the following command:
/scripts/fixquotas