I have WordPress droplet, and I would like to move it to another newer WordPress droplet. I know I have to create a new droplet (going with marketplace WordPress droplet https://cloud.digitalocean.com/marketplace/5ba19759c472e4189b34e066?i=67c8ef&referrer=droplets%2Fnew), and then I can have transfer the WordPress files and database, but I’m using Let’s Encrypt SSL on the live site, so how do make sure to set up Let’s Encrypt on new droplet without affecting the live site and before changing DNS settings? Because when restoring the database everything is going to be https on the new droplet.
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!
Hi there @mhweb,
What you could do is copy your Apache Virtual Host from the old Droplet to the new one along with your Let’s Encrypt SSL files.
Your Virtual Hosts should be stored at:
/etc/apache2/sites-available/your_domain.com.conf
/etc/apache2/sites-available/your_domain.com-le-ssl.conf
Copy the content of the two virtual hosts and update the content of the virtual host on the new server.
After that copy your SSL files to your new Droplet as well, they should be stored at:
/etc/letsencrypt/live/your_domain.com/fullchain.pem
/etc/letsencrypt/live/your_domain.com/privkey.pem
Once you have your SSL files and your virtual hosts in place, make sure to run an Apache config test:
apachectl -t
And if you get syntax OK restart Apache:
systemctl restart apache2
That way you would have an SSL installed on the new Droplet before changing the DNS.
Hope that this helps! Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.