How to migrate my website step by step from localhost(wamp server) to live cPanel server?

How to migrate my website from localhost [Wamp server] to a live cPanel based server? [Important]

Steps to migrate website from localhost [Wamp server] to cPanel based server: [updated May 2019]

Step#1 You can simply copy the contents from your localhost (wamp) whatever is present inside www and upload the content directory into your live cPanel based server inside public_html.

Step#2 Go to PHP MyAdmin to create the database. Open localhost/PHPMyAdmin in your browser

Steps to migrate my website from localhost(wamp server) to live cPanel server
Steps to migrate my website from localhost(wamp server) to live cPanel server

Step#3 Click On the Database option.

Steps to migrate my website from localhost(wamp server) to live cPanel server
Steps to migrate my website from localhost(wamp server) to live cPanel server

Step#4 Create Database

Step#5 As soon you finished creating Database go to the Export option

Steps to migrate my website from localhost(wamp server) to live cPanel server| cheap linux hosting
Steps to migrate my website from localhost(wamp server) to live cPanel server

Step#6 Export your database by creating a SQL file

Step#7 Save the file on your Local PC

Step#8 Open the SQL file with any editor like Notepad++ and replace all occurrences of “localhost” with “www.YourDomainName.com” and Save the file.

Step#9 Login to your cPanel

Step#10 Go to PHP MyAdmin


Step#11 Click on the Import option

Steps to migrate my website from localhost(wamp server) to live cPanel server| cheap linux hosting
Steps to migrate my website from localhost(wamp server) to live cPanel server| Redserverhost

Step#12 Click on choose File option and browse for the .sql file on your computer and click Open

Steps to migrate my website from localhost(wamp server) to live cPanel server
Steps to migrate my website from localhost(wamp server) to live cPanel server

Step#13 After uploading the SQL file you will see several options underneath this page like defining the format of the file and the compatibility type to use. Everything is usually set to the default settings.

Steps to migrate my website from localhost(wamp server) to live cPanel server
Steps to migrate my website from localhost(wamp server) to live cPanel server


 Step#14 Click Go to proceed.


Hence you will get a message saying the import has been successful.

Hope this answer helped you.. for more queries and suggestions feel free to write or you can also comment below…

Scroll to Top