hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Hosting Security and Technology Tutorials : How-to: Migrate Accounts From One Server To Another (cPanel)
Reply

Hosting Security and Technology Tutorials Tutorials related to server security or the like.
Forum Jump

How-to: Migrate Accounts From One Server To Another (cPanel)

Reply Post New Thread In Hosting Security and Technology Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 06-02-2006, 02:59 AM
xxkylexx xxkylexx is offline
Web Hosting Evangelist
 
Join Date: Apr 2006
Location: Jacksonville, FL
Posts: 498

How-to: Migrate Accounts From One Server To Another (cPanel)


Prelude:
Hello. I am writing this tutorial because this is a solid method I have used in the past for easily migrating cPanel accounts from one server to another. Using this method, you can transfer accounts from an old server, to a new one, help customers from another host move to your host, etc. This method is very simple, and does not even require root access on one end of the migration. I have found the "Transfer Account from another Server" tool in WHM to not work so well, and break often, so I have used this method.

Requirements:
-cPanel on both servers
-WHM access on the new server (one that the accounts are being moved to)
-root access on the new server

Throughout the instructions I will refer to the server your are transfering the accounts from as the "old server", and the server to are transfering the accounts to as the "new server".


Instructions:
1. Log into WHM of your new server and create a new account called "restore", or anything you like for that matter. Remember the FTP address, username ('restore', in this example), and account password. We will need these for later.


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


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


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


5. Enter your email address for verification, follwed 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.


6. Now, log into SSH on your new server.


7. Type in the following commands:

cd /home/restore/public_html

ls

After running the list command above (ls), you should see the tar file of the account on the old server. This means that you have successfully sent the file via FTP to your new server.


8. Now move the tar file to your new server's /home directory with the following command:

mv tar_file_name /home


9. Now, log into WHM on your new server and navigate to "Backup >> Restore a Full Backup/cpmove file"

Once here, you should see the old account's username under "Possible cpmove archives found:".

If you do not, log back into SSH and be sure that the account's tar file has been moved into /home.


10. Type in the account name in the text field in WHM, which is proceeded by "Enter the username for the account you wish to restore:".


11. Click "Restore".


12. Repeate process for additional accounts.



That's all there is to it! I have found this way to work alot more sufficiently for moving accounts from one server to another. Hope you all enjoyed!


Regards,
Kyle


Last edited by xxkylexx; 06-02-2006 at 03:03 AM.
Reply With Quote


Sponsored Links
  #2  
Old 06-04-2006, 02:00 AM
Maze Hosting Maze Hosting is offline
Newbie
 
Join Date: Jun 2006
Posts: 5
Thansk!
cPanel is the most user-friendly control panel and it helped me alot in the account copy/transfer

Reply With Quote
  #3  
Old 06-04-2006, 02:15 AM
xxkylexx xxkylexx is offline
Web Hosting Evangelist
 
Join Date: Apr 2006
Location: Jacksonville, FL
Posts: 498
No problem. Glad this tutorial has been helpful.

Reply With Quote
Sponsored Links
  #4  
Old 06-05-2006, 11:20 AM
pcigre pcigre is offline
Newbie
 
Join Date: Jun 2006
Posts: 11
I'm noob in this things. Can there be problem it there are diferent versions of cPanel on servers (both are cPAnel 10, but not sure for subverson).

And can there be a problem if there are different versions (default encoding and etc) of mysql?

Reply With Quote
  #5  
Old 06-05-2006, 12:30 PM
xxkylexx xxkylexx is offline
Web Hosting Evangelist
 
Join Date: Apr 2006
Location: Jacksonville, FL
Posts: 498
MySQL versions may present a problem, but the versions of cPanel should be ok!


Kyle

Reply With Quote
  #6  
Old 06-07-2006, 10:12 AM
pcigre pcigre is offline
Newbie
 
Join Date: Jun 2006
Posts: 11
It look like everything went fine. Thanks.

Reply With Quote
  #7  
Old 06-10-2006, 12:09 AM
xxkylexx xxkylexx is offline
Web Hosting Evangelist
 
Join Date: Apr 2006
Location: Jacksonville, FL
Posts: 498
Glad it helped!


Cheers.

Reply With Quote
  #8  
Old 06-12-2006, 09:01 AM
rbayu2 rbayu2 is offline
Newbie
 
Join Date: May 2006
Posts: 6
Hi,

I tried this tutorial but without success. I couldn't locate any tar file.
questions, What should i put for the remote server? is it my WHM server's address? so it should be www.my-WHM-domain.com ?

thanks...

Reply With Quote
  #9  
Old 06-14-2006, 12:37 AM
xxkylexx xxkylexx is offline
Web Hosting Evangelist
 
Join Date: Apr 2006
Location: Jacksonville, FL
Posts: 498
For the remote server address, put the IP of your new server.


Let me know if you need any more help.

Reply With Quote
  #10  
Old 06-14-2006, 05:18 AM
rbayu2 rbayu2 is offline
Newbie
 
Join Date: May 2006
Posts: 6
hi xxkylexx,

Still the tar file did not successfully sent via ftp.

Let me give you the step that i did, may i did it wrong somewhere?
- first i log into my WHM server and do Create a New Account.
- now here i didn't name it restore but the same name as the one in the old server, in this case, the domain is hesterbasoeki.com, with the new username and new password.
- then i log into old server cpanel and goto Backup>Generate/Download a Full Backup, and then:
Backup Destination: Remote FTP Server
Remote Server (FTP/SCP only): (my ip address that i used for hesterbasoeki.com, not the server IP right? I was assigned 2 IPs)
Remote User (FTP/SCP only): username
Remote Password (FTP/SCP only): password
Port (FTP/SCP only) : 21
Remote Dir (FTP/SCP only) : EMPTY
- next I go to my virtuozzo power panel and log into SSH, and do then like you said type: cd /home/'username'/public_html, then ls.

But i didn't see any tar file in there.
So did I do it wrong?

Thank you so much for your help.

Reply With Quote
  #11  
Old 06-14-2006, 02:52 PM
xxkylexx xxkylexx is offline
Web Hosting Evangelist
 
Join Date: Apr 2006
Location: Jacksonville, FL
Posts: 498
Make sure you are using the new server's primary IP address for "Remote Server". Also, have a look in "/home/'username'/" as well as "/home/'username'/public_html" for the tar's.

You should be able to FTP into the account on the new server and see the tar's if they were successfully sent to the new server.


Kyle

Reply With Quote
  #12  
Old 06-14-2006, 10:31 PM
rbayu2 rbayu2 is offline
Newbie
 
Join Date: May 2006
Posts: 6
hi Kyle,

Thanks, it works!
the tar file was actually inside /home/restore/, not in /home/restore/public_html/.

Thanks so much... this will save me quite a lot of time.

Ricky

Reply With Quote
  #13  
Old 06-15-2006, 12:46 AM
xxkylexx xxkylexx is offline
Web Hosting Evangelist
 
Join Date: Apr 2006
Location: Jacksonville, FL
Posts: 498
Glad to help.

Reply With Quote
  #14  
Old 08-11-2006, 08:29 AM
Relo74 Relo74 is offline
Junior Guru Wannabe
 
Join Date: May 2005
Posts: 33
Big Big help i just used it.

Reply With Quote
  #15  
Old 08-11-2006, 10:37 AM
autodelete autodelete is offline
WHT Addict
 
Join Date: Sep 2004
Posts: 164
Is there any harm in having the "to move" account already set up on the new server?

I set my mydomain.com and then transferred over the mydomain.com backup. Everything seemed to go well.

What I am asking is, how important is it to have the RESTORE account? It didn't seem necessary in my case.

Thanks btw, nice simple method.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
VIDEO: CloudLinux CEO Igor Seletskiy on Hosting Platform Software Whir Tv 2012-11-09 09:36:01
cPanel Launches Version 11.32 of Control Panel and Web Host Manager Web Hosting News 2012-02-15 12:46:33
Control Panel cPanel Launches New Apache Configuration Script Web Hosting News 2011-12-28 19:41:39
cPanel Offers Windows Hosting Control Panel Enkompass for Free Web Hosting News 2011-10-13 17:14:16
Email Provider Open-Xchange Integrates with cPanel Control Panel Web Hosting News 2011-08-03 14:53:53


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?