Kaltura CE6 installation on CentOS
Posted By : Varun Sharma | 29-Jul-2013
Installing Kaltura CE6 on CentOS is quite simple & you can configure that on your system by following below steps:
Installation Steps:
1. installs the first batch of useful packages
yum install screen mlocate vim-enhanced wget bind-utils perl system-config-network-tui postfix make gcc pv wget mailx epel -y
2. installs the git subversioning package
yum install git subversion -y
3. checks which packages need updating and updates them
yum update -y
4. installs networking tools
yum install setuptool system-config-firewall-tui.noarch system-config-network-tui.noarch -y
5. installs pre-requisits for Kaltua
yum install git dos2unix php-cli php-mysql php-gd mysql-server memcached httpd mailx ImageMagick php-pecl-apc php-pecl-memcache php-xml cronie -y
6. installs another pre-requisit which requires a special repo
yum --enablerepo=centosplus install mod_php -y
7. downloads oracle RPM (NOTE: you have to manually go to java's website find linux 64bit JRE .rpm package, download it from browser and copy the download link)
wget http://download.oracle.com/otn-pub/java/jdk/7u13-b20/ jre-7u13-linux-x64.rpm?AuthParam=1360665831_ ecb84e69ec2d73ca8282da176f72162e
8. renames the long filename of JRE into a valid name
mv jre-7u13-linux-x64.rpm?AuthParam=1360665831_ ecb84e69ec2d73ca8282da176f72162e jre-7u13-linux-x64.rpm
9. installs the JRE rpm package
yum install jre-7u13-linux-x64.rpm #enter yes when asked to confirm
10. disable SELINUX (this must be done as it conflicts with the creation of sym links during kaltura installer and installer will fail if not disabled)
vim /etc/selinux/config #change SELINUX=enforcing to SELINUX=disabled
11. reboots the system. this must be done after altering the SELINUX file to affect changes reboot
12. makes a backup of the php ini file
cp /etc/php.ini php.ini.apache.backup
13. changes the request order in the php ini file
sed -e "s/^request_order = \"GP\"/request_order = \"CGP\"/g" /etc/php.ini > /tmp/php.ini.configured && cp /tmp/php.ini.configured /etc/php.ini
14. makes a backup of the my.cnf file
cp /etc/my.cnf my.cnf.backup
15. changes the thread_stack value in the my.cnf file
sed -e "s/^thread_stack\t\t= 192K/thread_stack\t\t= 256K/g" /etc/my.cnf > /tmp/my.cnf.configured && cp /tmp/my.cnf.configured /etc/my.cnf
16. changes the lower_case_table_names value in the my.cnf file
sed -e "s/^\[mysqld\]/\[mysqld\]\nlower_case_table_names = 1/g" /etc/my.cnf > /tmp/my.cnf.configured && cp /tmp/my.cnf.configured /etc/my.cnf
17. restarts the mysqld service
service mysqld restart
18. makes mysqld service start on startup
chkconfig --level 2345 mysqld on
19. starts the mysqld service after chkconfig change
service mysqld start
20. makes httpd (apache) service start on startup
chkconfig --level 2345 httpd on
21. starts the httpd (apache) service after chkconfig change
service httpd start
22. makes memcached start on startup
chkconfig --level 2345 memcached on
23. restarts the memcached service after chkconfig change
service memcached restart
24. stops ip tables
service iptables stop
25. does not turn on service on startup
chkconfig iptables off
26. makes a directory for the installation of pentaho (a pre-requisit of kaltura)
mkdir /usr/local/pentaho
27. changes the working directory to the pentaho directory
cd /usr/local/pentaho
28. downloads the pentaho installation package
wget http://sourceforge.net/projects/pentaho/files/Data%20Integration/ 4.2.1-stable/pdi-ce-4.2.1-stable.tar.gz
29. untars the pentaho installation package
tar xzf pdi-ce-4.2.1-stable.tar.gz
30. moves data-integration to pdi
mv data-integration pdi
31. changes the working directory to home folder (since we are root it will be /root)
cd ~/
32. clones the whole repository of kaltura ce-packager
git clone http://github.com/kaltura/ce-packager.git
33. changes working directory to ce-packager
cd ce-packager
34. downloads the latest files of the current git branch
git submodule update --init
cd ~/ce-packager/git-repositories/KalturaServer git reset --hard origin/falcon cd ~/ce-packager/ git submodule update git-repositories/ce* find ~/ce-packager/git-repositories/ce* -type d -name .git -print -execdir git pull origin master \; cd ~/ce-packager/git-repositories/ce-branding git checkout f79d56cd9026e2474ef82f2c7a39ee8f43a2c7ee
35. changes working directory to packaging
cd ~/ce-packager/packaging
36. runs the package.php script which build the nessarry files for installing kaltura (NOTE the vX.X.X paramenter does not determine which version you are going to install, it is just used to label certain pages)
php package.php /root/kaltura-installer false CE v6.0.0 dev
37. changes the working directory to /root/kaltura-installer
cd ~/kaltura-installer
38. runs the kaltura installation
php install.php
39. after installation is complete run this command to create sym link for kaltura apache conf
ln -s /opt/kaltura/app/configurations/apache/my_kaltura.conf /etc/httpd/conf.d/my_kaltura.conf
40. grant permission to apache for kaltura
chown -R apache:apache /opt/kaltura/
41. edit the httpd (apache) config file
vim /etc/httpd/conf/httpd.conf
42. This defines the ServerName for FQDN identification ServerName
43. restart the httpd (apache service)
/etc/init.d/httpd restart
That's all, you are done.
>Hope it helps !
Varun Sharma [email protected]
Cookies are important to the proper functioning of a site. To improve your experience, we use cookies to remember log-in details and provide secure log-in, collect statistics to optimize site functionality, and deliver content tailored to your interests. Click Agree and Proceed to accept cookies and go directly to the site or click on View Cookie Settings to see detailed descriptions of the types of cookies and choose whether to accept certain cookies while on the site.
About Author
Varun Sharma
Varun is an experienced Groovy and Grails developer and has worked extensively on designing and developing applications with FaceBook , Linkedin and Twitter integrations using Grails technologies. Varun loves painting and photography.