Archive for the ‘cPanel’ Category



Set catch all email address for cPanel using SSH

Monday, September 29th, 2008

On a cPanel server, you have a domain and want to set a catch all email address using SSH. You just have to do the following:

Login to your server as root

root# nano /etc/valiases/yourdomain.com

If you want to set the catch all email to something@somedomain.com do the following:

*: something@somedomain.com

That’s it!

This article is released by SupportFacility.Com — the leaders in providing outsourced technical support, live chat support & help desk support for web hosts. Interested ? Opt for a trial now.


Mailbox quota shown wrong on cPanel

Wednesday, June 4th, 2008

On your cPanel dedicated server, for an email the mailbox quota is displayed wrong – follow the below steps:

Login to your server as root
cd /home/username/mail/domain.com/emailaccount
rm -rf maildirsize

Now, login to cPanel
Go to email account and change the quota for particular email account.
(Once you change quota, it will recreate file maildirsize automatically)

You can also delete maildirsize file from cpanel > file manager

That’s it!

This article is released by SupportFacility.Com — the leaders in providing outsourced technical support, live chat support & help desk support for web hosts. Interested ? Opt for a trial now.


Hosting account migration manually on cPanel server

Monday, May 26th, 2008

There is a scenario where you need to transfer a hosting account which is present on your server to another (new) server, to accomplish this follow the below steps:

Present server:

cd /home

/scripts/pkgacct username
This command will create a file cpmove-username.tar.gz in the /home directory, now this is to be copied to the new server.

scp cpmove-username.tar.gz root@server-IP:/home
This will prompt for the password, you can enter the new server password.

New server:

/scripts/restorepkg username
This will restore the hosting account which includes email, database and the contents

That’s it!

This article is released by SupportFacility.Com — the leaders in providing outsourced technical support, live chat support & help desk support for web hosts. Interested ? Opt for a trial now


Spamd failed on cPanel

Saturday, May 24th, 2008

You have a cPanel server and if you’re receiving messages like below, in your emails and you do not need this messages in your inbox.

spamd failed @ Fri May 23 20:32:36 2008. A restart was attempted automagically.

Within your WHM > Security > Service manager there are two checkboxes one is “enabled” and other is “monitor” just uncheck the monitor one and you will not receive any more notification emails in your inbox.

This article is released by SupportFacility.Com — the leaders in providing outsourced technical support, live chat support & help desk support for web hosts. Interested ? Opt for a trial now


Error from park wrapper: domain.com is already configured

Thursday, May 22nd, 2008

On a cPanel server if you get the error: Error from park wrapper: domain.com is already configured while adding an add-on domain under cPanel. Make sure to remove the domain.com entries from:

/var/named/domain.com.db
/etc/httpd/conf/httpd.conf
/var/cpanel/users/username
/etc/userdomains
/etc/localdomains

Renaming or commenting will not help; you will have to remove the entries completely. Try now.

This worked for me.

This article is released by SupportFacility.Com — the leaders in providing outsourced technical support, live chat support & help desk support for web hosts. Interested ? Opt for a trial now


PHP directives and php.ini path on cPanel hosting server

Monday, May 19th, 2008

php.ini is a configuration file that is read when a php script gets executed, when the php script starts it looks for it in the current working directory, if it’s not present then it will check for the main servers php.ini . It contains the directives with their local values and master values – few most common directives are: register_globals, allow_url_include , allow_url_fopen , open_basedir etc…

So, you must be wondering how to find the path for php.ini on your cPanel web server. Assuming that you have root access the command to check the path is:

root@server# php –i | grep php.ini
Configuration File (php.ini) Path => /usr/local/lib/php.ini

If you’re not a system admin and you do not have root access, but want to know about the PHP directives which is on the server on which your site is hosted – this can be done by creating a simple PHP file and accessing it with your favorite browser. Just add the below code in the PHP file:

<?
phpinfo();
?>

I hope you see all the information that you require.

This article is released by SupportFacility.Com — the leaders in providing outsourced technical support, live chat support & help desk support for web hosts. Interested ? Opt for a trial now


Disk usage on cPanel server

Tuesday, May 13th, 2008

On a Linux system for a system administrator it is necessary to check disk usage on the server and make sure that the disk space does not get 100% and cause problem for the users, so as a routine you should always check for disk space.

The command to check disk space on the complete server is:

root@server# df –h

If a particular partition is consuming too much disk space and you need to find which folder under that partition is using it, for example the partition is /var you can use the command:

root@server# cd /var

root@server# du –sh *

This will display the size of each directory under the /var partition.

So, be proactive and keep your server always healthy.

This article is released by SupportFacility.Com — the leaders in providing outsourced technical support, live chat support & help desk support for web hosts. Interested ? Opt for a trial now.


Domain not showing in cPanel – WHM > List accounts

Thursday, May 1st, 2008

You have added a domain on your cPanel dedicated server and when you checked “list accounts” under your Webhost Manager (WHM) the domain is not listed, however you can see the hosted domain on your server using SSH. This is because your domain database has not been updated. Just execute the following command on your cPanel server to get this fixed.

root@server# /scripts/updateuserdomains

And, now check it under your WHM > List accounts. You will see the domain listed there.

That’s it!

This article is released by SupportFacility.Com — the leaders in providing outsourced technical support, live chat support & help desk support for web hosts. Interested ? Opt for a trial now.


Log files on a cPanel dedicated server

Friday, April 25th, 2008

Log file is a file which stores all the information of all files that are accessed, and they also have errors which help a system administrator to troubleshoot issues and fixing them to make the web server stable. Few logs can be found below:

Apache web server

/usr/local/apache/logs/access_log
/usr/local/apache/logs/error_log
/usr/local/apache/domlogs/domain.com

MySQL database server

/var/lib/mysql/server.hostname.com.err

Exim mail server

/var/log/exim_mainlog
/var/log/exim_paniclog
/var/log/exim_rejectlog

Courier-IMAP

/var/log/maillog

cPanel control panel

/usr/local/cpanel/logs/error_log
/usr/local/cpanel/logs/access_log
/usr/local/cpanel/logs/license_log
/usr/local/cpanel/logs/login_log
/usr/local/cpanel/logs/stats_log

FTP server

/var/log/messages
/var/log/xferlog

System logs

/var/log/messages
/var/log/boot.log
/var/log/cron
/var/log/dmesg

Security logs

/var/log/secure
/var/log/messages

This article is released by SupportFacility.Com — the leaders in providing outsourced technical support, live chat support & help desk support for web hosts. Interested ? Opt for a trial now.


CPanel stats lastrun not updated

Wednesday, April 23rd, 2008

On a cPanel dedicated web server, while monitoring the stats I have come across the error where it was showing that /var/cpanel/lastrun was last updated 841266 seconds ago.

To fix this I have executed the script, this may take some time – so check after an hour.

/scripts/runstatsonce

That’s it!

This article is released by SupportFacility.Com — the leaders in providing outsourced technical support, live chat support & help desk support for web hosts. Interested ? Opt for a trial now.