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


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.

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, 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.


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.

Need More Help?

Join WP Sites to get full access to all tutorials & code.

  • Support for installation & modification of existing PHP code
  • Help with Genesis & StudioPress theme customisation
  • Access all tutorials & code snippets
  • Ask questions in the comments & get answers
  • Education - Request video explaining how the code works and what functions are included

Click Here to Learn More