• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar

WP SITES

2299

Original Genesis Tutorials & 5000+ Code

Snippets

  • Subscribe
  • Full Access
  • Videos
  • Log in
  • Twitter
  • Facebook
  • LinkedIn
  • Email
  • More
  • Reddit
  • Tumblr
  • Google
  • Print
  • Pinterest
  • Telegram
  • Pocket
  • Skype
  • WhatsApp

How To Move WordPress From A Local Installation To A Live Web Server

You can choose between moving WordPress manually or using a plugin to move your site to your live server.

Lets take a look at moving WordPress manually using a plugin only to export the database from the local installation.

In this tutorial we’ll:

  1. Install WP Migrate DB plugin & add domain and live server path
  2. Create a New Database
  3. Import your local servers database file using phpMyAdmin
  4. Upload your WordPress files to your server
  5. Edit wp-config.php file
  6. Point your name servers to your web host

Requirements

  • Choose a Domain name
  • Web Hosting account
  • FTP client

Change site URL & server path

The first step is to install the WP Migrate DB plugin and add your domain name along with the new server path to your public_html root directory.

Finding your public_html root directory.

In cPanel, go to File Manager and you’ll find these details:

root-directory

The above example shows you the full path to the folder named wordpresssites which sits in the public_html root directory as a add-on or subdomain. In this case, the full path you need to add in the WP Migrate DB plugins migrate settings is:

/home4/daltonwi/public_html/wordpresssites

Example of migrate settings with domain name and live server path:

The following image shows you the server path if using a addon or subdomain named live

wp-migrate-db-migrate-settings

Once you have the migrate settings figured out, export your local DB and save it to your desktop.

Create a New Database On Your Live Server

Follow this tutorial on how to create a new database for WordPress.

Import Your Local Servers Database To Your Live Server

Login to PHPMyAdmin using cPanel on your live server.

PHPMyAdmin

Click the database you created for your new site and click import to import the database you exported from your local severs PHPMyAdmin.

Import Database

Note: If you have already installed WordPress on your live server without adding any content, drop all the tables using PHPmyAdmin before you import your local database. In this case you only need to upload the wp-content folder from your local installation.

Upload WordPress files to server

You can upload all your WordPress files to your live server or install WordPress on your live server and only upload your wp-content folder containing your uploads, themes and plugins. The only file you will need to edit is your wp-config.php file with your new database name, username and password.

Edit wp-config.php file

You will need to change the database configuration settings in wp-config.php file. You can do this before you transfer your files to your live server or afterwards.

You should have taken note of your new database settings when you created a new database.

Here’s a tutorial on how to edit your wp-config.php file which will connect your database to your site

Point Your Domains Name Servers To Your Web Host

If your domain manager is NOT the same as your web host, you will need to edit your DNS – Domains Name Servers so they point to your web host. Generally when you sign up for a new hosting account, you should receive a welcome email with the nameserver settings for that host.

Here’s a video on how to change your DNS (Domains Name Servers)

Subscribe for new Genesis Tutorials

Primary Sidebar

Brad Dalton Specializes In StudioPress child theme customization & code modification. Access all code

Featured Downloads

  • Add Slider To Infinity Pro Front Page 1 Widget Background 67213
  • Responsive Image After Header On Single Pages 67126
  • Rotate Widget Background Images In Genesis 67200
WordPress Speed Test
  • Membership
    • Account Subscription Details
  • Tagged by Theme
  • Blog
  • T.O.C
    • Membership F.A.Q’s
  • RSS
  • Contact
  • Newsletter ( Twice Weekly )

Usage Policy · Tools & Resources


Images, code, and content on this website are property of wpsites.net and are protected by copyright law.
WP Sites does not grant permission for any repurposing, republication, or redistribution.
"Disclosure: Some of the links in some posts are "affiliate links."
This means if you click on the link and purchase the item, I will receive an affiliate commission.
loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.