How to Migrate My Current LEMP VM to Digital Ocean?

Posted September 11, 2020 959 views

Hi I have a LEMP stack Virtual Machine hosted on Azure and I’m Hosting 3 sites on that VM. How can I move those sites to DigitalOcean?

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
1 answer

Hi @timhvines,

In my eyes, the easiest way would be to create a new Ubuntu droplet and install LEMP stack (Nginx, MySQL, PHP) on it. Then once you are ready just copy the files of your website from Azure to DigitalOcean either via FTP or Rsync/SCP.

If you are not sure how to do any of those, I’ll recommend following a couple of tutorials. You can start with the following one :

It will walk you through the process of installing all the needed components.

Now, onto the migration part. As said there are two options. The first one would be using a Terminal and copying using it. That way you would be able to use Rsync/SCP to copy your files over which is pretty cool and quick. The second option would be using FTP. Before you can actually use FTP on your DigitalOcean droplet, you would need to configure your user’s access with FTP. There is a pretty good tutorial on Digitalocean on how you can do this. You can check that here

Hope that helps!


by Justin Ellingwood
by Mark Drake
This tutorial details the process for installing and configuring the components that constitute a LEMP stack on an Ubuntu 18.04 server, including Nginx, MySQL, and PHP. It also includes instructions for testing that these components can communicate effectively and serve your content correctly.