Question

How to Migrate My Current LEMP VM to Digital Ocean?

Posted September 11, 2020 76 views
DigitalOceanLEMP

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.

×
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 :

https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-ubuntu-18-04

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

https://www.digitalocean.com/community/tutorials/how-to-set-up-vsftpd-for-a-user-s-directory-on-ubuntu-18-04

Hope that helps!

Regards,
KFSys

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.
Submit an Answer