Question

How to migrate my site from Cloudways to DigitalOcean ?

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


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.

  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’wordpress_db_password’ -u’wordpress_db_userwordpress_db_name > 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’wordpress_db_password’ -u’wordpress_db_userwordpress_db_name < 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/