Getting kaltura up and running on CentOS 5.5

I was recently faced with getting an installation of kaltura video server running on a fully up to date CentOS 5.5 server.  This sounded like a normal/easy LAMP install that I expected to have online with an hour or so, but it proved to be more difficult due to the requirements of the software.

When I ran the install script, I was told the following:

One or more prerequisites required to install Kaltura failed:PHP version should be >= (current version is 5.1.6)
MySQL version should be >= 5.1.33 (current version is 5.0.77)

This was problematic as the main CentOS repo did not have those versions, and trying to do a manual upgrade of the MySQL rpm’s from their website resulted in package conflicts.

Luckily that changed when I googled up this page on using the remi repository.

! ## Remi Dependency on CentOS and Red Hat (RHEL)
# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
! ## no longer needed in php 5.3, will cause dependency failures
# yum remove php-mhash
! ## now you can actually install the packages you need
# yum –enablerepo=remi,remi-test install mysql mysql-server memcached php-pecl-memcache

Now you should run

mysql_upgrade

to upgrade your tables for the latest 5.5 release and try to run the

php install.php

from within the kaltura installer again.

If you encounter an error when setting up the database, check the install log file in the install directory to see what the error is.

If it is similar to this:

09.02.2011 11:06:06 ERROR Executing command failed: ERROR 1064 (42000) at line 2: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘Type=MyISAM’ at line 26

Then you simply need to edit package/app/app/deployment/base/sql/02.schema_updates.sql and replace “Type=MyISAM” with “Engine=MyISAM” (the new standard in 5.5).

Leave a Reply

Your email address will not be published. Required fields are marked *