New Vision Reseller Guide

For more information contact us at info@newvisiondevelopment

Moving Domains Between Accounts

 

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 implies the use of a java class that comes with New Vision 2.095 and higher. This class works only for domains with shared IP.

  1. Create the new account (you may already have it created).
  2. 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
  3. As cpanel, execute the class with the command:
    su - cpanel -c 'java psoft.hsphere.tools.DomainMover xyz.com userd2
  4. Restart control panel.
  5. Log into the new account, go to WebServices, select the new domain if you don't get into it right away, and click on Apply Changes.
  6. 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.



© Copyright 1998-2002. Positive Software Corporation.
All rights reserved.