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.
Go to Migrate guru and add your email then proceed.
On the next page. Select FTP.
You need to carefully add the details that you created on your destination site. Here is an example below
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.
You should get a confirmation after the migration.
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.
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.
GridPane securely stores the wp-config.php file 1 level up outside of /htdocs here:
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:
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:
Generate your SSH Key:
Add your SSH Key to GridPane:
Connect to your server:
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):
Then display the contents of the file with:
And if you see a wp-config.php file, you can delete it with:
Once that’s done you’re all set!