Magento, PHP, MySQL, AJAX, Zend, cPanel or OpenSource…
cPanel
How to assign a new domain to an old domain expired cpanel account
Jun 1st
To assign a new domain to an old domain wen hosting space you need WHM- WebHost Manager
For example I had a domain which has expired, say abc.com, my domain may expired but if I don’t delete the account from cPanel the it should be there.
Now I have registered a new domain xyz.com and would like to use old files which was for abc.com
Login to WHM, Account Functions -> Modify an Account and select old domain abc.com and click Modify
Simply change Domain to xyz.com and click on Save.
Done!
How to delete thousands of mails by cPanel of default account
May 23rd
Today I have noticed that one of my client’s hosting space become out of quota. Though only 15MB files were there to make the work. Finally find out mail space had occupied 500 MB space! Though my client never use email though cPanel!
I have noticed there were more than 1,00,000 unread emails! All these were not spams. This is due to cron jobs delivery status mails and delivery failure mails which was being send by simple php mail() function.
I was thinking to delete the email account and create new one with same name, but cPanel don’t allows us to delete the default email account is used to “catch” mail that is unrouted and has no quota.
So, I removed two directories through “Disk Space Usage”, this utility helps us to see disk space usage
removed directory: `/home/siteuser/mail/cur'
removed directory: `/home/siteuser/mail/new'
cPanel again created these two directories automatically while I again logged in to default email account.
Disabling cron mail alert through cPanel
May 23rd
If you would like to disable cron job mail alert through cPanel then simply click on Cron Jobs page and don’t set any email address and clink on Update Email. You would see something like below:

cPanel says
You can have cron send an email everytime it runs a command. If you do not want an email to be sent for an individual cron job you can redirect the command’s output to /dev/null like this: mycommand >/dev/null 2>&1
But it did not work for me though.
This may be helpful if you have SSH access or root access.