How do I migrate a WordPress site to my 123 Reg VPS?

This article will show you how to migrate your WordPress website hosting from your existing one to your 123 Reg VPS.

Please note: this article was originally created for our previous generation of Virtual Private Servers. As such, these instructions may not be relevant to our current generation of Virtual Private Servers.

 

Important: It is advised that you upgrade your existing WordPress site to the latest version before exporting your data to avoid any potential version issues when importing your data into your new WordPress installation on your VPS.

First you must ensure that you use an FTP Client (such as Filezilla) to download a copy of your files from your Hosting package. Then you will have to download your database from your hosting package.

Step 1 of 7

Login to your Shared Hosting package. Use the MySQL Databases button from the Web Tools section. This will open up the list of your MySQL databases.

Step 2 of 7

Select the Database you would like to export and then click the Manage button. This will open the database manager.

Step 3 of 7

Click the Export tab at the top of the window.

Step 4 of 7

Use the preset settings, ensuring that the SQL file type is selected. Click Go to complete the process.

Step 5 of 7

Open your wp-config file in a text editor such as Notepad. The wp-config file is one of the files that you will have downloaded via FTP earlier in the process. There will be a section at the top of the document that denotes your MySQL Settings. Within these settings you will need to change the MySQL hostname to “localhost”, so that the server does not start looking for a Host that doesn’t exist.

// ** MySQL settings – You can get this info from your web host ** //

/** The name of the database for WordPress */

define(‘DB_NAME’, ‘a__wordp_ ressdb2345’);

/** MySQL database username */

define(‘DB_USER’, ‘a__wordp_ressdb2345’);

/** MySQL database password */

define(‘DB_PASSWORD’, ‘RjN1234Tw’);

/** MySQL hostname */

define(‘DB_HOST’, ‘Change_What_is_in_here_to>localhost’);

Step 6 of 7

You will then need to create a database in your server control panel, using the DB Name, DB User and DB Password that is in the wp-config file. You need to make sure you enter these accurately to ensure that this works correctly.

Step 7 of 7

You then need to access the Webadmin section of your server control panel to open up PHPMyadmin. From here, upload the .sql database that you downloaded earlier.