The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Move a addon domain to main domain

Discussion in 'General Discussion' started by Siti Livorno, Jul 25, 2010.

  1. Siti Livorno

    Siti Livorno Registered

    Joined:
    Jul 25, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hello i have a cpanel account with a lot of addon domains, is there a way to convert the addon domains in main domain accounts. to put it out from the addon structure into the whm List Account structure ?

    Thanks,
    Sebastian
     
  2. angitha

    angitha Member

    Joined:
    Aug 16, 2007
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    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/addon.com /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.
     
Loading...

Share This Page