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.

Switch Primary Domain to existing addon/parked domain

Discussion in 'General Discussion' started by buyrihn, Mar 17, 2014.

  1. buyrihn

    buyrihn Registered

    Joined:
    Jul 14, 2013
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    My main domain is example.com, so every time I add a new site, it can of course be found at newsite.com as well as newsite.example.com. I have about 6-7 websites that resolve to (website name here).example.com. One of those website (wt.com and wt.example.com), I would like to have become the main website. Essentially, I need all of my sites to be subdirectories of wt.com (so example.com would become example.wt.com, as well as all the other ones).

    What exactly do I need to do? I read something here (https://forums.cpanel.net/f34/primary-domain-change-288252.html)that said

    "If the subdomain does not already exist on the machine, then you can use WHM > Account Functions > Modify an Account to change the main domain name to any domain whether it is a real domain or not, whether it's a subdomain or not. Again, the only caveat is that the domain or subdomain cannot already exist on the machine (in httpd.conf for Apache nor in /var/named as a DNS zone file)."

    Since it DOES exist as a subdomain and addon/parked domain, what steps do I need to do to ensure that I don't lose any data in the migration? I don't host any emails, but I am concerned about databases and files.
     
  2. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    Remove the domain as a parked/addon domain, and go to whm -> modify an account, and change the primary domain. Doing this will not nuke and db's or files, and will update the corresponding subdomains for existing addon/parked domains.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    There are no native tools that will automatically convert an addon domain name to it's own account. However, the following forum thread includes user-submitted information on to complete this manually:

    Moving addon domain name to it's own account

    Also, feel free to add your input to the existing feature request:

    Tool to migrate addon domain name to it's own account

    Note that in this case, since you are keeping it on the same account, you can just copy over the website data to the public_html directory via FTP or File Manager.

    Thank you.
     
Loading...

Share This Page