Get the Official WPSaviour App Now!

BlogWordPress Security

How To Move WordPress Site To New Host With Zero Downtime

At any time when I talked about WordPress internet hosting, I all the time talked about that WordPress is reminiscence hogging CMS, and it is best to all the time go for a Webhosting, which is optimized for WordPress internet hosting. Mnay newbies make mistae by selecting the internet hosting based mostly on worth which isn’t the correct determination as it is best to contemplate each Value & internet hosting high quality to make the correct determination.  Listed here are these webhosting which has confirmed to be finest for WordPress & can also be reasonably priced.

In case you are trying to transfer WordPress website to new internet hosting, this information will enable you perceive what all information to maneuver & methods to do it your self. Earlier than we transfer to the steps of transferring WordPress internet hosting, let me share the backstory behind penning this DIY tutorial.

Certainly one of my WordPress shoppers needed to transfer WordPress weblog from Dreamhost to Hostgator, as Hostgator is likely one of the finest options for Dreamhost. Right here I’ll share the entire step-by-step tutorial to transfer WordPress website to a brand new host.

On this case, Dreamhost makes use of customized cPanel, and Hostgator makes use of commonplace cPanel.

Many of the in style Website hosting firms like Bluehost, SiteGround affords commonplace cPanel, so in case you are transferring to any cPanel internet hosting, this information will enable you emigrate WordPress website.

  • Learn: HostGator Vs Bluehost Vs DreamHost

Web page Contents

Transferring WordPress Website to New Host (Hostgator Server): Useful Information

Alright so it’s time to start out leaving your crappy internet hosting & transferring to new internet hosting on your WordPress weblog. On this tutorial, I’m taking the instance of HostGator internet hosting & the method could be comparable for nearly all of the web-hosting firms.

Seize Internet hosting from HostGator now> (30% low cost)

Now, we want to verify every part strikes with none downtime. I additionally recommend planning out a day like a weekend, when your web site get the least site visitors.

That is to verify; you’ll not lose any feedback or visitor put up whereas migrating.

On this tutorial, we will likely be transferring two issues:

  • WP-content folder from the outdated host
  • Database of your WordPress website
  • Taking backup of WP-Config file

Info and gear it’s good to preserve helpful:

  • New Internet hosting Data
  • Outdated Internet hosting Data
  • FileZilla or another free FTP device

On Dreamhost: Outdated internet hosting

Earlier than we export wp-content and database, right here we will likely be doing a few issues.

  • Delete all earlier database backup
  • Delete all Cache information (Empty cache possibility in your cache plugin)
  • Delete all unused plugins & themes
  • Delete all Spam feedback, Trash feedback, and trash posts. You possibly can take assist of WP Sweep plugin to do all this shortly

We’re doing so many cleanups to verify your database and wp-content measurement might be as small as potential.

You possibly can Set up WP-Db Supervisor plugin and optimize database and after optimization, take a backup of WordPress database. In case your database measurement is big, use the gZip compression else take backup in .SQL format.

One other factor which we have to take backup of is the WP-content folder. In case you are utilizing cPanel internet hosting, you may merely log into file supervisor from cPanel and compress your wp-content folder and take a backup, or use any FTP shopper and take backup of your wp-content folder.

On Hostgator: New Internet hosting the place you need to transfer WordPress

Up to now, at Dreamhost internet hosting, we’ve got taken a backup of WP-content and WordPress Database, and that’s all we have to transfer forward. You also needs to obtain WP-config file which is within the root folder of your FTP.

Now let’s put together our new internet hosting for transferring WordPress website.

Login to HostGator cPanel or new internet hosting account and Set up WordPress on it. You possibly can comply with this information to Set up WordPress utilizing Fantastico. Together with this, we will likely be making a separate Database and a consumer and associating that consumer with Db with all of the privileges.

Create a Database + Consumer + Affiliate:

Login to your cPanel and click on on Database >MySQL Database Wizard

Create Database

Right here you’ll be giving a reputation to your database, making a MySQL consumer & password and associating the consumer with that database. Notice down all the main points in a notepad, as we are going to want it later to make adjustments within the wp-config file.

WordPress Database user & pass

Database Privilage

So, right here is the element of newly created database and all related particulars:

  • Db Title: unikaman_SML
  • Db consumer: unikaman_SML
  • Db password: _xzB-[Cbph.*

So, we’re nearly half approach with our WordPress internet hosting migration and now begin the arduous half. Since, our objective right here is to transfer WordPress internet hosting with zero downtimes, so we are going to first examine every part is alright earlier than migration. For this, we are going to edit our Home windows hosts file, and level our area to Hostgator server.

  • Learn: How one can request for Free Web site Migration from Hostgator

On Hostgator cPanel, left aspect backside yow will discover the I.P handle of your internet hosting account and edit your hosts file to level to that I.P. This information will enable you to edit your host’s file and here’s what my hosts file seem like, change the area title with the actual area that you’re migrating.

0 downtime migration

What it will do is, it is going to allow you to see your website on new Net-host in your machine, whereas, everybody else on the planet will see your website operating on outdated internet hosting.

Now, open FTP and login to new internet hosting FTP. Add all of the content material of the WP-content file (Backup from the outdated host) to your new internet hosting on the similar location. public_html/area.com/wp-content

And in your internet hosting cPanel, go to Database > PHPMyAdmin >Choose the database from Left aspect > Import and add the backed up database file from outdated internet hosting.

Import WordPress Database

In case your database measurement is just too enormous and might’t be imported by default PHPMyAdmin importer, we are going to use a third social gathering device name Bigdump.

In case you want tutorial for importing enormous WordPress database, let me know, and I’ll write a separate tutorial for a similar.

After importing is completed, click on on Construction and word down the database prefix. Right here is an instance:

WordPress Db prefix

So, on this instance migration, my WordPress DB prefix is: wp_7agot7_

As soon as it’s executed, all it’s good to do is edit Wp-config file and add the database info that we created above: Open your wp-config file from root of your WordPress set up (Preserve a backup of file earlier than) and edit the main points:

Editing wp-config file

Additionally, seek for following line in Wp-Config.php file: $table_prefix  = 

And change the prefix with, our Db prefix which we’ve got discovered utilizing Construction underneath your PHPMyAdmin. Instance:

WordPress Database Prefix

After getting executed every part as talked about on this tutorial, your website must be efficiently migrated to new internet hosting. Now, all it’s good to do is confirm all settings and ensure every part is working fantastic. As soon as you’re certain about every part is working fantastic, go forward and replace Area title servers to level to new internet hosting and on this case it’s Hostgator nameservers.

Doable downside & answer after WordPress host migration:

After transferring WordPress Webhosting firm, your listing construction is modified. So, few of your plugins may not be working, otherwise you could be dealing with few points. Listed here are a few of the frequent issues which you may face, and listed below are the answer to these issues:

Bizarre Character downside:

After migrating MySQL database, you’ll discover some bizarre character in your WordPress weblog within the new host. For instance, characters like:  Â and ’.

You should utilize Search and change WordPress plugin, to search out all such bizarre characters and change all of them collectively.

Picture Add downside:

After internet hosting migration, since your listing construction is modified you may get an error importing new photos. You should go to Settings > Media underneath WordPress dashboard and edit the situation of the WP-content listing underneath “Retailer uploads on this folder” choices.

Equally, it’s good to make adjustments for WP-DB supervisor or another database backup plugin you’re utilizing to retailer the database in your server.

Additionally, take a word of .htaccess file, as more often than not you find yourself having a defective or empty .htaccess file, which provides 404 error for all inner pages. You may wish to reset your WordPress cache plugin, to replace the .htaccess code.

Furthermore, this tutorial seems technical, however when you begin transferring WordPress blogs, you’ll notice it received’t take greater than 30-45 minutes for an ideal migration. Nevertheless, time could differ based mostly on the scale of the database, wp-content folder, and your abilities.

Actually, lots of you may contemplate beginning a service based mostly on the identical, and you’ll cost from 50-100$ for a internet hosting migration. One thing, which I supply underneath my WordPress companies, from lengthy and it makes respectable cash with an hour of labor.

Fast recap:

  • Take again up of WP-content and Database on outdated server
  • Edit Hosts file on Native Laptop
  • Set up WordPress on new Internet hosting server
  • Add WP-content folder
  • Create Database, consumer, and password
  • Import Database
  • Replace WP-config file on new server
  • Confirm every part
  • Replace Nameserver to level to new internet hosting
  • Share this put up ?

Replace: You can even use WP Duplicator plugin emigrate WordPress weblog.

Download The WPSaviour App Now

Related posts
Beginner’s GuideBlogShowcase

7 Best Shopify Alternatives in 2020 (Cheaper and More Powerful)

Beginner’s GuideBest WordPress PluginsBlog

14 Best AI Chatbots Software for Your Website (Comparison)

Beginner’s GuideBlogTips

Magento vs WooCommerce – Which one is Better? (Comparison)

Beginner’s GuideBlogTips

12 Best Calculator Plugins for Your WordPress Site

Sign up for our Newsletter and
stay informed

Leave a Reply

Your email address will not be published.

Fear Of Missing Out?

Sign up with your email address to receive WordPress tips and updates
SUBSCRIBE NOW
Terms and Conditions apply
close-link
Click Me