Migrate sites to GridPane using Migrate Guru.

3 min read

WordPress provides a variety of different plugin tools to help you migrate your sites from one host to another. Migrate Guru can be a very easy option and fast.

During this article, we will be referring to the site you wish to migrate as the origin site and the site or server being migrated into as your destination site or server.

Step 1. Set up Your Destination Server and Site

In your GridPane account, if you haven’t already provisioned a server to host the migrated site, do so now. We have easy to follow guides with step by step instructions here.

Then deploy your site. Here is how to deploy a site on Gridpane.

Create a system user and add it to the site. we have this documented here. Save the credentials we might need them later.

If you’re using Cloudflare or DNSME. You can use DNS API domain verification method to pull SSL before changing the A records. Here is how to go about it.

Step 2. Go to the Source Site and Migrate the Site Over

Install and activateMigrate Guru on your origin site.

Screenshot_2020-04-08_at_14.50.52.png

Go to Migrate guru and add your email then proceed.

Screenshot_2020-04-08_at_11.05.55.png

On the next page. Select FTP.

Screenshot_2020-04-08_at_11.06.22.png

You need to carefully add the details that you created on your destination site. Here is an example below

Screenshot_2020-04-08_at_11.09.40.png

On the Destination URL, if the site has SSL then it’s https:// without SSL it’s http://

Select SFTP, add your destination server on GridPane. Add the system user you created for the destination site.

Directory path as above. /sites/example.com/htdocs. Then click Migrate. If all the details are correct then you should get this page below.

Screenshot_2020-04-08_at_11.15.11.png

You should get a confirmation after the migration.

Screenshot_2020-04-08_at_11.19.31.png

Step 3. Test Your Site on GridPane

Make sure you test the migrated site on GridPane. Check both the front end and the dashboard if all was migrated.

Use your local host to redirect URL. This is how to go about it.

Once you have confirmed the migration was successful you can safely flip DNS to the GridPane Server.

Important

Please double check that another wp-config.php has not been transferred over inside your websites /htdocs folder.

Checking for and deleting duplicate wp-config.php files

To ensure your migration has been successful, please double check that you don’t have two wp-config.php files inside your site.

/var/www/site.url/htdocs

GridPane securely stores the wp-config.php file 1 level up outside of /htdocs here:

/var/www/site.url

If you have two wp-config.php files these can interfere with each other and cause problems. Please simply delete the wp-config.php file inside /htdocs if it exists, and leave ours in it’s place.

You can do this by connecting to your server over SFTP:

Connect to a GridPane Server by SFTP as Root user

Or you can delete them directly on your server – please see the following guides to get started setting up your SSH Keys, and connecting over SSH:

Once connected to your server, you can navigate to your websites htdocs folder with the following command (switching out “site.url” for your websites domain name):

cd /var/www/site.url/htdocs

Then display the contents of the file with:

ls -l

And if you see a wp-config.php file, you can delete it with:

rm wp-config.php

Once that’s done you’re all set!