« St George's Day | Main | Gigs 2008 (More) »

Wednesday 04 June 2008

Movable Type Open Source 4.1

After what seems like forever, I have finally managed to get Movable Type OS 4.1 installed and running perfectly on my Slicehost slice.

It has taken me a few months to get to this stage, mainly because I'm not very good with Linux - Ubuntu in particular. Lots of trial and error was the order of the day for sure. Thankfully it is very easy to start again if you mess up, you just need to rebuild your slice and the slate is wiped clean. I lost count of the times I rebuilt my slice!

I thought it would be an excellent idea if I documented every configuration change and command I performed each time, so I would be able to get back to where I was before rebuilding but also just before I screwed up. This made it much easier to work out what I was doing wrong. A big thank you to Google Docs!!

I started out using Lighttpd as my web server, but I kept having problems with FastCGI, so in the end I decided to dump it for Apache. Sure it's a heavyweight and uses more resources, but I understand it more!

I also had a few problems getting some of the required Perl modules installed through CPAN, but I eventually compiled them manually and things went more smoothly.

When it came to upgrading my old blog from 3.36 to 4.1 I originally just overwrote the old files with the new ones, this was not a good idea - mainly because it didn't bloomin' work! After I deleted the old files and only used the new ones, it worked!

I also had some major problems getting comments to work. My templates are highly modified, and so I had to update a few areas to support 4.1 properly, and my AJAX-ified comments really didn't! I also had an issue with accepting TypeKey authenticated comments but that I found to be an problem with ME using MY TypeKey account - apparently I can't do that any longer and just get "Name and email address are required". Not the most helpful of error messages. Once I tried it with a totally unrelated TypeKey account it worked.

I fixed my AJAX comments by updating Prototype and Scriptaculous - not sure why I had to, I just did!!

While testing posting comments I found that it was taking ages to actually post one. Using the excellent Temper plugin by Timothy Appnel, which stands for TEMPlate profilER, I discovered that it was the Google Sitemap and Archive Index templates that were causing trouble - both taking almost 25 seconds to rebuild. I have disabled the Sitemap for the moment, and I decided to change the Archive Index around a bit. Instead of showing a link to every entry I've posted, I'm now showing just the last 6 months, and then links to the monthly archives. This has reduced the build time from around 22 seconds to a much more reasonable 1-2 seconds!

I believe I have squashed every bug I've come across in the migration process, and I am happy to replace my old blog with my new one - not that much will have changed from the outside!

There are still a few little things here and there I need to address (installing SendMail is one), but they're on the back-end and nothing for anyone else to worry about.

So welcome to Movable Type Open Source 4.1 and goodbye Movable Type 3.36.

Posted in Movable Type at 11:44 | Edit Entry

Comments

Neil Turner

Glad to hear it went well, but Movable Type 4.2 is only a couple of weeks away :) .

Will have to look into Temper as rebuilding templates is a major sticking point on my MT installation.

quack

Hey Neil!

Now that I've gotten myself sorted on 4.1, I hoping upgrading to 4.2 will be a lot easier than it was for me to go from 3.36 to 4.1.

There are some exciting new features coming in 4.2 I'm rather looking forward to.

Temper is a pretty awesome plugin, I really don't know what I would've done without it.

Comment by: quack Author Profile Page | 14:11 04/06/08
Neil Turner

Temper really helped - had some templates that were really hogging my rebuilds. Now MT is much smoother - thanks for the heads-up!

quack

You're most welcome Neil!

Comment by: quack Author Profile Page | 23:18 04/06/08
quack

Excellent, now I have Postfix working my Movable Type notifications can be sent!

Comment by: quack Author Profile Page | 23:47 04/06/08
quack

I discovered yesterday that I didn't actually have an email address associated with my TypeKey account in the database, so I changed that.

Now if I try to comment using it, it allows it, but the comment appears as if it's been posted from my Movable Type blog account. Very weird!

Comment by: quack Author Profile Page | 14:29 05/06/08

Post a comment

(If you haven't left a comment here before, you may need to be approved before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

(required)

(required, never made public)





HTML is enabled, you may use only the tags shown below.

quack - © 2002-2008
Recent Entries
Search
Archives

Plurk
Last.fm
Links
Creative Commons License - BY NC SA   Gravatar Friendly Site
Six Apart Professional Network   No WWW
Get Firefox   We're Not Afraid! Join the Electronic Frontier Foundation today: Defending Freedom in the Digital World.   NO2ID
Support the Open Rights Group