Archive for the “Cpanel” Category

If mysql service is failing upon start, you will have to place the following code in /etc/my.cnf under ‘mysqld’ section and restart mysql service.

skip-innodb” (Do not add the quotes).

Tags: , ,

Comments No Comments »

Since there isn’t a way in Cpanel to actually disable the email service, you can remove the ability from Cpanel that allows it to send email directly. Basically there are two files that need to be editted. The remotedomains and the remotedomains file. In the localdomains, it includes every domain that has been setup in cpanel. What you need to do is access that file and remove that entry from it. So if you were to log into the server, you would shell in and perform this. An example would be like;

#vi /etc/localdomains

In the file you would see a listing like this;

:localhost

:Mydomain.com

:Myhost.com

So if you wanted to disable mail for Mydomain.com, you would simply remove it and save it. Then you would edit the remotedomain file;

# vi /etc/remotedomains

And then add the domain you removed from the localdomain to here. Save the file and restart the mail services. That’s it.

This is also helpful if you are hosting email external and Cpanel is ignoring the remote / external MX records.

Tags: , , , ,

Comments No Comments »

If you happen to attempt to change a Cpanel password from WHM and get the following error, it by be due to the Perl install on the server being incorrect or corrupted;

” The password for ‘aaccount’ could not be changed because: ”

Normally it will give you the reason why, however if the Perl install is bad, it will simpy say the message and nothing else.

To correct this, follow the link on how to install / update perl in CPanel – http://www.keithdmitchell.com/2009/01/updating-cpanel-to-perl-588/

Tags: , ,

Comments No Comments »

1. Log into your Server or VPS via SSH (if you are running windows, you can SSH using Putty).
2. From the command line, execute the following:
# /scripts/rebuildcpusers

This rebuilds the individual files for each domain under /var/cpanel/users from the source database, which fixes the display issues in WHM.

Tags:

Comments No Comments »

You may notice that if you attempt an easyapache update in Cpanel that you run into the following issue;

Premature end of script headers: /usr/local/cpanel/whostmgr/docroot/cgi/
easyapache.pl: Please check   /  usr /  local /  cpanel /  logs /  error_log  for the exact error.

This indicates that you have either a bad install or an out of date instance of Perl. You can correct this by doing the following;
SSH into the vps  / server and do the following;

cd /

wget http://layer1.cpanel.net/perl588installer.tar.gz

tar -xvzf perl588installer.tar.gz

cd ./perl588installer

./install

cd /

rm -rf ./perl588installer

rm ./perl588installer.tar.gz

rm -f /home/*/.cpanel-datastore/_usr_bin_perl_-v

All done!

Tags: , ,

Comments No Comments »