How to Migrate My Current LEMP VM to Digital Ocean?

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?


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

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.

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!

Regards, KFSys