A blog for Linux Lovers.

Archive for the ‘Whm/cpanel’ Category

Posted by sibu on May 24, 2009

Required permissions and directories for Fantastico

Fantastico requires certain files and directories to have the following permissions:

NOTE: Depending on your server setup, the files may be in slightly different locations.

/bin/tar 0755
/bin/gzip 0755
/usr/bin/wget 0700
/bin/bash 0755

Directories (create if they do not exist):
/tmp 1777
/usr/local/cpanel/base/tmp 1777
/usr/local/cpanel/3rdparty/tmp 1777

Posted by sibu on May 24, 2009

How to check who are logged in whm/cpanel with ip and user name details?

There are two ways you can check who is currently logged into WHM or cPanel.

1) Log in to the server via SSH and run ps aux | grep whostmgrd to see who’s currently active in WHM, and ps aux | grep cpaneld to see who’s currently active in cPanel. If the users have been idle for some time, this method may not work.

2) This method is less than ideal, but if you know the IP address then you can tail -f /usr/local/cpanel/logs/access_log | grep ip.address to see what they are doing, again only if they are active within WHM or cPanel will this work.

You can check this from the login_log in /usr/local/cpanel/logs or /usr/local/cpanel/logs/access_log.

Posted by sibu on April 16, 2009

Private Nameserver Setup.

1.Register the domain name you would like to use. If you have already a domain name please create an account for this domain on server whm. This domain will be used as your nameservers.                                eg and

2. Additional IPs

Have 2 available IP addresses for your server that aren’t in use. currenlty only one ipaddress is configured on the whm that is
You might have got a range of ip address with the server. please let us know the range of ipaddress we will add those ipaddress to this server.

3. Registering the Nameservers

Now login to your domain management page for the domain you registered and register and as nameservers (registries normally have a special facility for doing that). The registry may also have a facility to propogate these nameservers around the foreign registries - if so, you should use this facility.

It may take upto 24 hours the nameserver propagation. once you done this you can configure this nameservers to your whm.

Go into WHM (Web Host Manager) and select Edit Setup from the Server Setup menu on the left. Enter in the Primary Nameserver field. Hit ‘Assign IP Address’, then hit ‘Add an A Entry for this nameserver’.
Repeat this process for the Secondary Nameserver field.

Posted by sibu on March 10, 2009

Upgrading Perl version on Cpanel server

To check to see the current version

perl -V

To upgrade your perl on the Cpanel server


tar -vzxf perl587installer.tar.gz
cd perl587installer

/scripts/upcp –force

Posted by sibu on March 10, 2009

Can’t update Cron Jobs from Cpanel

Cpanel logs shows the following error while updating cron from cpanel.

tail -f /usr/local/cpanel/logs/error_log

Error message

cron/tmp.XXXXctNJVe: Permission denied

Cause of the issue

The /usr/bin/crontab binary was not setuid so it was unable to write to cron/tmp

Solution to this problem

chmod 4755 /usr/bin/crontab

Posted by sibu on March 10, 2009

SpamAssasin failing with “Transport filter process failed (127): unable to execute command”

SpamAssassin was failing to deliver emails with the following message:

SMTP connection from USERNAME lost while reading message data (header)
1H4zGX-0000KH-FH == R=virtual_sa_user T=virtual_sa_userdelivery defer (-24): Transport filter process failed (127): unable to execute command

To fix force a reinstall of the perl module:

perl -MCPAN -e shell
clean Mail::SpamAssassin
install Mail::SpamAssassin

Posted by sibu on March 10, 2009

cPanel email inconsistent quota

If a cPanel email user quota does not match what is being reported by the system or a mail client run the following to determine how much space has been used for real:

du -hs /home/username/mail/

then compare it with what cPanel reports for the disk usage, if they are different delete:


finally re-login to cPanel and it should be resolved.

Posted by sibu on March 10, 2009

Cpanel Image missing from whm list accounts.

Please make sure that the following option is uncheked in your WHM >> tweak settings under System tab

“Disable login with root or reseller password into the users’ cPanel interface. Also disable switch account dropdown in themes with switch account feature.”

Thank you


Posted by sibu on March 10, 2009

Domain is not listing in whm ” list accounts”

Please make sure that the domain name listed in following files.




Posted by sibu on March 3, 2009

cPanel/ WHM license error

Initially you will have to verify if the license has got expired or if it is just an issue occurred since you have changed any of your system information.

You can get this done by going to the site: and enter your servers main IP over there. And, if you see that your license is still valid, its simple… login to your server as root user and execute the command


It will fix the issue else, you will have to pay for your license. Contact your license provider. It can either be your DC or the cPanel team itself.