Laconica 0.5.0 Upgrade and Related Developments

Last night, I began testing Laconica 0.5.0 on microblog. It is an update from Laconica 0.4.4. I created a new tarball, laconica050.tar.gz. I initially had some problems with OpenID and found that there was a patch to the OpenID code that is in the laconicadepends.tar.gz, so I created a new file, laconicadepends01.tar.gz. This didn’t fix the problem, and subsequently I found that for some reason my 0.5.0 hadn’t been properly installed and on reinstalling that the problem went away, so the depends01 file may not be necessary.

Upgrade Steps

Make sure you keep a back up copy of your installation. Then, install laconica050 and laconicadepends01 into your laconica directory. Copy over your config.php file. You should note that there are a bunch of new options in the config.php, so you may want to take the options you set in your config.php and copy them into the config.php.sample file and save that as your new config.php file.

Copy over any theme you have created. Copy over the avatars that have been created.

The Database Update

The database has changed a lot from 0.4.4 and earlier. Instead of trying to come up with all the alter statements necessary, I took a script that Evan had written and generalized it to work in my environment.

#!/bin/bash

export DB=$1
export SCR=$2
export USER=$3
export PW=$4
export HOST=$5

mysqldump -u $USER --password=$PW -h $HOST -c -t --hex-blob $DB > $DB.sql
mysqladmin -u $USER --password=$PW -h $HOST -f drop $DB
mysqladmin -u $USER --password=$PW -h $HOST create $DB
mysql -u $USER --password=$PW -h $HOST $DB < $SCR
mysql -u $USER --password=$PW -h $HOST $DB < $DB.sql

It worked very nicely for me. However, just to be safe, I did take a backup copy before I ran the script, separate from the backup copy that gets created at the beginning of the script.

With all of this in place (once my 0.5.0 version was properly in place), everything started working nicely. New features include hashtags, which I’m a big fan of, and I’m glad to see incorporated into the site. I’ve gotten SMS working, at least for sending out notices. Incoming SMS probably won’t work well because of how email is configured on my shared host.

One other problem that I had, which I’m not sure if it was because of the failed initial upgrade, or something else, but the public timeline didn’t show any of the entries prior to the upgrade. This wasn’t a big concern for me, and for more active sites, most people would never notice.

I’m still having problems with people being able to remotely subscribe to my microblog. When I turn on database debugging, it works, but when debugging is off, it doesn’t work. Go figure.

Other Stuff

The next thing that I was thinking about was adding TwitterFeed like functionality. Twitterfeed checks RSS feeds and submits a summary to Twitter. To my surprise, Twitter Feed has been modified to support Laconica. What is even better is that it supports any server running Laconica, so, I’ve set it up to send the RSS feed from my blog not only to Twitter, but also to identi.ca as well as my personal Microblog.

Another very interesting development is the translation tool for laconi.ca. I haven’t played with that yet, so I don’t have any details.

So, after a few minor problems, the 0.5.0 upgrade went very nicely. I’m interested to see how it goes for any of the other Laconica sites. Please leave your notes in the comments.