Newest Posts
Home / Wordpress / How to Move WordPress from Wamp to Live Server

How to Move WordPress from Wamp to Live Server

How to Move WordPress from Wamp to Live Server

How to Move WordPress from Wamp to Live Server

Developing your WordPress site locally, saves you time and your resources. Today I’m going to show you how to move WordPress from Wamp to Live Server. I ‘ll hope that you have finished developing your site and hoping to move WordPress to a live server. In this post we’ll show you how to move WordPress from Wamp to Live Server including all your images, posts, attachments etc. In this Process we will use the files in the developed website and it’s database, a FTP Client and a cPanel Powered Webhost. Let’s start the tutorial now.

1. Backup your Pre-designed site’s Database.

First of all you need to backup your pre developed site’s database. To do that, just go to localhot/phpmyadmin from your default browser. Select the database that you need to export and jump on to the export tab. Select the method as quick and the Format as SQL and click export. Save the poped up download anywhere safe.

How to Move WordPress from Wamp to Live Server

Exporting the database

2. Upload the Files to the Web Server.

Next step is to upload your pre developed site’s files in to the Live Server. For this process, we will need a FTP Client. I’ll recommend to use Filezilla as the FTP Client. Upload all the files in the Pre Designed site in to the Public_html folder in the web Server.

How to Move WordPress from Wamp to Live Server

Upload the site using FTP

3. Creating a Database and Importing the Database

While the Upload is going on you can create a new database and import the database which we have downloaded from the local server. To Create a MySQL Database you need to login to your cPanel and jump on to the Databases section. From there, you’ll find an option create a new database.

How to Move WordPress from Wamp to Live Server

MySQL Databses

How to Move WordPress from Wamp to Live Server

Create a new database

When creating the database you need to add a user in order to control the activities of the database. You can add a user to the database in the page that you can create a database. Just Scroll down the page and you can find the Users section. From there, you can create a new user, add users to the databases. I think that you will need to create a new user. After creating a user, you need to assign that user to the database which you have just created. Just select the User that you want to assign for the database and select the database you want to add the user to. After that, just click on the “Add” button.

How to Move WordPress from Wamp to Live Server

Add a new User and assign that user to the database

After Creating the Database, you need to import the database which we have exported from the local server. to do that Jump on to phpMyAdmin under the Databases section in the cPanel. From there, Select the database which you have just created. After selecting the database which you have just created, move on to the “import” tab. From there, select the downloaded database which is in the SQL Format, in the uploader and click on “GO”

How to Move WordPress from Wamp to Live Server

Import the database

Now the importing of the database section is also finished. I’ll hope that the Uploading Process is also finished. Lets Move on to the next part of the tutorial.

4. Changing the wp-config file

You will have to change the database information of your wp-config.php file in the live server that you have just uploaded. If you will not change the database information of the wp-config.php file, your site will give you an error like “error establishing a database connection.” To do this, open the file manager in the cPanel and find the wp-config.php file and right click on it and “Edit” it.

How to Move WordPress from Wamp to Live Server

edit wp-config.php file

Change the details in the fields in the image below as your database which is created just now.

How to Move WordPress from Wamp to Live Server

Edit wp-config.php file

For the First field, enter the database name of your database. For the second field, enter the database username that you have added in to that database when creating the database and for the third field, enter the password which was give by you in the process of creating the database. Click save in order to save the changes you have made.

5. Changing the Site URL.

 

After that you will have to change the URL of the live site, in order to work the site correctly. To do that You need to edit the wp-config.php file again. Just Add these two lines of code just after the <?php line.

define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');

Just Replace your site’s URL with the example.com

6. Setting up the Site and finalizing it.

Now it’s the time to finalize the site and make it working fine just as your local site. for that Go to Settings >> Permalinks. Just update the permalink structure to a good effect. Next you need to fix the links of the images and other attachments. You can use the GO Live Update URLs to a good effect. Just install this plugin and activate it. After the activation, Go to Setttings >> Go Live and select all the types that you need to fix and click of the “fix” button. Done!!!

Done!!! The Tutorial on “How to Move WordPress from Wamp to Live Server” tutorial is finished and you need to follow all the steps to complete the Move of  your site. If you have any problems on this tutorial, Please drop us a comment on it. Finally, If you enjoyed and find this tutorial helpful, please like our FB Fan page and share this post. Cheers!!!

Comments

comments

About TricksLK Author

Harindu Perera is still a student who is doinng his A/Ls. He is interested in the field of Web Developing and designing. Also he is interested in developing sites with wordpress. He also likes blogging. He is the CEO and the Founder of TricksLK.com. You can contact him via his social profiles.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

Optimization WordPress Plugins & Solutions by W3 EDGE