Uptrend Hosting

A+ A A-
19
Dec

Switching to a new host can be a complicated process. Follow our steps to ensure that your move is smooth and painless.

  1. The first step is to join your new host. Make sure to NOT cancel with your old hosting provider, and do not tell them you will be canceling. Keep this a secret from your old host, or they could prematurely terminate your site and cause downtime.
  2. At this point, you should have hosting accounts with two hosting providers (the old and the new one). You will now migrate your entire site from the old host to the new one. This can be done by connecting to the old host's FTP and downloading all your files, and then by connecting to the new host's FTP and uploading all your files (maintain the same file and folder structure). If you choose to make Uptrend Hosting your new host, we may transfer your entire site over free of charge!
  3. After you have all your files on both hosting accounts, it is time to change your domain name's DNS. Your new host will provide you with the correct name servers (DNS). You may need to contact the new host to find out what DNS settings you will use for your domain name.

    DNS name servers usually looks like this (replace "yourhostname.com" with your host's actual domain name):
    ns1.yourhostname.com
    ns2.yourhostname.com

    Once you have the correct DNS, go to the company where you purchased your domain name to make the change. If you purchased your domain name from your host, you usually need to ask them to make the DNS changes for you. You can tell them something similar to, "Hello. My domain with you is _____.___ ; please, change my domain name's name servers to ns1._______.____ and ns2._______.____ ."

    We are more than happy to help you or even make the DNS changes for you.
  4. Once your DNS changes have been made, you will need to wait 48 hours (two days) before your site will load from the new host. During this 48 hour period, your DNS is propagating world wide and your site will be randomly loading from either the old host or the new host. Once the two days is complete, your site will only be loading from the new host.
  5. After the 48 hours have passed, your updated DNS will be fully functional. You will now contact your old host and cancel your hosting account with them. If you originally bought your domain name from the old host, do not cancel your domain registration.


If you completed all the above steps, you have successfully switched hosts with no downtime at all!

16
Nov

Before you start...

If you are a new UptrendHosting customer, or you are upgrading your UptrendHosting web hosting plan, then you may be eligible for our free content transfer service. Read more here.

If you are moving from a host where you used cPanel, you can perform a Full Backup and UptrendHosting will help you restore it. This will save you from needing any of the below steps.

Backup your Wordpress database using phpMyAdmin

First thing first, make a backup of your database using phpMyAdmin.   Once you have successfully logged into phpMyAdmin (cPanel -> MySQL -> phpMyAdmin) , click on the name of the database which contains your wordpress blog. Then click on Export in the main navigation area, within the export screen you must complete the following steps:
  • click on ’select all’ and ‘SQL’ from the Export menu
  • select ‘add Drop Table’, ‘add Auto_Increment value’ and ‘enclosure table and field names with blackquotes’ from the Structure menu
  • select ‘Complete inserts’ and ‘Use hexadecimal for binary files’ from Data
  • you can leave all the other values at their defaults

Once all those settings are selected you simply click on ’save as file’, this will download a filenamed wordpress.sql to your desktop. And that is that. You have successfully backed up your database.

If you don’t have PHPmyadmin installed on your hosting account, you can use mySQLDump from a SSH terminal.

Download/Upload all your Wordpress files using FTP.

You will need to download ALL your files from your old host and upload them to your new host.  This includes files from your themes folder and plugins folder. Make sure you also download any folders which were referenced outside of your blog folder. For example I use a seperate folder called ‘images’ which is located outside of ‘blog’. If I didn’t copy and upload this folder to my new host I would have a lot of broken links to images within my blogpost. This is not a pretty sight.

The FTP client I use is Filezilla. By default Filezilla does not display your .htaccess file, probably for security reasons but I’m not too sure. To ensure that your .htaccess file is included in your download you must click on ‘View’ and then enable ‘Show Hidden Files’. If you neglect to upload your .htaccess file then your permalinks will get screwed up. That is of course if you are using permalinks.

Please note that you should not take this oppurtunity to update to a newer version of Wordpress. Your database may not sync’ as a result. Complete your migration before you consider upgrading.

Edit wp-config.php and create a new Wordpress database.

Okay, so we are nearly there. You must now edit wp-config.php to include the database settings of your new database.

Once you have edited the file with your new database settings, upload it to the root of your blog folder.

So now everything is set, expect that your new database does not contain any database tables.

Import your Wordpress blog to your new Database.

You can use either phpMyAdmin to import your database or you can use BigDump.  BigDump is the preferred option if you have a large database (10mbs or more). There is a step by step guide on how to use BigDump on their website.

Once you have logged in, you can choose between two methods to complete the import. You can click on ‘SQL’ and run a query or you can use the ‘Import’ link to upload your wordpress.sql file into your database. I recommend using the former as the query can take some time and can sometimes crash your browser. Using the import feature seems to be a lot less strenuous on the browser.


My blog works, but is missing the CSS style. Or when I click any links, I am taken to my old site.

This is due to WordPress storing your domain name as a piece of data in its database. Here is the way UptrendHosting recommends to fix the problem.

  1. Go to yourblog.com/wp-admin/ and login.
  2. In the left hand menu, click Settings.
  3. Click General.
  4. Next to WordPress address (URL), enter the correct domain and path.
  5. Next to Blog address (URL), enter the correct domain and path (usually the exact same).
  6. Scroll all the way down and click the Save Changes button.
  7. Return to your blog; it is fixed!

I cannot get to myblog.com/wp-admin/ and login.

This is more technical, but works every time.

  1. Login to cPanel and click the phpMyAdmin icon.
  2. In the left hand menu, click the database name corresponding with your WordPress installation.
  3. In the same left hand menu, click the wp_options table name.
  4. Click the Browse tab in the top left corner.
  5. Look for the row with option_id = 2 and option_name = siteurl. Click the pencil icon in this row.
  6. Replace the existing URL with the correct domain and path. Click the Go button.
  7. Go to page 2 of the rows where you find option_id = 39 and option_name = home. Click the pencil icon in this row.
  8. Replace the existing URL with the correct domain and path. Click the Go button.
  9. Return to your blog; it is fixed!
Copyright 2012 © Uptrend Hosting. All rights reserved.