Categories
Uncategorized

Move Hosting from GoDaddy to Bluehost

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.

  1. CHANGE THE DOMAIN NAMESERVER FROM GODADDY’s TO BLUEHOSTS’s
    1. Log on to your GoDaddy account
    2. Select Domains Tab
    3. Click the domain you wish to re-host
    4. Find Nameservers and click Manage
    5. Select Custom
    6. Select Enter custom nameservers
    7. Enter Bluehost nameservers NS1.BLUEHOST.COM and NS2.BLUEHOST.COM
  2. SET UP SSH CONNECTIONS TO OLD AND NEW WEB HOSTS
    1. 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 >
    2. 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 >
  3. Note: In windows you need puTTy to get an ssh connection

  4. ZIP UP THE WEBSITE YOU WISH TO MIGRATE USING GZIP
    1. In the ssh connection to the old host change the directory to the site root folder using the command…
      cd < siteroot-folder >/
    2. Create the tar gzip archive using the command…
      tar -czvf < sitename >.tar.gz ./< site-root-parent-folder >/< siteroot-folder >/
  5. COPY THE ZIP FILE FROM THE OLD HOST SERVER TO THE NEW HOST SERVER USING SCP
    1. 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/
  6. EXPAND THE THE ZIP FILE
    1. In the ssh session with the new host server, expand the zip file with the following command…
      tar -ztvf ~/tmp/wpm.tar.gz
    2. This will create a new folder containing the folders and files of your entire website ~/tmp/< sitename >/

  7. MOVE THE SITE FOLDER TO THE NEW SITE ROOT LOCATION ON THE NEW HOST SERVER
    1. 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/
  8. ASSIGN THE SITE DOMAIN TO NEW BLUEHOST ACCOUNT
    1. 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
    2. 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.”
    3. Choose Addon Domain
      • Under “Step 3: Choose Addon vs. Parked”, Select Addon Domain
    4. Choose Addon Directory and Sub-domain
      • Just accept the defaults
    5. Confirm
      • Confirm by clicking Assign this domain and the Domain Manager, Domain List page will appear with the new domain listed as an addon.

Leave a Reply

Your email address will not be published. Required fields are marked *