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.
