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 activate Migrate 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
Destination Site URL
On the Destination URL, if the site has SSL then it’s https://
Without SSL it’s http://
Destination Server IP and Port
Add your destination server on GridPane. You can ignore the port.
Add the System User you created for the destination site.
You can find your password on the System Users page. Find your system user and click on the little eye icon to open up and view your password:
Alternatively, you can create a new password by clicking on the padlock icon:
The directory path looks as follows: /sites/site.url/htdocs
Once all your information has been added, 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.
Your migration may have gone flawlessly, but there may be an issue or two that may need correcting once complete.
The common one we see is directly below – if you or you’re host have configured a custom database table prefix, then you may need to update this in your wp-config.php file.
Incorrect Database Table Prefix
You’ve imported your site, but all the plugins are deactivated and content is missing.
We sometimes see this when migrating from managed hosts such as Kinsta and WP Engine. Here you need to check to see if the database table prefix is “wp_”. You can do this by clicking on the database icon next to your website to open up phpMyAdmin:
We’re looking to see if these match up (be sure to check thoroughly as the original database tables from the sites creation may still be there):
A custom prefix could potentially be anything, but often looks something like: “wp87f_“
If your table prefix doesn’t match up, but all your database tables are using the same prefix, you can edit the table prefix in your wp-config.php via SFTP (download, edit, reupload) or the command line.
To edit via the command line type the following command (switch out “site.url” with your domain name):
Edit your prefix, and then hit Control+O, and then enter to save the file. Exit with Control+X.
Checking for and deleting duplicate wp-config.php files
To ensure your migration has been successful, you may also want to double check that you don’t have two wp-config.php files inside your site. If you have one inside /htdocs you should delete or rename it.
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:
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!