How to transfer website from hostgator to Digital ocean?

Posted November 2, 2016 9.8k views
DebianNetworkingSinatraUbuntu 16.04

How can i transfer my website from hostgator to Digital Ocean any solution and easy solution i want.. mail me the whole process how to transfer and tell me also downtime of my website

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers

You have two options - to setup manually or to use One-Click Apps.
For first you need to setup your Droplet or i.e. VPS. For OS i recommend you Ubuntu (16.04 x64) as most popular distro and one with most tutorials and community support.

It’s advised that you follow Initial Setup guide that will help you setup basic things.

Now, you need Web server, a thing that will serve your webpages. Don’t forget PHP and/or MySQL. All this you can get in LAMP stack or LEMP stack. Difference between this two are in Web server. LAMP comes with Apache, while LEMP with Nginx.
On basic level, there are no key difference between it, nginx could be less memory intensive. Apache is more popular, more used and could have better community support but this is discutable.

Anyways you need to follow tutorial for one of it - How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu 16.04 or How To Install Linux, Nginx, MySQL, PHP (LEMP stack) in Ubuntu 16.04.

This steps could be skipped by using One-Click App. You can choose LAMP One-Click App or LEMP One-Click App.

Now you need to copy all files from Hostgator to DigitalOcean. This is step for both solutions, so you need to follow it. To upload files to DigitalOcean you can use scp from your terminal. If you use Windows, WinSCP will help you, it even has GUI.
You need to download files to your machine from Hpstgator (probably using FTP, check help for it). When you download use scp to copy to DigitalOcean in /var/www/html.
You can setup FTP and use it instead of scp as alternative solution.

Don’t forget database if you use one. :)
Check now does you see fully working site on Droplet IP.

If yes, go to domain settings and change A record to Droplet IP. It could need some time to refresh DNS but after it, it will point to DigitalOcean with zero downtime. :)

Feel free to ask me anything, I or somebody will try to help you. ;)

by Mitchell Anicas
When you start a new server, there are a few steps that you should take every time to add some basic security and give you a solid foundation. In this guide, we'll walk you through the basic steps necessary to hit the ground running with Ubuntu 16.04.
  • Hi,
    Its a great article you’ve provided here but I have question here.
    I downloaded the backup from the hostgator CPanel of my website(which btw is a magento based ecommerce) & it has a lot of files(like really alot of files).
    Am i supposed to upload all of them. If yes then where?
    If not then, am i only supposed to upload the PublicHtml files there??
    Thank you in advance :)

    P.S- I’m really new at this.