Question

How to host my website on digital ocean

Hi, I have my own website built with wordpress and hosted by dreamhost for which i pay dreamhost a monthly fee. Is it possible to transfer my website so that it is hosted on digitalocean and not dreamhost without having to rebuild my website or get a new domain name? If so is this a straight forward process? Thanks


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.

Hi @78andrew,

In my eyes, the easiest way would be to create a new Ubuntu droplet and install LAMP stack (Apache, 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-apache-mysql-php-lamp-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

As soon as the files are copied over change the DNS of your domain and you are good to go!

Another possibility would be to create a WordPress Droplet from the MarketPlace:

https://marketplace.digitalocean.com/apps/wordpress

It will automatically install Apache, MySQL,PHP, and everything else you might need. Then you can configure your domain and it will install WordPress.

Once it installs WordPress, just replace those files with your WordPress files and you should be good to go! Just don’t forget to update the database as well and change the DNS of your domain afterward.

Regards, KFSys

It should be pretty straight forward. There are multiple Wordpress plugins/tools to help migrate a site various ways. Here’s one for example: Example link.

Use it to make a copy of your site and test it using the DigitalOcean provided public IP address to ensure it works normally. Once you are satisfied the copy is working fine you can leave it in place and migrate to it, or delete it and do a fresh migration so you capture all the new data since your last backup/migration etc.

A few days before you’re ready to migrate, set the TTL on your DNS records to the minimum value (probably 60 seconds) so they have time to propogate through the Internet DNS servers and then on the day of your cut-over, change your domain DNS records to point to the new IP address provided by DigitalOcean.

The gist is you can test it without anything other than a $5 droplet commitment.