Oliver Erlewein on September 26th, 2009

As you might have noted yesterday my site went down. :-(

What had happened was that I had tried an apt update/upgrade (something like automatic updates on Windows) on my Ubuntu 8.10 server. It didn’t go quite swimmingly. Nothing new because my installation was a little wonky anyway. But as I restarted the machine it would not let me boot anymore. I was getting an immediate kernel panic. *shock*

So I did what I wanted to do a long time ago anyway (and was now forced to do) – upgrade my system. From a good friend I got an old 2.5″ 20GB HDD to replace my USB stick with that was running my web server. Not that the USB stick was a bad idea or anything but there’s the odd thing that is made easier by having a hard drive. I chose a 2.5″ model as I still am quite stingy when it comes to power use.

So I tried installing Ubuntu server 9.04. That failed due to whatever reason. So I installed Ubuntu server 9.10 Alpha 6. Very courageous here! …which went all fine.

It was nice to see that the USB stick was not all lost and could be read by the OS. So after installing some needed packages it was necessary to install my WordPress site (i.e. this site). Now that would be a challenge I thought. Not quite so….

  1. Copied the WordPress directory,
  2. changed the mySQL password in the wp-config.php file,
  3. copied the apache2 site config files,
  4. created the WordPress database I used for my site,
  5. imported the database from my weekly backup file via phpmyadmin
  6. and restarted apache2.

Voila, here is the site! Easy as. *phew* …. *PHEW*

So after the initial shock it took me less than 24hrs to recover my site. There’s still quite a bit of detail work left but that I can tackle at a slower pace. Impressed by both, Ubuntu and WordPress here. And of course my lucky stars that I could still read that USB stick. I think now it’s time for regular full backups of my web server!

Tags: , ,

Leave a Reply

You must be logged in to post a comment.