The Wild

How to Migrate WordPress to WP Engine

· 6 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 WP Engine moves your files, database, and settings to a managed hosting platform optimized for speed and security. This guide covers the two main methods: using the free WP Engine Automated Migration plugin (recommended for most sites) and a manual migration via phpMyAdmin and SFTP. Before you start, ensure you have a WP Engine account and have created a new environment (usually a staging or production install) where the site will live.

What You'll Need

  • Access to your current WordPress admin dashboard (to install plugins).
  • SFTP credentials for your current host (or a file manager in your hosting control panel).
  • phpMyAdmin or similar database access on your current host.
  • Your WP Engine portal login and the SFTP credentials for the new WP Engine environment.
  • A temporary domain or the final domain pointed to WP Engine (WP Engine provides a temporary domain for testing).

Step-by-Step

Method 1: Automated Migration Plugin (Recommended)

  1. Create a WP Engine environment. Log in to your WP Engine portal, go to Sites, and click Add Site. Choose a name and select a region. After creation, note the temporary domain (e.g., sitename.wpengine.com).
  2. Install the WP Engine Automated Migration plugin. In your current WordPress admin, go to Plugins → Add New, search for “WP Engine Automated Migration,” install and activate it.
  3. Enter your WP Engine credentials. In the plugin settings, enter your WP Engine portal username and password (or an API key if you have one). The plugin will connect to your WP Engine account.
  4. Select the target environment. Choose the environment you created in step 1 from the dropdown.
  5. Start the migration. Click Migrate. The plugin will copy your files and database to WP Engine. This can take from a few minutes to over an hour depending on site size.
  6. Verify the migration. Once complete, access your site via the temporary WP Engine domain. Check pages, posts, images, and plugins. If you use custom domains, update your DNS to point to WP Engine (you’ll find the IP or CNAME in your portal).
  7. Update your domain. In the WP Engine portal, go to Domains and add your primary domain. Then update your DNS records at your registrar to point to WP Engine (usually a CNAME record for www and an A record for the root domain).

Method 2: Manual Migration (When Plugin Fails or Not Allowed)

  1. Back up your current site. Use a plugin like UpdraftPlus or your host’s backup tool to create a full backup of files and database. Download the backup to your computer.
  2. Export your database. In phpMyAdmin, select your WordPress database, go to Export, and choose the “Quick” method with SQL format. Download the .sql file.
  3. Create a new database on WP Engine. In the WP Engine portal, go to your environment’s PHPMyAdmin (under Utilities). Create a new database (note the name, username, and password).
  4. Import the database. In WP Engine’s phpMyAdmin, select the new database, go to Import, and upload your .sql file. This may take a while for large databases.
  5. Upload your files via SFTP. Use an SFTP client like FileZilla. Connect to your WP Engine environment using the credentials from the portal (found under SFTP). Upload all WordPress files (including wp-content) to the wp-content directory (or the root if you’re replacing a fresh install).
  6. Update wp-config.php. Edit the wp-config.php file on WP Engine to use the new database credentials. Also add the WP Engine-specific constants (like WP_HOME and WP_SITEURL) or use the temporary domain.
  7. Test and update domain. Visit your temporary domain to confirm the site works. Then update your DNS as described in the automated method.

Common Mistakes

  • Skipping the staging environment: Always test on a staging site before pointing your live domain to WP Engine.
  • Forgetting to update DNS: After migration, your domain must point to WP Engine’s servers. Failing to do so leaves your site on the old host.
  • Not updating permalinks: After migration, go to Settings → Permalinks and click Save Changes to flush rewrite rules.
  • Ignoring file permissions: WP Engine handles most permissions, but if you manually upload files, ensure they are not set to 777 (use 644 for files and 755 for directories).
  • Using the plugin on a site with a large database: The automated plugin can time out on sites over 1GB. Use the manual method or contact support.

Tips

  • Use the staging environment first: WP Engine gives you a free staging copy. Migrate to staging, test, then push to production.
  • Update your DNS TTL before migrating: Lower the TTL (time to live) on your DNS records a day before to speed up propagation.
  • Keep your old host active for a few days: After migration, don’t cancel your old hosting until you’re sure everything works.
  • Check for hard-coded URLs: Use a search-replace plugin (or WP-CLI) to replace your old domain with the new one in the database.
  • Enable caching: WP Engine has built-in caching; after migration, enable it in the portal for better performance.

Troubleshooting

  • Migration plugin fails or times out: Increase PHP memory limit and max execution time on your current host, or switch to the manual method. For large sites, use the manual method with a plugin like Duplicator.
  • Site shows blank page after migration: Check the wp-config.php for correct database credentials. Also, enable WP_DEBUG to see errors.
  • Images or links broken: This is usually due to hard-coded URLs in the database. Run a search-replace for your old domain to the new one.
  • Cannot log into wp-admin: If your login redirects to the old domain, update the siteurl and home options in the database via phpMyAdmin.
  • SSL certificate not working: WP Engine provides SSL certificates. If your domain is not working with HTTPS, ensure your DNS is pointing to WP Engine and that you’ve added the domain in the portal.

Frequently Asked Questions

How long does the migration take?

It depends on your site size. Small sites (under 1GB) can take 15-30 minutes with the automated plugin. Larger sites may take hours, especially with manual migration.

Will my site experience downtime?

If you follow the steps correctly, there is minimal downtime. You can keep your old site live until the DNS propagates, and then switch over.

Can I migrate from a local WordPress install?

Yes, but you’ll need to make it publicly accessible or use the manual method with a plugin like Duplicator to create a package and then import it.

Does WP Engine handle SSL certificates?

Yes, WP Engine provides free SSL certificates via Let’s Encrypt. You can enable them in the portal once your domain is added.

What if my site uses a custom domain or multisite?

WP Engine supports custom domains and multisite, but the migration process may require extra steps. For multisite, you may need to contact WP Engine support for assistance.

Can I cancel my old hosting after migration?

Yes, but wait at least a few days after the DNS switch to ensure everything is working. Also, keep a backup of your old site.