Utterly Boring dot com

What A Nightmare

Damn you LayeredTech for forcing me to move servers. While the transferring of data went smoothly, DNS issues kicked my butt. Then, the other thing I was worried about bit me in the butt: The new server is running PHP 5 and MySQL 5 while the old server was running PHP 4 and MySQL 4. While I did an informal audit of the sites I host and the software packages they ran, I couldn't really test out some of them that had custom code until I put them on a live PHP 5 install, so I just moved them over and gave them a whirl. Unfortunately, my day job site didn't like PHP 5 in some small but critical areas and required a few minor tweaks to get it working right. They were beyond my expertise so I had to found outside help to get it working, but things are working fine there now. I also had to update the church's site with a new version of Typo3 to make it all happy.

Then comments on this site broke. MovableType and the Perl implementation CentOS5 don't seem to play nice. I had similar issues when I setup Jack's site that I had with this one. I implemented a fix I found that involves changing bootstrap.pm. Early in the file, you'll see this:

sub BEGIN {
my ($dir, $orig_dir);
require File::Spec;
if (!($dir = $ENV{MT_HOME})) {
And that needs to be changed to this:
sub BEGIN {
$ENV{'MT_HOME'} = '/home/username/public_html/mt'; #<-- this line should be added
my ($dir, $orig_dir);
require File::Spec;
if (!($dir = $ENV{MT_HOME})) {
That gets things all working again (I'm mostly documenting that here if I run into this again, which I'm sure I will after I try to upgrade and forget to change the bootstrap.pm file beforehand). I did submit this to SixApart to see if there's a workaround that won't get bulldozed on upgrades. It's apparently a problem with File::Spec::rel2abs in my Perl install, so I'll have to look into that.

Update: Looked into it. Apparently File::Spec versions are vastly different in CentOS 4 than in CentOS 5. In 4, the version is 0.86 while in CentOS 5, it's 3.25. There are some skips in version numbers because of the author's combining of a couple projects, but considering that Movable Type isn't the only script having an issue, so I don't feel so bad knocking my head against the wall for this.

But things are hopefully all back to normal now. My servers are both much meatier than before, and this one has a full 100mbs connection to the 'net (last server had a 10mbs connection) and both have much more processor power than before (quad and dual core versus single core processors). I still have a couple sites to move, but it's mostly all there. I still have the old servers for a couple more weeks, so if anybody has a huge file(s) they want to share on there temporarily, e-mail me and I'll dump them there until the cancellation date.

If anybody notices any other weirdness, please email utterlyboring [at] gmail [dot] com.

Posted by Jake on 06/18/08 @ 02:05 PM
Posted in Geekdom, Jake | Permalink



What are you doing down here? Don't you have something better to do? Like Go Back To The Top of the page, or even see who created this site? This site is © 2001 - 2017 by the Utterly Boring folks at UtterlyBoring.com. Steal my content, as I probably did, too, just link to my site or the original site. Batteries not included. One size fits all. Not for off-road use. Not for internal use. Do not taunt Happy Fun Ball.