admin

Now Running on Amazon EC2

This blog is now running in the Amazon Elastic Compute Cloud (EC2). I hope that nobody notices any difference.

Setting Up Drupal 6 on Ubuntu 10.10 on EC2

For several years, I've been using pretty-cheap web hosting services for my blog, my corporate website, and other webby things. However, I'm pretty sure that it would be even cheaper to use Amazon EC2, especially as they now offer free usage for a year. I also like the ease with which one can scale EC2 servers up or down, and run temporary instances for a few cents per hour.

Of course, this means I have to figure out how to move everything from where it is to a new EC2 instance. Most of the stuff I care about is managed in Drupal, so step one is figuring out how to set up Drupal on an EC2 host.

I decided to go with Ubuntu as my OS, because I'm a long-time Debian user and my brushes with Ubuntu have been positive. A little research showed that they had an easy-to-install drupal6 package and a few other packages that I plan to use in my plans for world conquest.

But no matter how easy/straightforward things look, they are always a little bit complicated. Here are my notes for setting things up, which may be helpful to others, and will probably be helpful to me whenever I end up redoing this.

I assume the reader has basic knowledge of how to connect to servers via SSH, knows a little bit about setting up Apache and Drupal, and is comfortable using a text editor to modify configuration files.

Migrating Blog Posts

I looked around for an easy way to migrate all the content from my old blog to this new one. While some automated solutions for moving from Blogger to Drupal are available, I decided it would be better to do it all by hand. This gives me a chance to pick only the Best of Undefined Value, and to do some editing.

It's not really that hard. Just click the edit button for the old post, select all, copy, click my "Create Story" bookmark, paste.

The only tedious part is setting the date. The old site has dates in MM/DD/YYYY HH:MM:SS AM/PM format, whereas Drupal wants YYYY-MM-DD HH:MM:SS, so I can't just copy and paste.

Luckily, there's not much good stuff on the old site, so I hope to have the Monthly archive block on the left filled in a few weeks.

Syndicate content