How To Move WordPress From A Local WAMP Setup 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 as the other methods are fairly straightforward.

In this tutorial we’ll:

  1. Change Your Local Site & Blog URL’s
  2. Export database backup from local server
  3. Transfer files using FTP to your web hosts server
  4. Create a New Database
  5. Import your local servers database export file to your live servers database
  6. Edit wp-config.php file
  7. Point your name servers to your web host

Requirements

I have already written an entire tutorial on how to choose the best domain name as well as a guide to choosing the best web host.

Change URL’s

First step is to login to WordPress on your local hosts server using WAMP and change the Site URL’s to your domains. Go to Settings > General and change them to the URL of the domain you will be using on your live server.

Note: Once you change your site url, you local installation will NOT work anymore so take a full database backup before changing them just in case you want to go back. Otherwise, use the WP Migrate DB plugin to change url’s instead

Change Site URL's

Enter Live Domains URL’s

Live Site URL's

Export Database Using PhPMy Admin

Login to PHPMyAdmin on your local server and follow these instructions to create a database backup which you then need to save to your desktop.

PHPMyAdmin - Local Server

Make sure you have changed the Site URL’s before you export the sql database.

Transfer Files to Live Server

Left click on your WAMP serve ricon in your system tray and open your www directory. Login to your web server using your FTP client and transfer your entire files from your local server to your public_html directory on your live web hosts server.

WAMP www-directory

The best way to do this is to drag the entire folder from your local servers www directory to your desktop and then transfer your files to your live server using Unlimited FTP or another FTP client.

Here’s what you need on your local machines desktop.

.SQL Database Export file and your file folder

Database Export And Local Files

In the below screenshot, all my WordPress files for this site are in the directory file folder named WordPress.

Local-WAMP-Files
Note The Location in The Address Bar of Your Browser

Tip: If you’re not comfortable using an FTP client i suggest you use unlimited FTP which is an FTP program built in to cPanel.

Transfer Files Using FTPThe screenshot above is Unlimited FTP which is available if you use Bluehost as your web host who offer the best technical support in the industry.

The screenshot above shows i have multiple site folders in public_html and are using a live test domain, d0-blog.biz for this exercise. If you only have one site to host on your web server, you can put all the files into your public_html directory folder.

Don’t forget to click the file folder first so that you can transfer the contents of the file folder to your public_html directory and NOT the file folder itself.

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

Edit wp-config.php file

You will need to change the database configuration settings in your WordPress files. 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 and pasted them into notepad for easy access.

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

This is a sample wp-config.php file.

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)

Your site should now be live on your web server to the entire world wide web. Congratulations on successfully moving your WordPress installation from your local server to the live internet!

An easier way to do this would be to use a special plugin which is made to backup and restore WordPress sites to new servers, different web hosts and when changing domains.

Never Miss a Tip from Brad Dalton

Get my latest web design tutorials, elegant coding solutions & useful tips.

5 Reasons Mad Mimi Works Better

mad-mimi
  1. Sends From Your Email Address - More personal & higher open rate
  2. Cheapest - $42 for list of 10,000 emails, unlimited sends
  3. Ease of Use - The easiest system to create & setup campaigns
  4. RSS to E-Mail - Auto send list of latest posts
  5. Auto Send Any Number of Days - enables you to offer multiple newsletters at different frequencies.

Click here to create a free account.

Comments

  1. roulla says

    This is just what ive been looking for, I changed the url on our site last week and then couldnt log into wordpress through wamp, actually cant open wamp either today, i’m going to attempt putting site live though, site was more or less done!

Leave a Reply

Your feedback is always appreciated.

Your feedback is always welcome & appreciated however WP Sites does not reply to anonymous comment authors or approve loaded questions. Members get answers to unlimited questions.