Step-by-Step Guide to Migrate Your WordPress Site to a New Host
Migrating websites between hosting companies can be tricky, so let us show you a few ways to do this depending on the access you have.
Using a plugin
The easiest way to migrate your website is using one of the many plugins currently available from the WordPress plugin directory. A few of the most popular ones are All In One Migration and Updraft both just install into your existing site and allow you to backup your site to various locations such as Dropbox, Onedrive or your local pc. In this example we’ll use All in one and backup to your local pc.
- Step 1 – Install the plugin on your live site by going to Plugins -> Add New, search for the plugin and then install and activate.
- Step 2 – Go into the plugin (you’ll see it on the left hand side above the Settings button)
- Step 3 – Click the Export button, then click on the Export to button and choose File, save this to your desktop
- Step 4 – On your new hosting company install wordpress as normal and repeat Step 1
- Step 5 – Go to the plugin and select import, either drag the file into the box or click the Import From button and choose File
- If everything has been configured at the host okay, the file will upload and start to install, if not contact your host for help increasing the maximum upload file size and the maximum execution time), you can find more about these settings here
- Step 6 – Once the upload has competed and the files restored, you need to go to settings and permalinks, click save then repeat this process 1 more time
Your site should now be restored!
FTP is a little more complicated however if done correctly will cause less problems, firstly you’re going to need a ftp client we recommend Filezilla which you can download here, then you need to create a FTP account on your current hosting panel and your new host, you can follow our guide on creating an FTP account here
Okay so once you know the logins for your webpanel you need to login and collect all the files, but first you need to backup your SQL database. To find out what SQL database your website uses, go into the file manager in cPanel and find a file called wp-config.php, edit this and you should see a line that states the database name (make a note of this). Exit the file without saving.
To export a database using phpmyadmin, have a look at this guide
Now that you have the database backed up, you need to get all your files and folders for wordpress. Using Filezilla, navigate to your public_html folder and select everything inside this folder and download it to your machine.
Depending on the size of your site and your internet speed, this will take minutes to a few hours (go have a cuppa and wait).
That’s it, you’ve now backed up your entire site. Now you need to reverse the process.
Assuming you’re moving the site to us, here’s what you need to do now;
- Step 1 – Create the FTP account with access to the base directory.
- Step 2 – Upload all the files you downloaded from the public_html folder into the public_html folder
- Step 3 – In cPanel go to databases and create a new database
- Step 4 – In the same section, you need to create a username
- Step 5 – Assign the username to the database
- Step 6 – Go to the file manager and find the wp-config.php, change the database name to the one created in Step 3, then change the username and password (created in Step 4), make sure the database location is set to localhost and save the file.
If you’ve done everything right your website should now be online! Well done.