Moving 42 websites from one host to another???

They have: 5,633 posts

Joined: Jan 1970

I have a nightmare ahead of me. I have 42 websites i need to move from one Linux dedicated server to another (not same physical location). Some sites have mysql, some are php, some are cgi. Both servers use CPanel. Is there a program out there that will image everything on my server in Tampa and easily allow me to move all my sites to the new dedicated server at Rackshack in Houston? Someone said something about "putty" but I'm not sure how it works.

Any suggestions for the easiest and best way to accomplish my goal? The current server had been down for three weeks and just came up. Bear in mind, I do not have physical access where I could simply change hardware. All must be done via Internet and ftp.

Thanks in advance

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

cpanel will allow you to do this -- or you can go in to through ssh in the new site and grab the files off the other server.

mairving's picture

They have: 2,256 posts

Joined: Feb 2001

Putty is just a SSH client which is a secure version of Telnet. It will allow you to do command line stuff though. Here is the way that I would probably do it assuming that you have some kind of shell access.

  • Get a copy of putty and connect to your old site.
  • Dump the database for the site into the users directory;
    mysqldump dbname -u user -ppassword > /home/..../username_date.sql
  • Once you have all of the databases dumped, then you can tar and gzip everything;
    tar cvf - directory_name/ | gzip > username_date.tar.gz
  • FTP to the new site at the shell.
    ftp sitename (or IP address)
    enter username & password.
    mput username_date.tar.gz
  • when that completes logout of the old site via putty and login to the new site via putty.
  • When you are in the new site, make sure that you move the file just sent to your /home directory.
  • type in tar -xvzf username_date.tar.gz. This will inflate your files. Once they are inflated, you can create your databases and upload everything.

You will have to setup users, move log files, httpd.conf and other files that are not in the user directory also. Probably the best way to go is to try moving one site first and then when you get all the kinks worked out, move the others.

Mark Irving
I have a mind like a steel trap; it is rusty and illegal in 47 states

They have: 18 posts

Joined: Apr 2003

Hello Bob,

If both the servers are running the same version of Cpanel, it is easy to move the websites from one server to another. Cpanel/WHM does provide an option to do the same. But it is not always a foolproof way of doing things.

The best way to do it, is the hardest way to do it.

That is to move each site individually. You will need to replicate settings on the new server and move each site individually. You can ask your old host to zip/tar the websites and the new host can help you in getting those files and untarring/unzipping them for you at the new server.

Slowly and surely is the way to go while moving websites Smiling

Regards,

Allwin Agnel - [email protected]
Neutral Web - Redefining Hosting - Multiple Domain Hosting
http://www.neutralweb.com - Rock solid DUAL XEON Servers.
http://forum.neutralweb.com - Check out what our clients think about us.

They have: 30 posts

Joined: May 2003

WHM allows it
I have dont A few site , its easy

They have: 16 posts

Joined: Jul 2003

If you have access to root then you can do it easily with the copy feature, or ask your host.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.