The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Best method for migrating WHM ~> WHM

Discussion in 'General Discussion' started by schwim, Aug 15, 2008.

  1. schwim

    schwim Well-Known Member

    Joined:
    Aug 2, 2006
    Messages:
    198
    Likes Received:
    0
    Trophy Points:
    16
    Hi there everyone,

    I'm currently moving sites over from a server with WHM 11.2.0/cPanel 11.10.0-R16448 running Fedora 4 on it to a server with current cPanel/WHM running CentOS 5 and would like to know the following:

    1) What's the least problematic method of moving sites over from one server to another? Will the suggested method require any additional actions?

    2) What additional work may be required with sites that have an SSL Cert? Do I need to get them reissued(they will be running a new IP address)?

    I appreciate any suggestions you might be able to provide as I've always had very bad luck moving sites(albeit, from dissimilar control panels).

    thanks,
    json
     
  2. subin_hutton

    subin_hutton Member

    Joined:
    Jul 25, 2008
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    1)I think the best method is WHM to WHM transfer by using copy "multiple accounts" option to migrate accounts from one server to another server.But you need shell access and root privilage.

    If its not possible,or you don't have the root access,You create a temporary account in your new server and ftp the backup from the old server to the new server.And you can restore the account using /scripts/restorepkg script if you have access to shell in the new server.Otherwise check this with your host,they will help you.Check the following steps.

    * Create a temporary account in your new server

    * Log into the cPanel account you are wanting to transfer on the old server.

    * Click on "Backup >> Generate/Download a Full Backup".

    * Once here, select the backup destination to be "Remote FTP Server".

    * Enter your email address for verification, followed by all of the FTP account information for "restore", which we created on the new server.

    -Remote Server: new server's address
    -Remote User: restore
    -Remote Password: restore's password
    -Port: 21

    Then, click "Generate Backup". This may take some time to backup the files, depending on how large the account is. You should receive an email provided in the above info once it is complete.

    * If you have shell access to the new server,login to the server and use /scripts/restorepkg <User name>.This will restore the backup in the new server.

    2)Regarding the second query,you need another ssl certificate.Because your ip address changed to another.So you can't use the old one.

    :)
     
    #2 subin_hutton, Aug 16, 2008
    Last edited: Aug 16, 2008
  3. schwim

    schwim Well-Known Member

    Joined:
    Aug 2, 2006
    Messages:
    198
    Likes Received:
    0
    Trophy Points:
    16
    Thanks very much for the detailed reply!

    I do have shell & root access for both servers, however I would like to move only one account at a time to ensure that everything is working. Is that possible with the "move multiple accounts" option?

    Also, will moving an account actually migrate all data, including db's, mail, etc.?

    thanks,
    json
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,446
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Sure, you can move accounts one by one. You really might benefit from actually looking at your settings for moving accounts, and give one a go to test with a site that isn't bothered by downtime so you feel safe in testing.

    Moving an account consists of backing up everything including plan name and plan/account owner, so those will need checked once you move the account, and then once the backup is generated it'll send it over and set it up on the new server.

    If all of your accounts are of a reasonable size you shouldn't run into any problems I wouldn't think.
     
  5. schwim

    schwim Well-Known Member

    Joined:
    Aug 2, 2006
    Messages:
    198
    Likes Received:
    0
    Trophy Points:
    16
    Hi there infopro,

    Is your suggestion to use the single account migration feature, tweaking the settings as I go? Not the multiple accounts, right?

    I don't know what a reasonable size would be(some are a few gig in size due to galleries and media), but I'll start out with the smaller ones and work my way up.

    thanks,
    json
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,446
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Yes, single account transfer should work fine.
     
  7. schwim

    schwim Well-Known Member

    Joined:
    Aug 2, 2006
    Messages:
    198
    Likes Received:
    0
    Trophy Points:
    16
    Hi there infopro, sorry to bring a thread back from the dead, but had a couple questions. The documentation is quite sparse on the subject and in fact seems to date to an earlier version of WHM(no root pw by default) and I was wondering a couple things.

    1) Do not compress transfers: Would I want non-compressed due to the fact that less server resources are used on large sites, or do I want to leave them compressed for the minimal transfer?

    2) user root would be the best user to login as, due to higher privs, I assume?

    3) What in the heck is a public key for login? I have the root pass, but don't know what a public key is.

    Sorry for the questions, but I can't find any documentation at all concerning this system.

    thanks,
    json
     
  8. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Sometimes there are situations where you are migrating accounts of several Gigabytes in size. Compressing such large accounts can be very resource and time consuming, so this option allows you to skip that in favor of using less CPU at the expense of more transfer.

    Root is the ideal user to login as. If your server requires logging in as a separate user then su-ing to root (a common security measure nowadays), that is supported as well.

    Public keys are a secure method of logging into a server in addition to having a password. If you have not set your server up to use key authentication, you do not need to provide your public key. However, it is considered good security practice to use key authentication in addition to password authentication.
     
  9. schwim

    schwim Well-Known Member

    Joined:
    Aug 2, 2006
    Messages:
    198
    Likes Received:
    0
    Trophy Points:
    16
    Hi there David, and thanks very much for your response. I greatly appreciate it!

    thanks,
    json
     
Loading...

Share This Page