#1 (permalink)  
Old 07-09-2009, 02:20 PM
Registered User
 
Join Date: May 2006
Posts: 176
Metro2 is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-09-2009, 05:46 PM
Spiral's Avatar
Registered User
 
Join Date: Jun 2005
Location: Area 51
Posts: 1,501
Spiral is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-09-2009, 05:52 PM
Registered User
 
Join Date: May 2006
Posts: 176
Metro2 is on a distinguished road
Spiral, thank you VERY much for your detailed explanation / method, this helps greatly!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-09-2009, 06:05 PM
d_t d_t is offline
Registered User
 
Join Date: Sep 2003
Location: Bucharest
Posts: 163
d_t is on a distinguished road
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.
__________________
Joomla & Magento cPAddons
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 07-10-2009, 04:30 AM
Registered User
 
Join Date: May 2006
Posts: 176
Metro2 is on a distinguished road
Thank you for the extra info d_t !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 07-11-2009, 12:32 AM
Registered User
 
Join Date: Sep 2006
Location: USA
Posts: 80
ANewDay is on a distinguished road
Cpanel should release a tool. I've been contemplating on doing this for one of my addon domains for some time.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 07-13-2009, 10:57 AM
cPanelDavidG's Avatar
cPanel Technical Sales
 
Join Date: Nov 2006
Location: Houston, TX
Posts: 7,995
cPanelDavidG is on a distinguished road
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).
__________________
Want our technical analysts to login to your server to assist you? You can contact our technical analysts at: http://tickets.cPanel.net/submit
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 07-14-2009, 08:47 PM
Registered User
 
Join Date: Jan 2008
Posts: 1
tekainc is on a distinguished road
What is the procedure in the first step re: backup the files.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Move account to domain addon? nibb cPanel and WHM Discussions 1 09-05-2009 12:16 AM
move addon domain from one server to another corodyne cPanel and WHM Discussions 2 01-17-2008 01:04 PM
Need to move addon domain from 1 cpanel account to another louish cPanel and WHM Discussions 1 07-21-2007 03:04 PM
Moving from a single cpanel account to a VPS with WHM, can I move addon accounts? norelidd cPanel and WHM Discussions 1 02-22-2007 01:36 AM
addon domain issues after move Wicked cPanel and WHM Discussions 1 07-14-2006 05:25 AM


All times are GMT -5. The time now is 08:21 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc