Kaltura CE install on CentOS 5.4

I wanted to share this info on how to install the KalturaCE media server on CentOS. I saw that a lot of people were having issues getting it to work. Follow along, it is pretty easy to do. This should be a cut and paste article. I did this install in Xen with 32bit. I have not tried this in a 64bit environment yet. It should work the same, except the part where you have to get some php rpms below.

Ensure that your system is currently up to date.

I like always do my installing from /home/install/ Feel free to choose any directory you want to store your software in.

mkdir -p /home/install/rpms/
cd /home/install/rpms/

We need to install the EPEL and rem repos.

wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
rpm -Uvh *.rpm

Now we need to install some needed software, we also enable the remi repo.

yum install memcached httpd mysql mysql-server gmp libedit t1lib sqlite2 libXpm libXmu libXaw --enablerepo=remi

We need to grab the older php-5.2.10 rpms from remi with wget. These are the i386 rpms. The path for x86_64 is going to be different. This path might work if you are wanting 64bit.

http://rpms.famillecollet.com/enterprise/5/olds/x86_64/

wget http://rpms.famillecollet.com/enterprise/5/olds/i386/php-5.2.10-1.el5.remi.i386.rpm
wget http://rpms.famillecollet.com/enterprise/5/olds/i386/php-cli-5.2.10-1.el5.remi.i386.rpm
wget http://rpms.famillecollet.com/enterprise/5/olds/i386/php-common-5.2.10-1.el5.remi.i386.rpm
wget http://rpms.famillecollet.com/enterprise/5/olds/i386/php-gd-5.2.10-1.el5.remi.i386.rpm
wget http://rpms.famillecollet.com/enterprise/5/olds/i386/php-mysql-5.2.10-1.el5.remi.i386.rpm
wget http://rpms.famillecollet.com/enterprise/5/olds/i386/php-pdo-5.2.10-1.el5.remi.i386.rpm
wget http://rpms.famillecollet.com/enterprise/5/olds/i386/php-pecl-memcache-3.0.4-1.el5.remi.i386.rpm
wget http://rpms.famillecollet.com/enterprise/5/olds/i386/php-pecl-memcached-0.2.0-1.el5.remi.i386.rpm

Now we need to install the rpms we just grabbed. Don’t install the php-pecl-memcache* ones yet. These will be done at a later step.

rpm -ivh php-5.2.10-1.el5.remi.i386.rpm php-cli-5.2.10-1.el5.remi.i386.rpm php-common-5.2.10-1.el5.remi.i386.rpm php-gd-5.2.10-1.el5.remi.i386.rpm php-mysql-5.2.10-1.el5.remi.i386.rpm php-pdo-5.2.10-1.el5.remi.i386.rpm

We need to install some more pre-reqs for memcache stuff.

yum install php-pear libmemcached --enablerepo=remi

Now we get to install the last 2 rpms for php-pecl-memcache

rpm -ivh php-pecl-memcache*

Need to double check that short_open_tag is enabled for PHP. This is done in the /etc/php.ini

short_open_tag = On

Edit /etc/httpd/con/httpd.conf

Find AllowOverride for the directory /var/www/html/
Change it from
AllowOverride None
to
AllowOverride All

Now lets start up the services.

service memcached start
service mysqld start
service httpd start

Now comes the MySQL stuff. We need to setup the database we want to use for kaltura. You can change the following two lines to match what you want to use. I use kaltura as the database and the name, and katura123 as the password. Again, these can be set to whatever you want to use. These will need to be known when you go into the kalturaCE installer.

echo "create database kaltura;" | mysql

It is recommended that you create a user for the kaltura database. Below is a simple create, please adjust to your liking.

echo "grant all privileges on kaltura.* to kaltura@"localhost" identified by 'kaltura123';"  | mysql

Now we need to get the current kalturaCE code. The URL below will more than likely change, so make sure to goto the kaltura download site and copy the most current download URL.

 wget http://www.kaltura.org/sites/default/files/releases/kalturaCE_v1.5_linux386.tgz

Now we need to uncompress it and put it in the /var/www/html/ folder. The -C tells tar to uncompress into that folder.

tar -zxvf kalturaCE_v1.5_linux386.tgz -C /var/www/html/

Now open a browser and point it to

http://IP_OF_YOUR_SERVER/kalturaCE/install/

Where IP_OF_YOUR_SERVER is the actual IP address of your kalturaCE server.

Click begin installation

Should be all green check boxes.

Click on Continue

Database connections.
You will need to have the database, database user, and password. You should know this from a previous step.

Click Save and Continue.

Set the server url, if it is not already done so.

Set the Administrator Account with the info it asks for as well as email…

You should be done.

You can then goto

http://IP_OF_YOUR_SERVER/kalturaCE

You can get to the management interface using,

http://IP_OF_YOUR_SERVER/kalturaCE/index.php/kmc

Start adding your own media. :)

If there is enough interest in this, I can put up a Xen image on XenForge.org. I would also be willing to create a distribution that would install everything, again if enough interest is shown.

****update to libmemcached issue*****
If you get this
error: Failed dependencies:
libmemcached.so.2()(64bit) is needed by php-pecl-memcached-0.2.0-1.el5.remi.x86_64
libmemcached.so.2(libmemcached_2)(64bit) is needed by php-pecl-memcached-0.2.0-1.el5.remi.x86_64

or this
error: Failed dependencies:
libmemcached.so.2 is needed by php-pecl-memcached-0.2.0-1.el5.remi.i386
libmemcached.so.2(libmemcached_2) is needed by php-pecl-memcached-0.2.0-1.el5.remi.i386

For those of you having issues finding the libmemcached rpm, I think I found them. Damn remi removing rpms!! Try this link to a mirror of his rpms.
32-bit
wget http://cobbler.int-evry.fr/cblr/repo_mirror/el5-i386-remi/libmemcached-0.31-1.el5.remi.i386.rpm
file location http://cobbler.int-evry.fr/cblr/repo_mirror/el5-i386-remi/

64-bit
wget http://cobbler.int-evry.fr/cblr/repo_mirror/el5-x86_64-remi/libmemcached-0.31-1.el5.remi.x86_64.rpm
file location http://cobbler.int-evry.fr/cblr/repo_mirror/el5-x86_64-remi/

Hopefully this helps!!
Thank you,
Engineer Tim

Tags: , , , , , ,

17 Responses to “Kaltura CE install on CentOS 5.4”

  1. Zohar Babin says:

    Hi,

    This is an awesom article, thanks for Sharing!

    From your experience, did you run into issues or features you’d like to be improved?
    We’d like to have as much feedback possible to improve the system, and there is a new version coming up in a few weeks – with ton of new features and fixes, so be sure to check it out.

    Please feel free to drop by the community site or drop me an email directly if you have ideas, bugs or features.

    Zohar.

  2. Engineer Tim says:

    Zohar,
    Thank you for the kind comment.
    I don’t think there is anything as of yet that I would change. The install was very smooth. It took some time to track down the original errors I was having. Almost all of them being directly related to the short tags for PHP and the AllowOverride settings. I think it would help a lot of people to specifically let people know that PHP 5.3 does not work. That was another stumbling block, but with some searching I found that out.
    I will contact you directly to discuss some other things.

    Thank you,
    Engineer Tim

  3. Engineer Tim,

    I want to sincerely thank you for taking the time to write such a great and successful article. I was able to get this up and running on centos5.4 with no problems. However I wanted to note that I was first failing so to the servers registration not working. I was getting a server install successful however registration failed. Once I moved the system on to public IP with smtp working correctly it worked like a dream. Thank again for this awesome article.

    Jaysunn

  4. tw says:

    hi running in to one problem, i get to rpm -ivh php-pecl-memcache* and it fails looking libmemcached.so.2.

    error: Failed dependencies:
    libmemcached.so.2 is needed by php-pecl-memcached-0.2.0-1.el5.remi.i386
    libmemcached.so.2(libmemcached_2) is needed by php-pecl-memcached-0.2.0-1.el5.remi.i386

    i looked in my system and I find libmemcached.so.4 in /usr/lib/

    any idea how to get this to work

  5. Matt Melbert says:

    Engineer Tim,

    This is a great article and I am excited to get this up and running. The only problem that I am running into now is two failed dependencies:

    libmemcached.so.2()(64bit) is needed by php-pecl-memcached-0.2.0-1.el5.remi.x86_64
    libmemcached.so.2(libmemcached_2)(64bit) is needed by php-pecl-memcached-0.2.0-1.el5.remi.x86_64

    The version of libmemcached that gets installed now from the remi repo is: 0.38 which provides libmemcached.so.4 and not libmemcached.so.2. I tried making a symlink and this fails. Does anyone have a copy of libmemcached that provides libmemcached.so.2? I looked everywhere on the web and cant find a version for centos 5.4.

    Thanks again for the great article!

  6. Engineer Tim says:

    For those of you having issues finding the libmemcached rpm, I think I found them. Damn remi removing rpms!! Try this link to a mirror of his rpms.
    32-bit
    wget http://cobbler.int-evry.fr/cblr/repo_mirror/el5-i386-remi/libmemcached-0.31-1.el5.remi.i386.rpm
    file location http://cobbler.int-evry.fr/cblr/repo_mirror/el5-i386-remi/

    64-bit
    wget http://cobbler.int-evry.fr/cblr/repo_mirror/el5-x86_64-remi/libmemcached-0.31-1.el5.remi.x86_64.rpm
    file location http://cobbler.int-evry.fr/cblr/repo_mirror/el5-x86_64-remi/

    Hopefully this helps!!
    Thank you,
    Engineer Tim

  7. Warren Long says:

    Libmemcached-0.31 no longer available on cobler… (heavy sigh…)

    Anyone out there able to help. Many google searches have been done in vain.

    Thanks,
    Warren

  8. this my sound stupid but well i’m learning. i made a social neworking site so i had to learn a lot, but i;m lost when it comes to installing kaltura CE. i understand the MsQL part cause is the same as installing wordpress but i’m lost when it comes to the other stuff.

    i’m confuse asto where or how to put those lines that you have in the begining, and also i think i’m unzipping kaltura wrong or something cause they tell me im not suppost to unzipp it in my computer, intead im suppost to upload it to my server and unzipp it inside my server. problem is that i dont kno how to unzipp it inside the server. i tried one way but no luck.

    is there any chance of you posting screan shot or video.

    thank you for the help
    alverto

  9. chris says:

    really need an updated guide for 2.0 can someone help

  10. Engineer Tim says:

    I should be able to do that. I have a kickcstart file that I have been using for 1.5 that I should be able to tweak for a quick and easy install.

  11. Engineer Tim says:

    I can try to post a screen cast of the install process. It is going to take me some time to do it though.

  12. Abhishek says:

    Hi ,
    I’m trying to install kaltura on a localhost on centos – I was thru all the steps though did not follow the mysql and all the installation steps because i was already having all the packages updated , now the problem is that when i open http://localhost/kaltura it gives me this :

    Index of /kaltura
    [ICO] Name Last modified Size Description
    [DIR] Parent Directory -
    [TXT] install.php 26-May-2011 21:32 11K
    [TXT] install_log_31.05.2011_18.38.52 31-May-2011 18:39 1.0K
    [TXT] install_log_31.05.2011_19.03.37 31-May-2011 19:03 1.0K
    [TXT] install_log_31.05.2011_19.03.56 31-May-2011 19:03 1.0K
    [TXT] install_log_31.05.2011_19.04.28 31-May-2011 19:04 1.0K
    [TXT] install_log_31.05.2011_19.06.14 31-May-2011 19:06 1.0K
    [ ] install_seq 31-May-2011 18:38 19
    [DIR] installer/ 26-May-2011 21:32 -
    [TXT] license.txt 26-May-2011 21:32 34K
    [DIR] package/ 26-May-2011 21:32 -
    Apache/2.2.3 (CentOS) Server at localhost Port 80

    I feel there is something wrong with install.php file not sure what to do ?

  13. Abhilash TT says:

    Hi,

    I have tried to install kaltura on centos 5.6 with cpanel. I was able to install kaltura from backend.

    # php install.php

    After this, I got the message that kaltura installation is finished. You need add the kaltura.conf in your apache conf and you can access it using domain.com/start

    I have added the kaltura conf file in apache conf. But while trying to access domain.com/start, I am getting Not Found error.

    Can you please help me. Any help is appreciated.

  14. Engineer Tim says:

    With cPanel, you will have to edit the included file. I am not certain you will be able to even get this to work with cPanel. But looking at the include file, you will at the very least have to change the virtualhost entry to be a domain and not a asterisk (*) Also, depending on wether you are using suPHP or something else, you may run into major problems there. It would be far easier to get this working with a VPS than cPanel.

  15. Engineer Tim says:

    You wont be able to use localhost, pretty sure it requires a FQDN and the apache include file needs to listen for a virtualhost which I don’t think localhost will do. You will need to give your server a IP, a actual hostname and setup something in the hosts file on the kaltura server as well as your computer you are trying to access it from to point to the kaltura server.

  16. Abhilash says:

    Hey Tim,

    Thanks for your help.
    This has really helped. I have installed kaltura in cpanel.
    I have corrected the IP instead of * in kaltura conf

    once again thanks for your help.

  17. Abhilash TT says:

    Tim,
    Thanks you for your help, I was able to install kaltura in cpanel without any issue.I have added the steps at http://www.help2linux.in/?p=51

Leave a Reply