Reply

 

LinkBack Thread Tools Rate Thread
Old 09-07-2006, 07:40 PM   #1 (permalink)
WHC Guru
 
Join Date: Jan 2004
Posts: 3,363
cPanel/WHM transfer guide

I have recently had to transfer a lot of accounts over from one server to anouther (as it was easier then replacing the hardrive). So I thought I may as well write a guide about it.

Transfer Preperation - 24 hours before

We need to change the TTL system to make sure that the changes on the DNS system take 6 minutes instead of 24 hours. So login to the old server

1. cd /var/named
2. perl -pi.bak -e "s/14400/360/g" *.db
3. /etc/rc.d/init.d/named restart

The Transfer

old server

We need to shut down all the services to stop any changes to the files. Note the sites will still work as we are not shutting down httpd or mysql. The sites will just not be able to upload new files, modify anything in cPanel or get emails. If they did any of this during the transfer the files would be lost.

1. service chkservd stop
2. /etc/rc.d/init.d/exim stop
3. etc/rc.d/init.d/pure-ftpd stop;/scripts/ckillall -9 pure-ftpd;/scripts/ckillall -9 pure-authd;/etc/rc.d/init.d/proftpd stop;
4. /etc/rc.d/init.d/cpanel stop

new server

1. click on copy multiple accounts
2. Fill out the info
3. Select the accounts to transfer, if you chose select all at the bottom note that you will assign every account it's own ip address unless you manually unselect assign ip address to the side of every account.
4. Sit back and relax. You have to wait for the transfer to be complete now


Post Transfer

Ok well lets point the old DNS settings to the new server. So login to the old server

1. cd /var/named
2. perl -pi.bak -e "s/[oldip]/[newip]/g" *.db
3. /etc/rc.d/init.d/named restart


Now everything should be complete and working on your new server.
__________________
Seeksadmin - For all your administration and security needs.

Hostaga - A true hosting leader
Tris is offline   Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 10:54 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0