How to migrate my site from Cloudways to DigitalOcean ?

March 20, 2018 335 views
WordPress

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 ?
thanks

2 Answers
  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'wordpressdbuser' wordpressdbname > 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'wordpressdbuser' wordpressdbname < 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.

http://radivis.com/how-i-migrated-my-wordpress-blog-to-digital-ocean-in-about-6-steps/

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.

You could try https://transfer.website . I use it usually to migrate Wordpress sites to/from DO for my clients.

Have another answer? Share your knowledge.