You are on page 1of 7

Kultra Ubuntu Install

Created by: Shawn Peters

Install basic Ubuntu server install. I used Ubuntu Server v10.10 x64.

Fisrt update repositories:

sudo apt-get update

Install nano (terminal based text editor) and wget (file downloader):
sudo apt-get install nano wget

Install Apache2 web server:

sudo apt-get install apache2

Enable Apache mods and then restart Apache2: (rewrite, headers, expires, filter, deflate, file_cache, env, proxy)
sudo a2enmod rewrite headers expires filter deflate file_cache env proxy sudo /etc/init.d/apache2 restart

Install PHP5:
sudo apt-get install libapache2-mod-php5

Install additional PHP packages (case Sensitive):

sudo apt-get install php5-cli php5-mysql php5-gd php5-xsl php5-curl php5-Gd php5-Memcache php5-Exif php5-ftp php5-iconv php5-json php5-Session php5-apc php5-spl php5-DOM php5-SimpleXML php5-xml php5-imap php5-ctype

** Verify that the following settings within the php.ini file on each server (for both php and php-

cli): - For PHP 5.3: Verify that request_order parameter includes C, G and P (Default Value: "CGP") - For PHP 5.2: Verify that variables_order parameter in php.ini includes C, G and P
sudo nano /etc/php5/apache2/php.ini sudo nano /etc/php5/cli/php.ini

Install the MySQL database server:

sudo apt-get install mysql-server

You will be prompted to provide a root password for MySQL. Make a note of this password for later!

The following settings should be added to the my.cnf file

lower_case_table_names = 1 (create new line entry) thread_stack = 262144 (previously exists)

MySQL should be restarted after this adjustment is made

sudo nano /etc/mysql/my.cnf sudo /etc/init.d/mysql reload

Install CURL:
sudo apt-get install php5-curl suco apt-get install curl libcurl3 libcurl4-dev

After it finish open php.ini file and add this command: in the Dynamic Extensions secion.
sudo nano /etc/php5/apache2/php.ini sudo /etc/init.d/apache2 restart

To Test CURL install 1. Create a file in your web server (in Ubuntu it would be in /var/www folder), name it info.php 2. Open that file and type this command:
<?php phpinfo(); ?>

3. Save that file 4. Open your favorite browser and open that file (ex: http://localhost/info.php) 5. Now you will see the Information about your PHP installation 6. Search for Curl, and if you cannot find it, it mean your php doesnt have curl installed.

Install Memcached:

sudo apt-get install php5-memcache sudo apt-get install memcached

edit the file: /etc/php5/conf.d/memcache.ini, uncomment the line: ; (By removing the ";" from the start) & restart apache
sudo nano /etc/php5/conf.d/memcache.ini sudo /etc/init.d/apache2 restart

32-Bit packages required: Ubuntu 64-bit: ia32-libs, lib32asound2, lib32gcc1, lib32ncurses5, lib32stdc++6, lib32z1, libc6i386 (note: lib32z1 zed One)
sudo apt-get install ia32-libs lib32asound2 lib32gccl lib32ncurses5 lib32stdc++6 lib32z1 libc6-i386

JRE 1.6.x Required for the video analytics module

sudo apt-get install openjdk-6-jre sudo update-alternatives --config java java -version

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

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

cd /usr/local/pentaho/

3. Download the pentaho data-integration package

sudo wget

4. Extract the pentaho data-integration package

sudo tar xvfz pdi-ce-3.2.0-stable.tar.gz -C /usr/local/pentaho Note: I had to rename the file from download >sudo mv download pdi-ce-3.2.0-stable.tar.gz

5. Rename the data-integration root directory into pdi

sudo mv data-integration pdi

Mail server Required for managing outgoing emails as part of the kaltura platform workflow. Suggested packages: Sendmail, postfix Install EXIM [more details at:]
apt-get install exim4 mailutils [or exim4-daemon-light]

Configure EXIM
sudo dpkg-reconfigure exim4-config >Select Mail sent by smarthost: received via SMTP or fetchmail >System Mail Name: <> >IP-Address to listen on: >Other destinations: <> >Machines to relay: (leave blank) >IP address or host: <> >Hide local mail: no >DNS-Quires: no >Delivery Method: mbox >Small Files: no

Setup the SMTP outgoing account & restart EXIM

sudo nano /etc/exim4/passwd.client

Add the following line: [note the double :]

sudo update-exim4.conf sudo /etc/init.d/exim4 restart

To send a test email type:

sudo echo Testing Email Body | mail s SubjectTitle

Xymon/Hobbit 4.2.3 (optional)

This is an open source system monitoring package required for the Kaltura admin console's outof-the-box monitoring dashboard and alert system.

For installing xymon on Ubuntu 10.04 please refer to the installation instructions at

For further information go to

Domain name/virtual host name set within HOSTS file. (Can be done before/after installation) The domain name (or virtual hostname) you use for the Kaltura CE installation should be set within the /etc/hosts file as follows:

You are directed to make this change at the end of the installation script. This entry is needed so that Kaltura internal API client applications (e.g. the admin console application and the kaltura batch application) can be directed to the relevant Kaltura web services according to their internal 'server url' configuration.
sudo nano /etc/hosts


When all prerequisites are properly set on your server, follow the following steps for installing the Kaltura CE:
1. Create a temp folder to extract Kaltura
cd /home/<username>/ mkdir temp 2. Extract the Kaltura CE package to the temp dir sudo tar xvf kalturaCE_v3.0.0.0.tgz cd temp/

3. Change to a root user 4. From the base directory of your extracted kaltura CE package run the "php install.php" command.
sudo php install.php

5. Follow installation instructions and provide the required information. When installation completes, follow the post-installation instructions below

Send Information: n Apache Path: (leave empty) PHP Binary: (leave empty) Target Location for install: (leave empty) [default /opt/kaltura] Enter Hostname: Primary System Admin Email: Admin Password: ***** Database Host: (leave empty) Database port: (leave empty) Database Username: root Database Password: *** (password you created earlier) URL for Monitoring: (leave empty) ** install will run through error checking now and report any errors to be corrected ** Install is now ready, Start Installation: y

6. At the end of a successful installation you should be prompted with your login credentials to the Kaltura Administration Console (as provided by you during installation). You will need these login credentials to start working with the Kaltura CE. Assuming your mail server is up and running during installation you will receive these credentials to your mail box as well. Post Installation Configuration

You made need to disable to server firewall. To do this type the command:
sudo ufw disable

Upon successfully completing installation, do the following:


Open your apache configuration file for editing add the following line to Include module configuration section:
Include /opt/kaltura/app/configurations/apache/my_kaltura.conf sudo nano /etc/apache2/apache2.conf

2. Restart your apache server

sudo /etc/init.d/apache2 restart

**This is the last step I did, and it seems to work. 3. Verify that the LAMP services are activated on system startup 4. Verify that memcached is activated on system startup 5. Verify that Kalturas services are activated on system startup: /{YOUR_KALTURA_BASE_ DIR}/app/scripts/ start /{YOUR_KALTURA_BASE_ DIR}/app/scripts/ start 6. verify that system logrotate script (set in daily crontab in /etc/crontab), is set to run before Kaltura's daily dwh scripts. Kaltura's dwh scheduled daily scripts are:

/{YOUR_KALTURA_BASE_ DIR}/dwh/etlsource/execute/ /{YOUR_KALTURA_BASE_ DIR}/dwh/etlsource/execute/

their execution schedule is set in: /{YOUR_KALTURA_BASE_ DIR}/crontab/kaltura_crontab

sudo nano /opt/kaltura/crontab/kaltura_crontab