Upgrade to Typo 4

Posted by paul Wed, 26 Jul 2006 08:58:00 GMT

I have upgraded my blog to Typo version 4 and it went mostly seamlessly.

The box that hosts this blog is running plesk which wasn’t a problem.

I tried just installing the new version of typo over the old 2.6 version and while this appeared to work it caused some problems, notably with the migrations.

In the end I deleted my old typo install and ran these commands:

This box is running Centos 4 . I had sqlite installed but not the header files. These are required to get the sqlite gem files to install which are required by typo.

yum install sqlite-devel

Install the typo gem:

gem install typo

Install typo in my webroot:

 typo install /var/www/PATH/httpdocs

The next command should have changed the configuration from mongrel and sqlite to apache and mysql but it didn’t work for me for some reason:

typo config /var/www/PATH/httpdocs web-server=external database=mysql

I had to manually change the settings in database.yml and I also had to create a .htaccess file in the public folder to get fastcgi working.

Then

rake migrate
to update the database tables.

I have moved the blog a few times over the last year or so and along the way various things got broken, so it is nice to have everything working again.