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

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

Step::3 Click On Database option.

Step::4 Create Database

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

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

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

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.

Step::13 Click Go to proceed.

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

Visit our Blog for more details. You can also watch the video here.



  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to prevent Cross Site Scripting(XSS) injection attack in your Website?

Cross-site Scripting (XSS) is a client-side code injection attack. The attacker aims to execute...

How to protect PHP file execution in a specific directory?

Having some directories writeable by default makes your site vulnerable to hacker attacks....

How to Create backup & store them remotely in any Server using SCP?

Step::1 Login to cPanel and go to Backup Wizard in Files section.Step::2 Now click over Backup...

How to find all http in your website and replace them with https in cPanel?

Step::1 Login to your cPanel and open File ManagerStep::2 Next go inside public_html and create a...

How to secure ‘public html’?

Permissions can be very important when it comes to hosting your website. Permissions can allow...