How to migrate my website from localhost(Xamp server) to live cPanel server?

How to migrate my website from localhost(Xamp server) to live cPanel server? [Important]

Steps to migrate my website from localhost(Xamp server) to live cPanel server?[updated May 2019]

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

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

steps to migrate your website from localhost xamp server to live cPanel server
steps to migrate your website from localhost xamp server to live cPanel server

Step#3 Click On Database option.

steps to migrate your website from localhost xamp server to live cPanel server
steps to migrate your website from localhost xamp server to live cPanel server

Step#4 Create Database

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

steps to migrate your website from localhost xamp server to live cPanel server| cheap linux hosting
steps to migrate your website from localhost xamp server to live cPanel server

Step#6 Export your database by creating a SQL file

Step#7 Save the file in your Local PC

Step#8 Then login to your cPanel

Step#9 Go to PHP MyAdmin


Step#10 Click on Import option

steps to migrate your website from localhost xamp server to live cPanel server| cheap linux hosting
steps to migrate your website from localhost xamp server to live cPanel server

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

steps to migrate your website from localhost xamp server to live cPanel server| cheap linux hosting
steps to migrate your website from localhost xamp server to live cPanel server

Step#12 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 your website from localhost xamp server to live cPanel server
steps to migrate your website from localhost xamp server to live cPanel server


 Step#13 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