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