Announcement

Collapse
No announcement yet.

How do i move an account manually to a different server ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How do i move an account manually to a different server ?

    Note: In the steps below, the domain is '' test.com '' and the username is '' user ''.

    When an account is too large to move with the web browser, perform the following steps to move the account:

    1. Run the mkdir /home/cptemp command to make a temporary directory in the /home directory where you can store the account's files while you copy them.

    2. To compress and move the public_html directory, run the below commands:
    • cd /home/user/
    • tar czvf public_html_user.tgz public_html
    • mv public_html_user.tgz /home/cptemp/
    • mv public_html /home/cptemp/

    3. To move the site's weblogs, run the following commands:
    • cd /usr/local/apache/userlogs/
    • gzip test.com
    • mv test.com.gz /home/cptemp/

    4. After all of the necessary files are in the /home/cptemp/ directory, move the account in WHM. This sets up the new account on the new server.

    5. Navigate to the /home/cptemp/ directory and run the following command to move the files:

    6. Enter the root password for the new server and run the following command to move the other file:

    7. Enter the required login information.

    8. Go to the new server and run the following commands to unpack the two large files that you just moved:
    • cd /home/dom/
    • gzip -d domain.com.gz
    • tar xzvf public_html_dom.tgz
    • cd /usr/local/apache/domlogs/
    Regards,
    Dexter Ray
    Webhosting UK
Working...
X