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:
- Change Your Local Site & Blog URL's
- Export database backup from local server
- Transfer files using FTP to your web hosts server
- Create a New Database
- Import your local servers database export file to your live servers database
- Edit wp-config.php file
- Point your name servers to your web host
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.
Enter Live Domains 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.
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.
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
In the below screenshot, all my WordPress files for this site are in the directory file folder named WordPress.
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.
The 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.
Click the database you created for your new site and click import to import the database you exported from your local severs PHPMyAdmin.
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.