How to install Kaltura in CentOS

How to install Kaltura? Kaltura is the world’s first Open Source Online Video Platform, providing both enterprise level commercial software and services, fully supported and maintained by Kaltura, as well as free open-source community supported solutions, for video publishing, management, syndication and monetization.

Kaltura offering different deployment options according to one’s necessity. The various deployment options are as follows as

  • Kaltura SaaS Edition
  • Kaltura On-Prem Edition
  • Kaltura Community Edition
  • Kaltura Cloud Edition

Kaltura provides different services like Streaming, Transcoding, Advertising, GeoIP, Syndication, Distribution, Security, Monitoring and more. You can easily integrate Kaltura with different Content Management Systems and Learning Management Systems like WordPress, Joomla, Drupal, Moodle, Sakai, Blackboard, Microsoft Sharepoint.

Now let me explain about how to install kaltura in CentOS Here i chose community edition for installtion. Before going to install Kaltura CE 5 you need to satisfy the prerequisites of Hardware and Software Requirements.


Hardware Specifications

The Hardware requirements should vary according to the expected usage estimations. The minimum requirements to install Kaltura is as follow as

  • 1 GB RAM
  • 2GHz + Dual Core Processor (preferably Multi-Core Intel based)
  • 5 GB Free Hard disk Space [ It depends upon the usage, but 5 GB is enough for the installation ]

Software Specifications

  • Web Server ( Apache )
  • Database Server ( MySQL )
  • Mail Server ( SMTP / Postfix )
  • Application Packages ( Java, PHP )
  • Monitoring ( Xymon – This is optional)

Before going to start installation, just update your repository

yum update

You need to install the following basic required packages in order to continue the installation

yum install vim gcc make rsync

Apache Server Installation

yum install httpd httpd-devel

Open the apache configuration file and enable the modules and the configuration file should be like this

vim /etc/httpd/conf/httpd.conf
LoadModule rewrite_module modules/
LoadModule headers_module modules/
LoadModule expires_module modules/
LoadModule filter_module modules/
LoadModule deflate_module modules/
LoadModule env_module modules/
LoadModule proxy_module modules/
save and quit the file

You need to enable file_cache module, But unfortunately there is no apache file_cache package in the CentOS default repository. So you need to compile it from source

Download the same version of apache source code

cd apache-2.2.15-src/modules/cache/
apxs -i -a -c mod_file_cache.c

It will automatically enable the file_cache module in your httpd.conf

cat /etc/httpd/conf/httpd.conf

LoadModule file_cache_module  /usr/lib64/httpd/modules/

Now start the apache server by using the init scripts

/etc/init.d/httpd start

PHP Installation

Kaltura requires some additional php extensions, so you need to install those extensions too. Run the following command  to install php, php-cli and the additional extensions

yum install php php-cli php-devel php-gd php-mbstring php-xml php-pecl-memcache.x86_64 php-pecl-memcached.x86_64 php-mysql php-pecl-apc php-bcmath

Its always wise to create a phpinfo file to check the LAMP Server information

vim /var/www/html/phpinfo.php

Now open the /etc/php.ini file and enable the request_option with the value ” CGP ”

vim /etc/php.ini
request_order = "CGP"

Change the date.timezone values to your timezone value

date.timezone = Asia/Delhi
date.default_latitude = 28.40
date.default_longitude = 77.13

Note : All the date.timezone information are avail at . Please check it for your timezone values

MySQL Installation

yum install mysql mysql-server mysql-devel

Set MySQL password

/usr/bin/mysqladmin -u root password 'kaltura'

You can login mysql by using the following command

mysql -u root -p

You need to set mysql default character to UTF-8 and also add the following lines in it

lower_case_table_names = 1
thread_stack = 262144
open_files_limit = 20000

Open my.cnf file

vim /etc/my.cnf
# Disabling symbolic-links is recommended to prevent assorted security risks
character-set-server = utf8
lower_case_table_names = 1
thread_stack = 262144
open_files_limit = 20000


default-character-set = utf8
save and quit the file.

Curl Installation

Kaltura requires curl, run the following command to install curl and its development packages

yum install libcurl-devel perl-WWW-Curl python-pycurl curl.x86_64 libcurl

Memcached Installation

yum install memcached libmemcached libmemcached-devel php-pecl-memcache python-memcached.noarch perl-Cache-Memcached.noarch

ImageMagick Installation

yum install ImageMagick-c++ ImageMagick-c++-devel ImageMagick-devel ImageMagick-perl ImageMagick autotrace

Kaltura requires some additional 32 bit packages in 64 bit host

yum install zlib.i686 glibc.i686 ncurses-libs freetype bzip2-libs

Java Runtime Environment Installation

mv jre-7u5-linux-x64.rpm\?AuthParam\=1341060304_96e260b78fd3b2a30f05f2353152170d jre-7u5-linux-x64.rpm
rpm -ivh jre-7u5-linux-x64.rpm

Pentaho data integration

The pentaho data integration package (version 3.2) is required for the analytics module. It should be downloaded and extracted to the/usr/local/pentaho/pdi directory

Create the /usr/local/pentaho/ directory.

mkdir /usr/local/pentaho/

Change to the/usr/local/pentaho/directory.

cd /usr/local/pentaho/

Download the pentaho data-integration package.


Extract the pentaho data-integration package.

tar xvfz pdi-ce-3.2.0-stable.tar.gz -C /usr/local/pentaho

Rename the data-integration root directory into pdi.

mv data-integration pdi

Mail Server

Either you can install postfix or sendmail

yum install postfix

Xymon – Monitoring Tool

Download Xymon from sourceforge


Xymon requires rrdtools and pcre. So install those packages before to proceed

yum install rrdtool rrdtool-devel rrdtool-tcl rrdtool-ruby rrdtool-python rrdtool-php rrdtool-perl pcre pcre-static pcre-devel mingw32-pcre.noarch

After completing this installation start the xymon installation. You can install Xymon by simple steps

make install

During the installation it will prompt you many queries, give the proper answer else the installation process will exit and dont forget to disable the selinux

Disable SELinux

vim /etc/sysconfig/selinux
selinux = disabled

Now fireup your browser to and download Kaltura CE 5 Eagle

tar -xzvf kalturaCE_v5.0.0.tgz
cd kalturaCE_v5.0.0

Run the php installation scripts

php install.php

Thank you for installing Kaltura Video Platform – Community Edition
In order to improve Kaltura Community Edition, we would like your permission to send system data to Kaltura.This information will be used exclusively for improving our software and our service quality. I agree (Y/n)> y

If you wish, please provide your email address so that we can offer you future assistance (leave empty to pass)>

Please provide the following information:

The following apachectl script has been detected: /usr/sbin/apachectl. Do you want to use this script to run your Kaltura application? Leave empty to use or provide a pathname to an alternative apachectl script on your server.> y

The following PHP binary has been detected: /usr/bin/php. Do you want to use this script to run your Kaltura application? Leave empty to use or provide a pathname to an alternative PHP binary on your server.> y

Full target directory path for Kaltura application (leave empty for /opt/kaltura)>

Please enter the domain name/virtual hostname that will be used for the Kaltura server (without http://)>

Your primary system administrator email address>

The password you want to set for your primary administrator> kaltura

Database host (leave empty for ‘localhost’)>

Database port (leave empty for ‘3306’)>

Database username (with create & write privileges)> root

Database password (leave empty for no password)> kaltura

The URL to your xymon/hobbit monitoring location. Xymon is an optional installation. Leave empty to set manually laterExamples:>

Verifing prerequisites

Checking for leftovers from a previous installation

Installation is now ready to begin. Start installation now? (Y/n)> y

Copying application files to /opt/kalturacurrent working dir is /usr/local/src/kalturaCE_v5.0.0

Copying binaries for linux 64bitReplacing configuration tokens in files

Changing permissions of directories and files

Creating and initializing ‘kaltura’ database

Creating and initializing ‘kaltura_sphinx_log’ database

Creating data warehouse

Creating Dynamic Enums

Configure sphinx

Populate sphinx tables

Changing permissions of directories and files

Creating system symbolic links

Deploying uiconfs in order to configure the application

Creating the uninstaller

Running the generate script

Running the batch manager

Running the sphinx search deamon

Executing sphinx dameon

Executing in background nohup /opt/kaltura/app/plugins/sphinx_search/scripts/

Executing in background chkconfig on

Changing permissions of directories and files

postdrop: warning: unable to look up public/pickup: No such file or directory

Post installation email cannot be sent

Installation Completed Successfully.

Your Kaltura Admin Console credentials:

System Admin user:

System Admin password: kaltura

Please keep this information for future use.

To start using Kaltura, please complete the following steps:

1. Add the following line to your /etc/hosts file:

2. Add the following line to your Apache configurations file (Usually called httpd.conf or apache2.conf): Include /opt/kaltura/app/configurations/apache/my_kaltura.conf

3. Restart apache

4. Browse to your Kaltura start page at:

Open your httpd.conf file and add the following line in the appropriate section and restart the apache server

Include /opt/kaltura/app/configurations/apache/my_kaltura.conf

Restart Apache server

/etc/init.d/httpd restart

Now fireup your browser with you will get Kaltura page in your screen as shown below


Happy Streaming with Kaltura 🙂

Leave a Comment

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