dahdoul
By:
dahdoul

How to migrate from old server (Hostgator VPS CentOS 5) to DigitalOcean CentOS 7?

November 16, 2016 82 views
Configuration Management Control Panels DNS CentOS

First of all I have successfully created a new droplet and installed WHM & Cpanel with test domain name following DigitalOcean tutorials.

I have more than 10 websites with their domains,emails (Google) and databases, and I have dozens of Facebook Apps and web applications on the server Hostgator VPS CentsOS 5.

I want to migrate everything on my old server to DigitalOcean, already created backup of my server using Cpanel Backup Wizard the backup size is 11 GB.

Will the restore on my new server work without any issues? since I'am migrating from different OSs version.

I want to use the same Hostname and nameservers in my old server, should I just delete DNS records, delete hostname and nameservers to be able to use on the new server?

thank you.

1 Answer

With both servers running cPanel/WHM it should be just that simple to get started. Import your backup and then start repointing DNS.

Once your files and configuration are in place on the new server you can test the configuration before you switch over DNS by creating a hosts file entry for the domain(s) you want to test. Just make sure you remove the entries once you're done testing.

On Windows the hosts file can be found in C:\Windows\system32\drivers\etc and on Linux and Mac it can be found at /etc/hosts. In both cases it is simply a domain/subdomain name and IP address to map it to. This will override the results your computer receives from the DNS servers (this is why it's important to remove when your done since otherwise if an issue occurs in the future you may not be able to see it and it could lead to a lot of unnecessary troubleshooting).

Have another answer? Share your knowledge.