Cloud Migration… Moving a WordPress Site to Name.com

I have a number of developed properties, most hosted at a friends CoLo in San Diego. Since I began working for Rightside, I have been slowly migrating all of my domains over to my Name.com Unbelievable Hosting package. All but one…

My wife has an awesome recipe blog which gets, frankly, more traffic than all of my sites put together. Great food, awesome writing and great pictures (I take credit for those) all combine to a readership that is pretty solid. This was the last domain I planned to move over as it has more impact if there is down time.

Previously when I moved a domain over (like this one you are on right now), I created an Add-On domain in CPanel on Name.com, then did a WordPress export from the old site to the new Name.com site. This was dumb. Lots of issues, lots of data loss. When I decided to move over NomAppetit.com, I needed to be more careful. This article is about that move.

Note: This applies to any CPanel hosting, not just Name.com, but for the price, for unlimited bandwidth, email, disk space and lots of other reasons, I hope you will check out Name….

  1. The test run space
    1. In CPanel, choose “SubDomains” under the “Domain” heading.
    2. Enter a name for your subdomain. DON’T use the name you will use when you do the actual domain. (i.e. I used “na” as my subdomain for NomAppetit.com)
    3. For the domain to put this on, just choose your main hosting domain. We will be deleting the subdomain eventually anyway
    4. For the Document Root, put the name you will want the domain to live under. (I used nomappetit for NomAppetit.com)
    5. Click “Create”
  2. Getting The DB
    1. In your existing hosting panel (The one you are moving away from) Go to phpMyAdmin (or whatever tool you are using to backup a DB)
    2. Backup BOTH structure and data. Include User objects as well.
    3. Download the .SQL file to your local computer.
  3. Getting The Files
    1. In your existing hosting panel (The one you are moving away from) Go to the file manager.
    2. Select all files from the root of the WordPress installation and all subdirectories
    3. Download the files. (Often, they will be zipped or .tar.gz’d. This will be out of the scope of this article, but you will need to extract them on your local computer.)
    4. Alternately, you can simply use FTP to download all of the files to your local computer
  4. Getting Ready to Push the DB
    1. In CPanel in your Name.com account, Look for the Database section and click on MySQL Database Wizard.
    2. Create a DB name that you want to use for the new DB (WRITE THIS DOWN)
    3. Click “Next”
    4. Create a db Username and password. (WRITE THIS DOWN)
    5. Click “Create User”
    6. Select the checkbox for “All Privileges” and click “Next Step”
  5. Creating the database
    1. In the Database section of the main CPanel page, select “phpMyAdmin”
    2. Locate and select the DB we created in Step 4
    3. Click on the “Import” tab
    4. Click the “Choose File” button and locate the .SQL file you saved
    5. Click “Go”
  6. Pushing the Files
    1. We need to update the wp-config.php file. Open it locally in a text editor.
    2. Change DB_Name to the name you chose in step 4.2
    3. Change the DB_User to the user you chose in step 4.3
    4. Change the DB_Password to the user you chose in step 4.3
    5. Save the file
    6. Using an FTP client, connect to your hosting on Name.com
    7. upload the files to the subdirectory you specified in step 1.4
  7. Configuring DNS
    1. In the Name.com control panel, locate the domain name we are moving over
    2. Click on Nameservers.
    3. If the nameservers are not Name.com, select “Use Default Nameservers” and click “Apply”
    4. Click on the DNS Records tab on the left
    5. Create DNS records for *.yourdomainname.com and yourdomainname.com that point to the IP address of your main hosting domain. If you are unsure, look at the DNS records for your main name.com hosting domain and use those.
  8. Couple thoughts:
    1. Be sure to remove the files eventually from the other server. In the short term, to ensure you are getting files from Name.com and not your old hosting, just rename index.php on the old hosting and see if the domain still shows the site.
    2. Once everything is working, you can delete the subdomain we created in step 1.

That is it! After a short amount of time for DNS to update, your site should be running!

IF you have any questions or issues, feel free to hit me up on twitter at @RghtsideSean. Reach out!

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.