Migrating your website from one host to another, GoDaddy to Bluehost in my case, may seem pretty daunting. Follow these steps and you’ll be up and running in no time.
- CHANGE THE DOMAIN NAMESERVER FROM GODADDY’s TO BLUEHOSTS’s
- Log on to your GoDaddy account
- Select Domains Tab
- Click the domain you wish to re-host
- Find Nameservers and click Manage
- Select Custom
- Select Enter custom nameservers
- Enter Bluehost nameservers NS1.BLUEHOST.COM and NS2.BLUEHOST.COM
- SET UP SSH CONNECTIONS TO OLD AND NEW WEB HOSTS
- Establish your ssh connection to your old host
- Start a linux command shell window
- Connect to the old host using the command…
ssh < old-host-username >@< old-host-ip-address >
- Establish an ssh connection to your new host
- Start a second linux command shell window
- Connect to the new host using the command…
ssh < new-host-username >@< new-host-ip-address >
- Establish your ssh connection to your old host
- ZIP UP THE WEBSITE YOU WISH TO MIGRATE USING GZIP
- In the ssh connection to the old host change the directory to the site root folder using the command…
cd < siteroot-folder >/ - Create the tar gzip archive using the command…
tar -czvf < sitename >.tar.gz ./< site-root-parent-folder >/< siteroot-folder >/
- In the ssh connection to the old host change the directory to the site root folder using the command…
- COPY THE ZIP FILE FROM THE OLD HOST SERVER TO THE NEW HOST SERVER USING SCP
- In the ssh connection to the new host, copy the site zip file into the temp folder using the command…
scp < old-host-username >@< old-host-ip-address >:~/< sitename >.tar.gz ~/tmp/
- In the ssh connection to the new host, copy the site zip file into the temp folder using the command…
- EXPAND THE THE ZIP FILE
- In the ssh session with the new host server, expand the zip file with the following command…
tar -ztvf ~/tmp/wpm.tar.gz
This will create a new folder containing the folders and files of your entire website ~/tmp/< sitename >/
- In the ssh session with the new host server, expand the zip file with the following command…
- MOVE THE SITE FOLDER TO THE NEW SITE ROOT LOCATION ON THE NEW HOST SERVER
- In the ssh session with the new host server, relocate the website folder to the site root location using the command…
mv sitename/ ~/public-html/
- In the ssh session with the new host server, relocate the website folder to the site root location using the command…
- ASSIGN THE SITE DOMAIN TO NEW BLUEHOST ACCOUNT
- Enter details of domain
- Log in to your Bluehost web account via http://www.bluehost.com/cgi-bin/cplogin
- Click “Hosting” tab
- Click “Domain Manager”
- Click “Assign a domain to your cPanel account”
- Under Step 1: Enter Domain, select “Use a domain that is not already associated with your account.”
- Enter the domain name
- Verify Ownership of the domain
- Since you udated the nameservers for the domain to bluehost servers you should see the message…
“Ownership verified. The nameservers for the domain “itfinesse.com” are currently set to NS1.BLUEHOST.COM, NS2.BLUEHOST.COM.”
- Since you udated the nameservers for the domain to bluehost servers you should see the message…
- Choose Addon Domain
- Under “Step 3: Choose Addon vs. Parked”, Select Addon Domain
- Choose Addon Directory and Sub-domain
- Just accept the defaults
- Confirm
- Confirm by clicking Assign this domain and the Domain Manager, Domain List page will appear with the new domain listed as an addon.
- Enter details of domain
Note: In windows you need puTTy to get an ssh connection