How to transfer website from hostgator to Digital ocean?

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

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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. ;)

This comment has been deleted