H-Sphere Documentation Admin Guide

For more information contact us at info@h-sphere.co.uk

Moving Domains Between Accounts

 

Related Docs:  

Moving Accounts Between Servers Moving Accounts Between Resellers

This document explains how to move a domain with its content and site settings from one account to another within one server. The suggested procedure employs an external java class and works only for domains running on a shared IP.

  1. Log into your control panel server as root:
    su -
  2. Change directory to /hsphere/local/home/cpanel/shiva/psoft/hsphere/tools:
    cd /hsphere/local/home/cpanel/shiva/psoft/hsphere/tools
  3. Download domain mover:
    wget http://www.psoft.net/shiv/classes/DomainMover.tgz
  4. Unpack domain mover:
    tar zxf DomainMover.tgz
  5. Change owner of DomainMover.class to cpanel:
    chown cpanel:cpanel *.class
  6. Change permissions:
    chmod 600 *.class
  7. Create the new account (you may already have it created).
  8. As root, copy the domain directory with all its content to the home of the new account and change the ownership of the files to the new account. Example:
    cp -r /hsphere/local/home/user1/xyz.com /hsphere/local/home/userd2
    chown -R userd2:userd2 /hsphere/local/home/userd2/xyz.com
  9. As cpanel, execute the class with the command:
    su - cpanel -c 'java psoft.hsphere.tools.DomainMover xyz.com userd2'
  10. Restart control panel.
  11. Log into the new account, go to WebServices, select the new domain if you don't get into it right away, and click Apply Changes.
  12. If this domain uses SSL, go to the old account's home directory, enter ssl_conf, copy the keys (not the files), then log into the new account's control panel and enter the keys.

Note: As the result of domain migration, the log history of this domain will be lost.

If you can't use the java class (you don't have it or the domain has a dedicated IP, you can still migrate the domain, but the site settings will be lost:

  1. Remove the domain (not the whole account !) in the old user's CP. The content will remain intact.
  2. Create exactly the same domain in the new user's CP.
  3. Transfer all content from the old user's directory to that of the new one either by FTP or by using mv command of Unix shell as root, in which case you need to change files' ownership.

Note: If FrontPage was enabled in the original site, it is recommended to skip all .htaccess and other FrontPage files, because they include full path to the old directory.


Related Docs:  

Moving Accounts Between Servers Moving Accounts Between Resellers



Home   Products   Services   Partners   Support   News   Contact   Forum
© Altaire Limited.
All rights reserved.