This step by step guide will help you to move WordPress site to a new server or WordPress migration to new server. There are already many articles on internet guiding WordPress migration.
Then why I am writing this article again?
Well, migration of bloggersutra.com from one server to another server came as a nightmare to me. My website was out for almost 10 days before I could stabilize it.
I had migrated bloggersutra.com from 1and1.com to bluehost.com and finally to Hostinger.
What made me shift to hostinger.com after 10 days of purchase of hosting from Bluehost ( Case Study)
The biggest loss for me and my readers during this time was the Black Friday Deals. Since my website was offline, I could not post any Black Friday deals on my website and neither sent them via newsletters.
I will definitely take it as good learning and help my reader to avoid the mistakes I have done during bloggersutra.com migration.
When you should start your WordPress website migration
There are many WordPress plugins available which help you in WordPress website migration. But I personally feel you should migrate your website manually, as you have full control over it.
If you face problem in manual website migration than you should go with these WordPress plugins.
10 WordPress plugins for website migration from one server to another
Further, in this article, I will be covering the manual WordPress migration procedure.
SO LET’s GO
Backup Your Website
Now days almost all hosting providers gives the auto backup or manual backup option from hosting panel itself. So you can directly download your website back up with 1 click.
If your hosting provider doesn’t provide you with the auto backup option or charges you additional for this than you can back up your website with the help of WordPress plugins too.
10 WordPress plugins help you to back up your website for free
The best way is to backup your website manually. How to take the manual backup of your website.
Files Backup
Go to your hosting control panel -> Go to file manager -> Go to your website folder -> Select all file in the website folder -> Right click and Zip.
Almost all hosting provider allows you to zip your entire files on your website and download it directly via hosting panel. Certain hosting providers have uploaded and downloading limit over file size. If you have an old website with lots of data and your web host have downloading limit than you can download your file via FTP.
CoreFTP or Filezilla can be used to connect to your hosting provider via FTP. You can easily find the FTP connection setting in your hosting cPanel. If you still find difficulty in connecting via FTP you can always contact your hosting provider to help you.
Once connected via FTP you can directly download the entire unzipped website folder or you can download the zip file created in the previous step.
Always keep this file safe until your website is completely migrated to the new host and you create another backup on your new host.
Database Backup
Exporting database is again a very simple procedure. You can directly login to your hosting cPanel and go to MySQL database option.
Some hosting providers allow you to directly download the database from the MySQL option, whereas some offers the same via PhpMyAdmin page.
Go to PhpMyAdmin -> Select the database to download -> Go to Export tab on top -> Click on Go button to download the database.
Now your website backup is completed. If you face any issue with above steps you can drop a message in the comment section or you can directly contact your hosting provider to help you.
You can also use WordPress plugins to take backup of your website.
Website Migration – Important!
This step by step guide will help you to migrate WordPress website to the new hosting provider for the same domain name. If you are looking to migrate your website for different domain name than check this out.
Step By Step guide to migrate WordPress website to the new domain name
Website migration can be done by two methods-
- Uploading complete files to the new server
- Uploading only wp-content folder
The important thing is how to find if you require uploading the complete file or only wp-content folder. Just check out the wp-content folder of your backup and look for the mu-plugins folder. If this folder exists than upload only wp-content folder for website migration.
The mu-plugins folder contains additional plugins installed by your hosting provider while using 1 click WordPress installation service from their hosting control panel. These plugins may help you with the smooth functioning of your website.
Uploading complete files to new server
- upload complete zip folder to the new server and unzip it. ( via Cpanel or FTP)
- Create New MySQL Database.
- Go to PhpMyAdmin
- Import MySQL database
The last step is to configure the wp-config.php file.
Configure wp-config.php
Browse to the folder on your local computer where you downloaded your website files to. In that folder, there is a file called wp-config.php that controls the access to WordPress and your database.
Make a copy of this file and store it in another folder on your local computer. This is necessary for restoring the changes we are about to make should something go wrong later.
Open the original version of the file with your favorite text editor and make the following three changes:
1. Change The Database Name
Locate the following line:
define('DB_NAME', 'db_name');
The db_name portion of this line will currently be set to the MySQL database name of your old web host. This must be changed to the name of the new database you have just created.
2. Change the Database Username
Below this you will find the line:
define('DB_USER', 'db_user');
In this line, you need to change the db_user portion from the username of your old host to match the new username you have just created.
3. Change The Database User Password
Finally, edit the third line:
define('DB_PASSWORD', 'db_pass');
As with the others, the db_pass section of this line must be changed to the new secure password you created for your MySQL user.
Save wp-config.php and close the file.
Uploading only wp-content folder
This step is very simple to carry out. But while using this step to
- Carry out a fresh WordPress installation by auto script installer service provided by your hosting provider.
- Install SSL certificate if required (Very important)
- copy the wp-content folder to the new server (overwrite on the new server)
- Go to PhpMyAdmin and select your database.
- Import your website database.
- Edit wp-config.phpfile
Remember in this step you don’t need to edit the database name, user and password fields in wp-config folder.
All you need to change is table prefix. Just check the table prefix of your uploaded database and edit it.
$table_prefix = ‘mMvXjd’;
Important – Remember in this step install SSL certificate after installation of WordPress. With some hosting provider installation of SSL after configuring website gives a problem.
BLUEHOST: Installation of SSL could not be done after configuring website. (Case Study)
Editing Nameserver for Domain
If you have not transferred your domain name from current hosting and just purchased new web hosting package then you need to change the name server of your domain name pointing to your new hosting address.
You can find the nameserver details within your hosting panel or you can ask directly from your hosting provider. Just edit the name server details with your domain name provider.
Note: It might take up to 24-48 hours to propagate your name server details over the internet.
Step by step guide to link your domain name with hosting via nameserver
Fix Broken Links After Moving WordPress Site
- Log in to your WordPress admin panel.
- From the Plugins menu, click Add New.
- Enter Search and replace, and then click Search Plugins.
- Locate the Search and Replace plugin, and then click Install Now.
- Click OK.
- Click Activate Plugin.
- From the Tools menu, click Search and Replace.
- Enter your old site URL in the Search for field. For example,http://olddomainexample.com (no trailing slash).
- Enter your new site URL in the Replaced with the field. For example, http://newdomainexample.com (no trailing slash).
- Select All, and then click Go.
Conclusion
Well, there are many tutorials available on inter about migrating your WordPress website to the new server. This is a case study as I almost suffered 10 days of website downtime due to SSL installation error. Just keep in mind to install your SSL certificate as soon as you install the WordPress and before copying your content to the website.
If you have faced any issues while migrating your website then do share with our readers in the comment section.
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.
5 thoughts on “Step-by-Step Guide To Move WordPress Site To New Server (Updated)”
wonderful article.
got new info from this blog. thanks for information provide
waiting for your next post.. great work
wonderful article.
got new info from this blog. thanks for information provide
waiting for your next post.. great work
Hi.Pradeep
This is great information on moving WordPress site from one server to another.
It’s impressive that you are getting ideas from
this article as well as from our dialogue made here.
Nice And Very useful info,This article important and really good the for me is.Amazing write-up,Great article. Thanks!