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.

WHM Transfer Tool + MySQL dump + Rsync = sound way to move an ecommerce site?

Discussion in 'General Discussion' started by meeven, Jul 23, 2015.

  1. meeven

    meeven Well-Known Member

    Joined:
    May 8, 2007
    Messages:
    124
    Likes Received:
    0
    Trophy Points:
    16
    Hi,

    We have a Magento site on one cPanel dedicated server that needs to be moved to another dedicated server with cPanel. The site has pretty high traffic, so the owner wants downtime to be kept to the barest minimum.

    We tried the following sequence of steps to migrate the site, but ended up getting a cgi-sys error page after changing the DNS to point to the new server's IP:
    1. Transfer the account to the new server through WHM transfer tool
    2. Around midnight, set the maintenance flag on the Magento site (old server) to take it offline
    3. Do mysqldump on the old server to get the latest db and place the sql file in public_html
    4. On the new server, fetch the sql file through wget and restore the db (after deleting and recreating the old db that the WHM transfer tool would have created)
    5. On the new server, use rsync to fetch the changed files (since the WHM transfer process) and move them to the site/account on the new server. At this stage, both the db and files are in sync on both the servers
    6. Change the A records in Route 53 to point the domain to the new server's IP.
    This sequence of steps goes through just fine. Except that, even ages after changing the A records, the server error page loads on the new server, instead of the migrated site.

    I wonder if steps 4 and 5 above are somehow corrupting the WHM transfer tool's restore. Does anyone here think that could be the cause?

    We are pretty sure the issue is specific to this particular account as there are other accounts on the new server whose sites share the same IP address and load just fine.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Could you let us know the specific error message you see, and what's output to /usr/local/apache/logs/error_log when this occurs?

    Thank you.
     
Loading...

Share This Page