How to migrate my site from Cloudways to DigitalOcean ?

Posted March 20, 2018 4.6k views

i have a wordpress site and i am using digitalocean on Cloudways service and i want to migrate my site to Digitalocean
i want to know how can i do that ?

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
  1. in your DigitalOcean account setup your droplet with your desired OS and configuration.
  2. Setup the droplet with the desired stack. I personally use LEMP
  1. Migrate all the site files from your Clourdways server to your new DigitalOcean droplet. This can be done via an FTP client or a shell command like scp
  • example: scp -r username@cloudways_server_ip:/path/to/web/root /path/to/new/webroot

update the red entries to reflect your configurations

  1. export your mysql database from the cloudways using a client such as phpMyAdmin if available or a shell command like mysqldump
  • example: `mysqldump -p’wordpressdbpassword’ -u’wordpressdbuserwordpressdbname > dbexport.sql

update the red entries to reflect your configurations - your wordpress database info can be found in the wp-config.php file.

  1. Import database to the new droplet using a client like phpMyAdmin if available - if not available you can install it onto your new droplet

.. or via the command line like so “mysq -p’wordpressdbpassword’ -u’wordpressdbuserwordpressdbname < dbexport.sql

update the red entries to reflect your configurations

In either case you will need to move the dbexport.sql file to a location off the server to be able to access it.

Here is a case study that you can reference as well.

by Brennen Bearnes
While many users require access to a database management system like MySQL, not all users feel comfortable interacting with the MySQL prompt on a daily basis. In this guide, we'll discuss how to install and secure phpMyAdmin, a web management interface for MySQL, on an Ubuntu 16.04 server.