Written by gerard on Tuesday 13 May 2008
I’m throwing in the towel with Dreamhost. The downtime problems that started in the summer and seem to be intermittently reappearing have caused me to completely lose hope in DreamHost.
I signed up for a Media Temple Grid Server (affiliate link) account a few weeks back and have been gradually porting my blogs across one-by-one. With other people following suit, I thought I’d share my notes for moving a WordPress install over to Media Temple.
Naturally, this guide assumes that you have existing blogs on Dreamhost and a Grid Server account with Media Temple!
I’m running a WordPress 2.0.x install with a handful of plugins and a theme I designed myself. I’ll be backing up the WordPress database and files in advance of the move and shifting them to the new server.
I also have a series of email addresses configured at Dreamhost, so I’ll want to have the equivalent addresses set up at Media Temple, ready for when the domain changes over.
I sensibly registered my domains away from 1&1 Internet, which means I don’t have the hassle of registration transfers or transfer fees! Hooray for me! When I’ve got my data migrated, I’ll simply redirect the DNS to Media Temple et voila - minimal interruption!
The first step is to make sure we’ve got all our data ready to move.
WordPress Files: Fire up your FTP program of choice and download your entire WordPress wp-content directory. This is where all of your custom themes, image uploads and plugins reside, so take no chances. Download it separately.
Once I downloaded the wp-content folder, I created a backup folder on my hard disk and downloaded the entire WordPress installation to it. I was glad I did, because there were some miscellaneous directories that I might have otherwise missed!
WordPress Database: Since I run the 2.0.x version of WordPress, I have the luxury of Scott Merrill’s Database Backup plugin.
Simply browse to your site’s wp-admin folder and select Manage, then Backup. The standard WordPress database tables will be backed up by default, but you should check the additional tables for backup, as these are usually related to some of your plugins.
Set the backup plugin to download the file and then click Backup. Wait a few minutes and you’ll be prompted to save the file. Save it somewhere safe: you’ll need it later!
A word of warning: tables for stats packages can get pretty big and cause the backup to fail. If you find this happening, consider leaving out those tables and reinstalling that plugin from scratch after you’ve moved. It means starting your stats again, but might be easier for the job in hand. Part of my migration plan is to install Google Analytics anyway, so it wasn’t a tough choice.
OK, so we’re all backed up. Don’t close your Dreamhost account just yet! If all else goes wrong, you might need to reactivate it! Let’s get things over on Media Temple ready for the move:
Now, lets set up the database:
Now to upload our WordPress installation. Having the files in place means the blog will be ready to rock once you transfer the domain across. Remember to modify the wp-config.php file in your WordPress root folder to the settings of the new database!
wp-config.php accordingly./domains/yourdomain/html and upload everything. Take the time to ensure everything transferred successfully!Now, let’s not forget those email addresses! We need to set those accounts up in advance to allow email to be delivered to them when the transfer takes place.
Luckily, my I forward all my email to my Gmail account, so this should be easy!
Now, because I set up forwarding, this worked very well for me. If you need a dedicated mailbox, use the Email Users facility instead of aliases.
Alright. Take a deep breath. Here we go.
We’re going to modify the DNS of the domain to point to Media Temple. First, I’ll show you how to do this under 1&1 (my method) and then under Dreamhost. Here’s 1&1:
ns1.mediatemple.net and ns2.mediatemple.net respectively and save your changes.And under Dreamhost:
ns1.mediatemple.net and ns1.mediatemple.net in the first two boxes and ensure the other nameserver entries are blank.There are a couple of things to test when you’re porting WordPress to a new server. Here are a few:
wp-admin and then Options, Permalinks. Your permalink choice should be intact from before, so just click the Update Permalink Structure button and things should get sorted. The reason for this is probably because my FTP program didn’t backup the .htaccess file. Following the procedure above should recreate the .htaccess file as before.Final thought: After doing another server move this weekend, I’d advise setting up the DNS zone on Media Temple at least a day in advance for it to be ready. So, it might be better to do that part of the job before you start taking your backups and everything else.
Comments
Oomph, that's like jumping
Congrats on the move to MT
Congrats on the move to MT :)
Even I moved from Dreamhost to MediaTemple. The hosting move operations were similar to your except I did the following
1. Directly moved the wordpress db and wordpress core files from Dreamhost to Media Temple using SCP. You can safely skip the FTP download
2. I modified the etc hosts to route my domain to the new IP (allotted by Media Temple) and henced tested out the domain completely before modifying the DNS records in the registrar
How is your expirience going
How is your expirience going so far?
-http://www.hostdisciple.com
Did you have a problem
Did you have a problem getting your %postname% pretty URLs setup? I'm having trouble getting wordpress to write the correct htaccess setup....it seems....
Yeah, that was a small issue
Yeah, that was a small issue if I remember. What I did was went into WordPress admin and rebuilt the permalinks, and that sorted everything out. The database retains the right information from before anyway, so just saving the settings forces WP to rebuild the permalinks. After that, it just worked.
I'm not sure the latest versions of WordPress work on a .htaccess. Isn't it all database driven now? If it is htaccess, then check that the file is writable.
I love media temple. It's the
I love media temple. It's the best. I am sure it's a lack of understanding on my part, but I'm trying to get my WordPress, Drupal, and MovableType installations to send email. I'm tyring to do it through sendmail, but isn't working. Can you give some insight on this?