Sunday, July 3, 2022
Techiexpert.com
No Result
View All Result
  • Login
  • Register
Exclusive Videos
  • Tech news
  • Startup news
  • Artificial Intelligence
  • IOT
  • Big Data
  • Cloud
  • Data Analytics
  • Machine Learning
  • Blockchain
  • Social Media
  • Tech news
  • Startup news
  • Artificial Intelligence
  • IOT
  • Big Data
  • Cloud
  • Data Analytics
  • Machine Learning
  • Blockchain
  • Social Media
No Result
View All Result
TechiExpert
No Result
View All Result

How to Migrate WordPress From Localhost to Live Server?

Sony T by Sony T
May 10, 2022
in Blogging
Reading Time: 8 mins read
Migrate WordPress
26
SHARES
363
VIEWS
Share on FacebookShare on Twitter

Great, you are done developing and testing your WordPress website on your local setup. You have ironed out all the problems and are happy with the results.

What next? The next step is to make it live, so your users can get to it.

The big question is, ‘How do you go about migrating your WordPress site from your localhost to the live server?’ Well, that is what this article is all about. We will cover two ways to help you publish your WordPress website:

  1. Using a plugin
  2. Manually

We recommend the first method as it is easy for both techies and the not-so-tech-savvy. Also, this method works seamlessly for all hosting providers. However, do go through the manual method as well, in case the plugin fails (for whatever reason) or you want tighter control of all the aspects of  migration.

Let us jump right in.

Migrating WordPress site to live server from a localhost

While we are going to use the Duplicator plugin for this article, you can  use any other suitable plugin. Here are a few that you could consider:

  • All-in-One WP migration
  • UpdraftPlus WordPress Backup Plugin
  • Migrate Guru
  • WP Migrate DB
  • BackupBuddy
  • VaultPress

Step 1: Install and activate the Duplicator Plugin on the localhost

Start by installing and activating the Duplicator plugin on the WordPress site hosted on the localhost.

Navigate to ‘Add Plugins’ and search for ‘Duplicator’. Once you find it, click on ‘Install Now’

Do not forget to activate the plugin after installation completes.

How to Migrate WordPress From Localhost to Live Server? 1

Step 2: Create a package

Package here refers to two files: a zipped archive of your website and an installer.php file to install the archive contents on the live server.

To get these files generated, you first need to create a package.

On the left, navigate to the Duplicator menu on the menu bar,and click the Packages submenu. Next, click on the ‘Create New’ button that shows up on the right hand corner of the screen.

How to Migrate WordPress From Localhost to Live Server? 2

Fill in the package name and press ‘Next’ on the next screen.

How to Migrate WordPress From Localhost to Live Server? 3

Once the scanning is complete, you will see a screen with a ‘Build’ button at the bottom. Click it to start building the package.

How to Migrate WordPress From Localhost to Live Server? 4

The building may take some time. Once completed, it will create a zipped archive that contains your website’s content, plugins, themes, database and all the WordPress files.

How to Migrate WordPress From Localhost to Live Server? 5

Once the Duplicator plugin has built the package, you will be presented with a screen that allows you to download the generated files to your computer. You can choose to download the Archive and Installer separately, or together, by using the ‘One Click Download’ option.

How to Migrate WordPress From Localhost to Live Server? 6

Step 3: Use an FTP client to transfer the Archive (ZIP) and installer.php to the live server

Once you have the generated archive and installer.php, you need to transfer these files to the live server where they can be used to prepare a WordPress installation for your live website.

You can use any FTP (File Transfer Protocol) client for this purpose – we prefer FileZilla as it is free and the most popular one out there. FileZilla also allows you the option to use SFTP (Secure FTP) to transfer your files over a secure connection.

  • Enter the hostname and FTP/SFTP credentials of your live server to make a live connection.
  • Upload the Archive and installer.php to the root web folder (usually public_html) on your live server (you will find these files in the location you downloaded them to in the previous step)
How to Migrate WordPress From Localhost to Live Server? 7

Step 4: Run installer.php on the Live Server

Now that you have the required files on the live server, it is time to execute installer.php.

Point your browser to http://<yourdomainname>/installer.php. This will launch the Duplicator installer. Simply click on ‘Next and keep moving.

How to Migrate WordPress From Localhost to Live Server? 8

NOTE: Before moving to the next step, you may want to remove the previous data (if any) from the live server database. You can use the Database Manager to do this. This will reduce the chances of any leftover data causing any kind of issue later.

The next step will ask for your database credentials. Fill in the required information and click on ‘Next’.

How to Migrate WordPress From Localhost to Live Server? 9

Step 5: Update site data and test  live website

Confirm the settings on the next screen and click on ‘Next’.

How to Migrate WordPress From Localhost to Live Server? 10

Click the ‘Admin Login’  button on the ‘Test’ screen and your familiar wp-login will popup.

Login and navigate through the site and ensure everything is as you want.

How to Migrate WordPress From Localhost to Live Server? 11

Note: To keep your WordPress website secure, deactivate the plugins you do not need (including the Duplicator plugin).

Congratulations! You have successfully transferred WordPress site from localhost to server, with the plugin handling all  the complexities of the process.

Migrate WordPress site to the live server manually

In Migration of WordPress manually, you can use different tools to export database files from local setup and import it to live server as well there are also FTP clients, cPanel to transfer WP files.

Step 1: Transfer WordPress Files to the live server

Use any FTP client; go to the root folder of your WordPress installation on your local server. Connect to your live server and upload all the contained files to the public_html directory of your domain directory.

Using cPanel to achieve the same is also perfectly fine.

Step 2: Export the local database

Using the phpMyAdmin on your local server, select your WordPress database on the left and use the top menu bar to navigate to Export.Quick Export Method, and click on ‘Go’.

This will create a ‘.sql’ file in your download file, containing the commands for your exported database. You can also choose to export to an archive file instead of creating an SQL file.

How to Migrate WordPress From Localhost to Live Server? 12

Step 3: Import the database on the live server

You can either use the phpMyAdmin interface or Database Manager.

Import the DB file you generated in the previous step to the live server database. Make sure the newly created database has the needed privileges for the DB user.

How to Migrate WordPress From Localhost to Live Server? 13

Step 4: Update the values for siteurl, home and blog name options

Navigate to the wp_options table, and click on ‘Select Data’

How to Migrate WordPress From Localhost to Live Server? 14

You need to change the values of siteurl, home and blog name to your website’s URL.

How to Migrate WordPress From Localhost to Live Server? 15

Step 5: Update your wp-config.php

Once you are done setting up the DB and getting all your files to the live server, you may need to change some settings on the wp-config.php to match them with your database.

Verify these settings:

define(‘DB_NAME’, ‘database name’);

define(‘DB_USER’, ‘database user’);

define(‘DB_PASSWORD’, ‘database_password’);

define(‘DB_HOST’, ‘server name holding your database (usually localhost)’);

Step 6: Activate your SSL certificate on the live server

Finally, protect your live WordPress website with a best SSL certificate. (assuming you have already installed it on the live server).

Introduce these two lines in wp-config.php just above the line that reads ‘/* Tdefine(‘FORCE_SSL’, true);

define(‘FORCE_SSL_ADMIN’,true);

That’s it. You now know of two ways to migrate WordPress from localhost to server. Choose a plugin to make things easier. Or, use the manual method if you want more control over the steps. You are now ready to showcase your WordPress website to the world.

To know more about WordPress CMS, hosting and features of WordPress, read more from our WordPress SEO Planning . 

Migrating WordPress from localhost to server might seem like a difficult task but it isn’t. Follow these two steps to easily transfer your website.

Tags: wordpress
Share10Tweet6Share2Pin3

Related Posts

Does domain extension impact SEO standards
Blogging

Does domain extensions impact SEO standards

How to master E.A.T with contents
Blogging

How to master E.A.T with contents

How automated delivery systems work in 2022
Blogging

How automated delivery systems work in 2022

Tips to Reduce Your Website Hosting Costs
Blogging

Tips to Reduce Your Website Hosting Costs

Mobile Browser
Blogging

Web Browser Automation: 7 Things To Know

Most Read

  • How to Track Someone’s iPhone by Phone Number?

    How to Track Someone’s iPhone by Phone Number?

    480 shares
    Share 192 Tweet 120
  • Top 5 car automation trends to know

    258 shares
    Share 103 Tweet 65
  • Is Parody Coin investment a Good Investment?

    96 shares
    Share 38 Tweet 24
  • What is windows modules installer ? How to Enable/Disable

    1244 shares
    Share 498 Tweet 311
  • Tips to Reduce Your Website Hosting Costs

    881 shares
    Share 352 Tweet 220
  • How to Track Activities an Instagram account?

    87 shares
    Share 35 Tweet 22

Recent Stories

Doing Cleanup: 5 Types of Links You Should Disavow

Backlinks
Share4Tweet3Share1Pin1

Telemedicine or e-medicine: What is it?

Telemedicine Business
Share5Tweet3Share1Pin2

Hyperlocal marketplace Urvann raises Rs. 3 Cr in Seed Round led by IPV

Hyperlocal marketplace Urvann raises Rs. 3 Cr in Seed Round led by IPV
Share5Tweet3Share1Pin2

Ways Data Analysis has changed customer reward programs

Ways Data Analysis has changed customer reward programs
Share4Tweet3Share1Pin2
  • Terms of use
  • Privacy Policy
  • About Us
  • Contact us
  • Write For Us
  • Cookie Policy

© 2022 All Rights Reserved

No Result
View All Result
  • Tech news
  • Startup news
  • Artificial Intelligence
  • IOT
  • Big Data
  • Cloud
  • Data Analytics
  • Machine Learning
  • Blockchain
  • Social Media

© 2022 All Rights Reserved

Welcome Back!

Login to your account below

Forgotten Password? Sign Up

Create New Account!

Fill the forms below to register

All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In
Cookie Law Notice
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Cookie settingsACCEPT
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT