A Step By Step Guide to Migrating Your WordPress Website To A New Web Host

Move Your Web site to a new host can be a daunting and stressful experience, but in fact, this is not necessary.

Many people are faced with the need to move to a new host, because there is a problem with their current providers and barely enough. Very often, the move to a more reliable host will be delayed time and time again for fear of making a mistake, and the destruction of your site.

To resolve this issue, people will pay a professional to their web site for them to find a new host that provides a service to a new hosting package, or in the third option, that is, a walk on its own.

If you spend some time to prepare its own web site, migration had nothing to worry about. It is a very simple project if handled properly, can easily be reversed out should any problems arise.

Let us guide you through the steps required to run your wordpress web site to a new host.

Step 1: Back Up Your Website’s Files

The first step in any project, if it is to back up your site in every aspect. This step is a good practice, before any significant changes, but it is also a requirement to migrate your wordpress install.

There are many plug-in there, it will be a full backup of your website for you. This backup, but require more manual methods. Use the FTP program such as filezilla), connect to your web host and copy all of the files on your Web site’s directory to a folder on your local computer.

This is included in the .htaccess file that is hidden. Please refer to your FTP program’s Help file to display hidden files if you cannot see this file.

Depending on the number of media upload you have on your site, this may take some time. While the download is in progress, and we can begin the second step and back up your database.

Step 2: Export The WordPress Database

Export your database is a simple process that only requires a few steps to complete. Cpanel account to log in to your web server, and open the phpmyadmin application. Select the database that contains your wordpress Install list on the left side bar and selected, click the Export tab in the navigation menu.

The default setting is a quick export and SQL format, sufficient to meet our needs. Click the Go to button and the Database Export process will begin and a file will be downloaded to your local computer.

Once the Database Export and the FTP transfer, your files are completed, you can move to the next stage.

Step 3: Create The WordPress Database On Your New Host Server

Then we can begin to migrate to the new web hosts, we need to create an environment in a wordpress install. To do this, you must create a database, you can import your SQL data transformation.

Log in to your new web host user credentials they provided you with, and connected to the cpanel software. Our guide, we will use the MYSQL Database Application. If your web host does not have the application is running, you should contact their support team to learn more about their methods, to create a new database.

The steps to create a database are quite simple:

  1.  Open the MYSQL Database and create a new database with an appropriate name for your web site.
  2. To create a new MYSQL user (with a password).
  3. Add this user account to the new database and grant it’s all right.
  4. Write down the name of the database, a new MYSQL user name and password. You will need them quickly.

Step 4: Edit the wp-config.php File

Browse to the folder on your local computer, where you can download the files to your web site. In this folder there is a file named wp-config.php, you can control the access between wordpress and your database.

Make a copy of this file and store it in a different folder on your local computer. This is necessary for the restoration of the changes we are going to do things should go wrong.

To open the original version of the file with your favorite text editor, and in the following three changes:

1. Change The Database Name

Locate the following line:

Define ‘DB Name’, ‘db name’);
in the name of the database, the current line will be set to the name of the MYSQL DATABASE, your old web host. This must be changed to the name of the new database you just created.

2. Change the Database Username

Below you will find the line:

The DB (the ‘user’, ‘The database user’);
in this line, you need to change the database user, the user name is your old computer to match the new user name that you have just created.

3. Change The Database User Password

Finally, the third line:

The DB (the ‘Password’, ‘mdb-Link”);
in the other person’s delivery of the database, this line must be changed to the new security password, you will be your MYSQL user.

Save the wp-config.php, and then close the file.

Step 5: Import Your Database

Now that you have a new database, and we can start the import process.

The phpmyadmin from the cpanel software on your new server, and then select your new database from the list on the left hand side bar. This opens, select “Import” tab in the navigation menu.

In the file to import section, click the Choose File button and then select your SQL file export.

Uncheck some of the import check box to ensure that the format is set to SQL, and then click the Go button. The database import will now begin.

This is the import of the time will vary depending on the size of your database. You should receive a message informing you of the successful import, has been completed.

Step 6: Upload The WordPress Files To Your New Host

Now that you have written a new database, you can reconfigure the WP-config.php file, it is time to start uploading your website files.

Connect to your new web hosts use your FTP program, and browse to the folder that your web site will be held. If this is the main, or can only be installed on the site’s web server, and then upload the files to public_html folder is usually the directory.

With the Remote Directory Select the directory where you can upload your Web site files, these files should now includes the latest version of the WP-config.php. As with the previous download, this process may take some time.

Please do not remove these files from your local computer once the upload is complete. They are still needed, until the last steps have been completed.

Step 7: Linking to New URL & Defining New Domain

If you are moving to a new or different domains, then you should read this, if not, then you can skip this because you do not need to update your site to point to a different domain.

One of the people always seem to be moving, their web site is: they have the added link to other posts on their site, or insert images directly by pointing to the URL of the server, causing the break when moved to a new domain. If you want to quickly and easily search for any instance, your old domain name, and replace it with a new name, we recommend that you take a look at the Search Replace github DB Scripts. This will allow you to perform this operation is very convenient. Just make sure that you delete it, please complete (for security reasons), do not place it in your root domain, create a temp folder with a random name, host of the script.

Change the site URL: through the implementation of the search and replace the old domain and replace with a new domain, you can also change the site and the URL of the home page value in the database (change the site URL), to make sure that when you attempt to log on to your site to a new domain, do not try to be redirected to the old domain.

Step 8: The Final Touches

This step actually consists of two separate things (possible) for a few days.

Then, you can use the site to a new host, you will need to re-configure your domain’s DNS settings. They will be set to point to the old host, and you will need to point to the correct records to the new server’s IP address.

This process will depend on you, your domain name registration. For more information, complete the process is too varied to discuss in this post, but your domain name registrar should have all the detailed information you need to make the appropriate changes.

The DNS changes can take up to 48 hours to fully spread. It is best to do this, over a period of time, you expect a lower level of traffic. In this 48-hour window, you should refrain from making any changes to your web site, you may be in changing the old version of the site.

After a 48-hour period has expired, you can now access the new web host, go to your web site. It is at this point, you can connect to your old web hosts you want to delete the files and databases. You should also have a local backup copies of these files and database, together with the original WP-config.php file so that it can be rolled back. It is a good idea to save the file for a longer period of time only for security reasons.

Conclusion

As you can see, when broken down into these simple steps, this process is not very difficult. All it really needs is that you have to be careful, at every step of the way, and to their own options to return to the original version until the final moment (if you have any questions).

If you have migrated your wordpress website recently? Let us know if you experience the following comment section!

Updated: January 25, 2018