The Wild

How to Migrate WordPress to Cloudways (Step-by-Step)

· 5 min read · Mammals

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Migrating a WordPress site to Cloudways means moving your website’s files and database from your current host to Cloudways’ managed cloud servers. This guide walks you through the entire process, from preparing your site to updating your domain. You’ll need access to your current hosting control panel (like cPanel), your Cloudways account, and a way to edit DNS records for your domain.

What You'll Need

  • Access to your current hosting account (cPanel, Plesk, or similar) to download files and export the database.
  • A Cloudways account with a server and application already created (you can do this during the migration).
  • Your domain name registrar login (to update DNS nameservers or A records).
  • An FTP client (like FileZilla) or your hosting’s file manager.
  • phpMyAdmin (usually available in cPanel) to export your database.

Step-by-Step

  1. Back up your current WordPress site. Use a plugin like UpdraftPlus or your host’s backup tool. Ensure both files and database are included. Download the backup to your computer.
  2. Create a Cloudways server and application. Log in to Cloudways, click “Add Server,” choose your provider (DigitalOcean, Vultr, etc.), select a server size, and choose “WordPress” as the application. Wait for the server to be ready (usually a few minutes).
  3. Install the Cloudways WordPress Migrator plugin. In your current WordPress admin, go to Plugins → Add New, search for “Cloudways WordPress Migrator,” install and activate it.
  4. Run the migration from the plugin. In the plugin settings, enter your Cloudways application’s IP address and the SSH/SFTP port (usually 22), and the username (usually “master”). Click “Migrate” and wait for the plugin to transfer your files and database.
  5. If the plugin fails, do a manual migration. Download your WordPress files via FTP or file manager. Then export your database from phpMyAdmin (select your database, click Export, choose “Quick” method).
  6. Upload files to Cloudways. In Cloudways, go to your application’s “Access Details” and get the SFTP credentials. Use an FTP client to connect and upload your files to the “public_html” folder (or the application’s root).
  7. Import the database. In Cloudways, go to your application’s “Database Manager” (or use phpMyAdmin via the “Access Details”). Create a new database if needed, then import your SQL file.
  8. Update wp-config.php. Edit the wp-config.php file on Cloudways to match the new database name, username, and password. You can do this via the Cloudways “Application Settings” → “Application Management” → “Edit” or via SFTP.
  9. Update the site URL (if needed). If your domain is not yet pointing to Cloudways, you can temporarily access the site via the Cloudways temporary URL (found in the application’s “Access Details”). Use a plugin like “Better Search Replace” to update any hardcoded URLs in the database.
  10. Point your domain to Cloudways. In Cloudways, go to your application’s “Domain Management” and add your domain. Then, at your registrar, either change the nameservers to the ones provided by Cloudways (found in the server’s “Settings” → “DNS”) or update the A record to your server’s IP address.
  11. Test your site. Wait for DNS to propagate (can take up to 48 hours), then visit your domain. Check that pages load, images display, and forms work. Log into wp-admin and verify everything is intact.
  12. Update your local hosts file (optional). For immediate testing, you can edit your computer’s hosts file to point your domain to the Cloudways IP, allowing you to preview before DNS changes propagate.
  13. Enable SSL. In Cloudways, go to your application’s “SSL Certificate” section and install a free Let’s Encrypt SSL certificate for your domain.
  14. Final cleanup. Once the site is live on Cloudways, deactivate the migration plugin on your old host, and consider deleting the old site or keeping it as a backup. Update your DNS TTL to a lower value before migrating to speed up propagation.

Common Mistakes

  • Not updating wp-config.php – Forgetting to change database credentials leads to “Error establishing a database connection.”
  • Using the wrong database name – Cloudways often prefixes databases with the application name; double-check the exact name.
  • Migrating while the site is live – If you make changes during migration, you might lose recent content. Do it during low traffic or put the old site in maintenance mode.
  • Ignoring file permissions – Incorrect file permissions can cause 500 errors. Set directories to 755 and files to 644.
  • Not clearing cache – After migration, clear your browser cache and any caching plugins to see the fresh site.

Tips

  • Use the Cloudways Migrator plugin first – It automates the process and is usually reliable.
  • Keep a backup of the old site – Don’t delete anything until the new site is fully working.
  • Test on the temporary URL – Before changing DNS, verify the site works on Cloudways’ temporary domain.
  • Update your permalinks – Go to Settings → Permalinks and click “Save Changes” to refresh the .htaccess file.
  • Monitor your server resources – After migration, check Cloudways monitoring for CPU and memory usage to ensure your server size is adequate.

Troubleshooting

  • Error establishing a database connection – Check wp-config.php for correct database name, username, and password. Also ensure the database exists in Cloudways.
  • 404 errors on pages – Go to Settings → Permalinks and click “Save Changes” to reset the .htaccess rules.
  • Mixed content warnings (http/https) – Install SSL and use a plugin like “Really Simple SSL” to force HTTPS and update URLs.
  • Site loads but images are broken – Run a search-replace tool to update the old domain to the new one in the database.
  • Migration plugin times out – Increase server memory limit (via wp-config.php) or do a manual migration with FTP and phpMyAdmin.

Frequently Asked Questions

How long does the migration take?

Usually 30 minutes to a few hours, depending on the size of your site and server speed. The plugin can take 10-20 minutes for a typical site.

Will my site be down during migration?

No, your old site stays live until you switch DNS. There may be a brief downtime when you update nameservers, but you can minimize it by lowering TTL beforehand.

Can I migrate without the plugin?

Yes, you can manually export your database and upload files via FTP, then update wp-config.php.

Do I need to change my domain registrar?

No, you only update DNS settings at your registrar. Cloudways provides nameservers or an IP address to point to.

What if my site uses custom PHP settings?

You can set PHP version and variables in Cloudways’ “Application Settings” → “PHP Settings.”

Is Cloudways free to try?

Cloudways offers a 3-day free trial with no credit card required. After that, you pay for the server you choose.