I’ve migrated my website hosting from CPHosting to Integricity.
It’s not very difficult but I was very unsure since I’m doing it for the first time.
My old webhost(CPHosting) allows SSH Secure Shell but new webhost Integricity doesn’t allow it.
I will teach you how I did it.
First, I need to move all my files and folders to the new webhost.
I did that by creating a tarball.
I use PuTTy to login to my old webhost.

Once I’m in, I type
cd public_html
or it could be –
cd htdocs
depending on the structure of your webserver.
Hit Enter and you should be in your WWW root where your web pages reside.
If you want to be certain that you’re in the right folder, just type
ls
hit Enter, and you should be able to see all your web pages and folders listed. Once you’re certain you’re in the right directory / folder, you can proceed to create the backup file of website or tarball (compressed file) of your entire* website.
Now, you will want to type in a command that will collect all these files and folders, and compress them into one little file – a tarball.
Type
tar -cpzf filename.tar.gz *
Within seconds, it should be done and now you can either download this file through your regular browser by just pointing to it; i.e. http://www.raymond.cc/filename.tar.gz or ‘get’ it using a regular FTP program from your webserver just like you would any web page, image file or script off your webserver previously.
Since my new Webhost doesn’t allow SSH, I contacted them and asked them to download the tarball and extract it to my new webhost.
One more thing I need to move is the MySQL database.
Again, using PuTTy, log on to my old server with SSH and get to my WWW root, which is public_html.
Type the command below the dump the database into a file.
mysqldump –opt -u dbusername -p dbname > dbname.bak.dump
It should ask you for your MySQL user’s password.
After complete dumping the MySQL database into a file, I download it at http://www.raymond.cc/dbname.bak.dump
My new webhost has phpMyAdmin that use to administer MySQL database and I used that to restore the database.
Before restoring the database, I need to create the exact same database name and user for MySQL.
After doing that, on phpMyAdmin, click on the database name that I’ve just created on the left hand side and then click on SQL tab on top.

I will just need to click on the Browse… button to locate the dump file which I downloaded to my computer.
Click Go, wait for a few minutes to upload and restore the database and it’s done migrating!