Move a addon domain to main domain


Aug 16, 2007
It is possible but you will have to do it manually. There is no cpanel script for doing this. You can do it using the following steps:
1) Take a backup of your addon domain(cp -arp /home/username/public_html/ /home/username/public_html/addon.com_bk , mysqldump addon_db >addon_db.sql)
2) remove the addon domain from domain's addon list from cpanel.
3) create a new domain with addon domain's name
4) restore public_html and databases to newly created domain.
You can also take a backup of email filters, emails and forwarders and restore it after creating the domain. Make sure you change the permission of the files after restore.