Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 16
  1. #1
    Member
    Join Date
    Sep 2005
    Posts
    31

    Default How to Move a cpanel/WHM Server?

    Is there a program available (or set of commands) that would allow me to move my entire server to another cpanel / WHM server? I've done customization and there are certain configuration settings that I don't want to have to remember to setup on the new server, etc. So, there must be a program to move the server, say via ftp or something similar?

    Thank you.
    Last edited by bidware; 08-11-2006 at 11:14 AM.

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    The script posted by DigitalN pretty much does it if you don't want to go down the backup/restore route:
    http://forums.cpanel.net/showthread.php?t=35046

    You'll have to use the WHM IP Migration wizard afterwards if your IPs are changing.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Member
    Join Date
    Sep 2005
    Posts
    31

    Default

    Ok. That script should work with moving the server. But, there might be one more problem to consider. Once you move the files to the new server, then set the DNS servers (ns1, ns2) to the new IP's of the new server, there will be a 12 to 72 hour period that the DNS takes to propagate. So, during that time, the old server will still be receiving the updates for the 12 to 72 hour period. So, when the DNS finally resolves to the New Server, the New server will not have the current version of the files. Is there any way to ensure that the New server is actually up to date when the DNS does resolve?

    Thanks.

  4. #4
    Member
    Join Date
    Mar 2003
    Posts
    160

    Default

    The answer is to update the zone files on the old server after the account have been moved.

    Do a search on perl -pi

    This is a search and replace, old IP to new IP

  5. #5
    Member
    Join Date
    Sep 2005
    Posts
    31

    Default

    Thanks for that. So, you would run perl -pi on the new server, right after accounts have been moved and ns1, ns2 have been changed?

  6. #6
    Member
    Join Date
    Sep 2005
    Posts
    31

    Default

    Would you just do the search and replace on the New server or the Old server? I wasn't sure about that.

    Thanks

  7. #7
    Member
    Join Date
    Mar 2003
    Posts
    160

    Default

    you would run the pearl -pi on the old server so basically you are changing the old ip to the new ip in every zone file. Then restart named. All sites are instrantly resolving to the new server. Now, people who recently visited the sites would have to flush there DNS before it updates for them.

  8. #8
    Member
    Join Date
    Sep 2005
    Posts
    31

    Default

    Thanks for that. On the new server, would I still have to run the wizard that appears when you login to whm for the first time?

  9. #9
    Member
    Join Date
    Sep 2005
    Posts
    31

    Default

    So how would the users Flush their DNS? They wouldn't necessarily know what that means.

  10. #10
    Member
    Join Date
    Jan 2005
    Location
    /dev/null
    Posts
    770

    Default

    FOR WINDOWS:

    ipconfig /flushdns

    from the command prompt if they arent using an internal DNS server (sometimes needs a few goes to work)

    If they are running windows server with DNS, go into administrative tools > dns, right click on the server name and choose 'Clear Cache' then run the above a couple of times on the server as well

  11. #11
    Member
    Join Date
    Sep 2005
    Posts
    31

    Default

    Ok. Would the script mentioned also transfer all installed programs (for example zend optimizer, current PHP settings, etc. etc.)?

    Thanks.

  12. #12
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    No it doesn't. You have to redo that sort of thing manually.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  13. #13
    Member
    Join Date
    Sep 2005
    Posts
    31

    Default

    Ok. Thanks. Does that script also change the IP's for all the files copied over to the New server's IP's? I was thinking that cpanel's copy accounts function would be easier to use. Then after copying accounts, configure PHP, and install zend, etc. That would still work the same, or is there still more that I'm missing?

  14. #14
    Member
    Join Date
    Sep 2005
    Posts
    31

    Default

    Also, in WHM, can you view the current PHP settings somewhere? I noticed that in Apache Update, It simply shows the default settings, and not necessarily the current ones.

  15. #15
    Member nettigritty's Avatar
    Join Date
    Jan 2004
    Location
    Bangalore, India
    Posts
    196

    Default

    click load previous config in the apache build page to see that or use phpinfo();

Similar Threads & Tags
Similar threads

  1. How to move server's hostname to my shared ip address in WHM
    By hostmx in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-15-2009, 01:10 PM
  2. Move from one server to another without WHM
    By infoasp in forum Data Protection
    Replies: 1
    Last Post: 07-12-2009, 05:36 AM
  3. Replies: 1
    Last Post: 07-09-2007, 07:48 PM
  4. How to move domain from reseller WHM to dedicated server??
    By hansmon in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-05-2006, 11:15 PM
  5. WHM Move Accounts to New Server
    By giz in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 12-18-2003, 05:47 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube