Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 19
  1. #1
    Member
    Join Date
    May 2006
    Posts
    236

    Question The best way to move an Addon domain out to it's own account?

    I've seen a couple methods described, but I'm wondering what the best approach is to moving an Addon Domain out of an account and into it's own hosting account.

    Could someone please share your opinion / experience / preferred method?

    Thank you,
    M2

  2. #2
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    Quote Originally Posted by Metro2 View Post
    I've seen a couple methods described, but I'm wondering what the best approach is to moving an Addon Domain out of an account and into it's own hosting account.

    Could someone please share your opinion / experience / preferred method?

    Thank you,
    M2
    * Backup the files, email accounts (if any), and databases for the domain.

    (Side Note: If you copy the entry from /etc/passwd & /etc/shadow, you
    can re-instate the original password for FTP even if you don't know it)

    * Delete the domain from the server

    * Create the domain on it's own account. It is preferable to keep the
    same IP address as the original account if that is possible.

    (Right here is where you can put back the original password from
    /etc/shadow if you saved that off earlier)

    * Restore files to /public_html under the new account and you may
    have to globally replace paths in the files from the old folder location
    to the new folder location so you don't get any broken scripts or links

    * Recreate the databases, merge in the backed up data, update the
    script configs for any scripts on the site that use databases to point
    to the new database and usernames.

    * Recreate any email accounts and load saved mail files back into
    /home/(login)/mail for the new account.

    You should have everything back up and running again but have
    the addon domain now operating under it's own account.

    Actually most of this could be automated fairly easily. Since this is a
    common question, maybe I'll just write an addon to full account conversion
    script for everyone to use later.

  3. #3
    Member
    Join Date
    May 2006
    Posts
    236

    Default

    Spiral, thank you VERY much for your detailed explanation / method, this helps greatly!

  4. #4
    d_t
    d_t is offline
    Member
    Join Date
    Sep 2003
    Location
    Bucharest
    Posts
    231

    Default

    Quote Originally Posted by Spiral View Post
    * Recreate any email accounts and load saved mail files back into
    /home/(login)/mail for the new account.
    You don't need to recreate email accounts from cPanel, just move the mail/example.com and etc/example.com from the old account to the new one then change the owner to new user (note that some files should be in "mail" gorup) This way, the email passwords are keept.

    Also, in order to access accounts from horde, you need a symlink
    mail/user\@example.com -> mail/example.com/user

    Forwards and mail filters are keept in /etc/valiases/ and /etc/vfilters/ - should be backuped and restored with the new domain name.

  5. #5
    Member
    Join Date
    May 2006
    Posts
    236

    Default

    Thank you for the extra info d_t !

  6. #6
    Member
    Join Date
    Sep 2006
    Location
    USA
    Posts
    86

    Default

    Cpanel should release a tool. I've been contemplating on doing this for one of my addon domains for some time.

  7. #7
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,720
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Our developers are considering the implementation of a utility to migrate an addon domain out to its own account. I have no ETA on this functionality. (Internal Case 8970).

  8. #8
    Registered User
    Join Date
    Jan 2008
    Posts
    1

    Default

    What is the procedure in the first step re: backup the files.

  9. #9
    Member
    Join Date
    May 2003
    Posts
    610

    Default

    Quote Originally Posted by cPanelDavidG View Post
    Our developers are considering the implementation of a utility to migrate an addon domain out to its own account. I have no ETA on this functionality. (Internal Case 8970).
    Is this utility already available?

  10. #10
    Member
    Join Date
    May 2006
    Posts
    236

    Default

    Funny this was brought back up again - I have to do another one of these today in fact!

    Yep, sure would be nice if cPanel ever adds their automated tool to do this in WHM.

  11. #11
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,720
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Metro2 View Post
    Funny this was brought back up again - I have to do another one of these today in fact!

    Yep, sure would be nice if cPanel ever adds their automated tool to do this in WHM.
    If you can create a thread in the feature request forums detailing how you want us to implement this, and post a link to that thread here so we can get some discussion going, that can help expedite this effort. It will also allow us to provide more status updates and allow you to answer any questions our developers have.

  12. #12
    Member
    Join Date
    May 2006
    Posts
    236

    Default

    Hi cPanelDavidG,

    I think you might have me mixed up with one of the folks on here who actually know how to (or said they know how to) create a solution for this.

    I'm simply the original poster who was asking for the best way to perform the operation when I started this thread a year ago.

    Trust me, if I knew how to implement an automated tool to make converting addon domains to their own hosting accounts, I'd have already done it by now and would be distributing it to everyone. (Not to mention I wouldn't have just done an "addon to full account" migration manually once again).

    But no, I'm not that guy who has the answer. I was just the guy asking the original question, and then the guy responding with a comment after you mentioned that cPanel Developers were already considering the implementation of a migration utility that would rid us of this... migrain

  13. #13
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,720
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Metro2 View Post
    Hi cPanelDavidG,

    I think you might have me mixed up with one of the folks on here who actually know how to (or said they know how to) create a solution for this.

    I'm simply the original poster who was asking for the best way to perform the operation when I started this thread a year ago.

    Trust me, if I knew how to implement an automated tool to make converting addon domains to their own hosting accounts, I'd have already done it by now and would be distributing it to everyone. (Not to mention I wouldn't have just done an "addon to full account" migration manually once again).

    But no, I'm not that guy who has the answer. I was just the guy asking the original question, and then the guy responding with a comment after you mentioned that cPanel Developers were already considering the implementation of a migration utility that would rid us of this... migrain
    In that case, feel welcome to create a thread proposing this functionality and leave the desired implementation to everyone else who participates in the discussion.

  14. #14
    Member
    Join Date
    May 2006
    Posts
    236

    Default

    Quote Originally Posted by cPanelDavidG View Post
    In that case, feel welcome to create a thread proposing this functionality and leave the desired implementation to everyone else who participates in the discussion.
    Thank you cpDavidG, I'll go ahead an do that and maybe something will "click" with it.

  15. #15
    Member
    Join Date
    May 2006
    Posts
    236

    Default

    I've taken your advice cpDavidG, and started this new thread - http://forums.cpanel.net/showthread.php?t=157953

Similar Threads & Tags
Similar threads

  1. How to move from subdomain to addon domain
    By johnbaldry in forum New User Questions
    Replies: 1
    Last Post: 06-22-2010, 12:24 PM
  2. Move Addon domain to Full Account on Different Hosting
    By member11 in forum Database Discussions
    Replies: 4
    Last Post: 02-24-2010, 12:13 PM
  3. Move account to domain addon?
    By nibb in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-05-2009, 12:16 AM
  4. Need to move addon domain from 1 cpanel account to another
    By louish in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-21-2007, 03:04 PM
  5. addon domain issues after move
    By Wicked in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-14-2006, 05:25 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube