Many situations occur when you need to migrate your website from one hosting to another.
If your WordPress website’s performance affects your digital existence due to slow page loading and you have decided to move your WordPress to another hosting provider, you are at the right place to know how you can do it.
There is a risk of losing data and downtime while switching the WordPress website to another host. This article gives a proper guidelines to migrate your website without any risk.
Should I Migrate My WordPress Site Manually or Automatically?
Migrating a WordPress website to a new host is not a difficult task. However, if you are migrating manually, you need to do a lot of hard work. Moreover, it would help if you were comfortable using FTP (File Transfer Protocol), accessing the database, and modifying the back-end files.
That process is complicated, but it can be easy to follow proper guidelines. Although, if you do not want to go through the complicated process, you can do it in an easy way using WordPress tools or plugins. Many tools and plugins are available to do this task; we will introduce some of them so that you can pick the best for you.
Method 1: How to Migrate Your WordPress Site Manually
Migrating a WordPress website manually is a little bit difficult. However, in this blog, I tried to simplify it by providing a step-by-step process to easily migrate your WordPress website manually from one host to another.
If you are not satisfied with your current WordPress host because of its speed, performance, and support, you should not invest more in that hosting; now it’s time to choose the best hosting provider and migrate to it.
When migrating your WordPress website to a new host, you should ensure the hosting you choose is reliable so you do not have to switch again. Normally hosting providers give you Free Website Migration support like Devrims.
To choose a new host, you should consider necessary terms such as security, speed, performance, etc.
We recommend you to check out Devrims Managed Cloud Hosting. Because it provides highly reliable hosting solutions and features like:
- Dedicated Cloud Server
- 20+ Datacenter Locations
- One-click deployment
- Free Migration
- No Restrictions and Limitations on Number of Apps
- Server level caching
- One-Click Domain Management
- SSL certification
- Compatibility with all PHP versions
- 9% Uptime Guarantee
- 24/7 support system
When you have decided to move a WordPress website, you must set a backup first because sometimes something may go wrong, and you can lose everything while migrating your website.
To do this, you need to use FileZilla, an excellent (and free) option. Once you connect your WordPress website server via FTP, you need to navigate the WordPress root folder that contains all the files on your site.
Usually, you can find all the files in the root directory with a folder name, either public_html or www, or is named after your site:
Click on the root folder and choose the download option:
It will download the entire folder to your computer. It will take some time, and once done; you can move on to the next step.
Till this stage, you set a backup of your web files. Now it’s time to set a backup of the WordPress database.
Tip: If your website is live and there is a frequent change in the database record, we recommend uploading the web files on the new hosting server before taking database backup via following step 6 to avoid data loss.
- Login to cPanel using your credentials
- Click on phpMyAdmin
- From the left column, click on the database name.
- Click on the Export
- Format: It is recommended to keep it to default SQL selection.
- Click Go.
The database will be downloaded to your local machine.
- Login to cPanel using your credentials
- Scroll to the Database section and click on MySQL Databases
- In Create New Database field type your desired database name
- Click Create Database
- Now look for MySQL Users> Add New User
- Type the Username of your choice
- Type the Password of your choice or click on Password Generator
- Click on Create User
Once the Database user is created you will need to assign proper privileges to that user.
- Now, look for the Add User to Database option.
- Select the proper Database and Username
- Click on Add
- In the next section, you will assign the proper privileges to the new MySQL User. Simply, click on ALL PRIVILEGES checkbox to grant all privileges to maintain the database.
- Click on Make Changes
Next, import the database in the newly created database which you have exported in Step 3
- Go to the same Database section and click on phpMyAdmin.
- From the left column, click on the database name.
- Click on the Import
- Browser your computer and choose the database file.
- Format: Keep it to default SQL selection because you have exported the database in the .sql extension.
- Click Go.
However, if you have selected a host that does not use cPanel, you need to recognize a distinct set of instructions. For instance, if you are migrating to one of our Devrims hosting plans, we will help you migrate your whole website for free.
- Connect your new server via FTP for this stage.
- Then go to the folder’s root folder.
- Select the Upload option by right-clicking anywhere
- Locate the folder you downloaded in the second step
- Open and select all of the files and directories inside
There will be hundreds of web files inside the directory, so the upload will take time to complete.
If you reached this step, this means all the WordPress files are up on the new server. Now you need to access the WordPress root folder once again.
If you try a WordPress website, it will not be working because you did not update the wp-config.php file to point toward your new database.
Navigate the wp-config.php file within your new root folder. Right-Click with your mouse and select the View/Edit option:
Most eCommerce businesses start small and gradually grow. But all the eCommerce cms platforms are not efficient enough to bear the change of increased sales. Luckily, Magento is capable of adapting to change without affecting the website.
Magento can support up to 500,000 products and transactions in an hour. In this way, you may customize the Magento store without any limitations.
In this file you can see the three line of code below:
All three lines pass sample values; you need credentials for the new database that you created during step 4.
Once updated, save the file and close it. You should now be able to access your WordPress website, which will look just as it did before.
You’ll need to modify your domain’s DNS settings before you can utilise the site on your new server. They’ll be set to point to your old host, so you’ll have to change the records to point to the new server IP address. You need to add your new server IP address as an A record with www and without www in the DNS record section of your domain registrar account.
It can take up to 24-48 hours for DNS updates to properly propagate. It’s preferable to do this during a time when you expect less traffic. You should avoid making any modifications to your website during the propagation process because you may be modifying the previous version of the site.
Method 2: Migrate WordPress Website with Plugin
Although many migration plugins are available on the internet, some of the best plugins are as follows.
All in one, WP migration is one of the most excellent plugins in the market. It lets you export your complete WordPress website, including database, media files, themes, plugins, etc., without any technical requirements.
It has 4+ million active installations and 6916 reviews with a 4.6 average 5-star rating.
- No limitations on host or operating system
- Support for MySQL
- Bypass all upload size restriction
- Compatible with WordPress v3.3 to present
- wp-cli integration is available in unlimited extension
Duplicator is another excellent WordPress plugin that allows you to migrate your WordPress website from one server to another server host. The plugin is straightforward to use. The best thing about this plugin is that it is free.
It has 1+ million active installations and 3480 reviews with a 4.9 average star rating of 5.
- It can help you bundle up an entire WordPress site for easy reuse or distribution.
- You can set manual backups for the WordPress website
- You can pull down a live site to localhost for development
- Easily allow transferring WordPress website from another hosting provider
- Clone, migrate, move a WordPress site between domains or hosts with zero downtime
- You can also duplicate a live site to a staging area or vice versa
- Perform a complete WordPress migration without struggling with messy import/export SQL scripts
According to the migrate guru, it is the fastest way to migrate a WordPress website from an old host to a new host. Migrate guru, powered by BlogVault, uses intelligent processes on its servers.
It has 70,000+ active installations and 907 reviews with a 4.9 average 5-star rating.
- Fully-automatic, built-in search & replace
- Compatible with every web host
- True one-click migration
- You do not need add-ons to move multi-sites or sites with serialized data.
This is another powerful migration plugin that can fulfill your migration requirements. The plugin is straightforward to use to migrate your whole WordPress website, including themes, plugins, database media files, etc.
It has 300,000+ active installations and 253 reviews with a 4.5 average star rating.
- Great email support
- Easy push and pull all the files from the old to a new server
- Multisites migration feature available
- Easy database migration and media libraries migration
- WP-CLI support available
- It allows taking a backup of your website before migration
The WPvivid Backup plugin is ideal for site transfer and preserving a backup of your WordPress site. It allows for automated and manual migration (uploading a backup to a destination site and then restoring it). It’s also absolutely free, and there are no limits to the size of the website you can move.
It has 100,000+ active installations and 539 reviews with a 4.9 average star rating.
- Easy backups and one-click restore
- One-click site migration
- Auto Migration
- Instant Email Reports
- Large database backup support
Test Your Website Before Adding Domain Name
I believe now you can easily migrate your WordPress website with the steps mentioned above. Once the migration is completed, we highly recommend testing the newly migrated website using a staging URL or localhost method to ensure everything works as expected.
To know how to test a newly migrated website via localhost entry, please click on the link.
Frequently Ask Questions
There are a few common frequently asked questions about WordPress migration. Let’s have a quick answer to all of these.
Migrating a large website using plugins is not a good idea. The situation gets more complicated for large websites. So, in that case, I would recommend you go with the manual process and follow each step carefully.
Migrating your website to a new host is not enough. After migration, we recommend testing the performance using the staging URL provided by the hosting service and ensuring that the performance remains the same once the website is live. Normally hosting provider gives you the server with a default configuration like Php-FPM setting, Php Memory Limit especially, etc. Before adding the domain name, you must ensure that settings are correct and all the required software services are deployed with correct configurations.
Devrims not only migrates your website but also checks the performance and ensures that your website is ready to handle high traffic with consistent performance. You can avail Free Website Migration service and experience true managed cloud hosting.
We hope that this step-by-step guide assisted you in migrating your WordPress website to a new host with little downtime. If you are looking to move web hosts but the processes above seem too tricky, or if you have any problems with your WordPress migration, please leave a comment and let us know. Also, we would love to know which method is your favorite.