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 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 phpcli): - 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! o 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: extension=curl.so in the Dynamic Extensions secion. sudo nano /etc/php5/apache2/php.ini 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 doesn t 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: ;extension=memcache.so (By removing the ";" from the start) & restart apache sudo nano /etc/php5/conf.d/memcache.ini 32-Bit packages required: Ubuntu 64-bit: ia32-libs, lib32asound2, lib32gcc1, lib32ncurses5, lib32stdc++6, lib32z1, libc6- i386 (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 http://sourceforge.net/projects/pentaho/files/data%20integration/3.2.0- stable/pdi-ce-3.2.0-stable.tar.gz
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 Mail server sudo mv data-integration pdi Required for managing outgoing emails as part of the kaltura platform workflow. Suggested packages: Sendmail, postfix Install EXIM [more details at: http://ubuntuforums.org/showthread.php?p=7876032] 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: <your.dns.ca> >IP-Address to listen on: 127.0.0.1 >Other destinations: <your.dns.ca> >Machines to relay: (leave blank) >IP address or host: <your.mail.server.ca> >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: fc.hzsd.ca:: [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 email_addy@domain.ca 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. o For installing xymon on Ubuntu 10.04 please refer to the installation instructions at http://www.kaltura.org/kaltura-ce-v30-installing-xymon-monitoring-packag... For further information go to http://www.xymon.com 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: 127.0.0.1 mydomain.com 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 INSTALL Kultra Installation 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: media2.hzsd.ca Primary System Admin Email: speters@hzsd.ca 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: 1. 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 **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 Kaltura s services are activated on system startup: /{YOUR_KALTURA_BASE_ DIR}/app/scripts/searchd.sh start /{YOUR_KALTURA_BASE_ DIR}/app/scripts/serviceBatchMgr.sh 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/etl_logs.sh /{YOUR_KALTURA_BASE_ DIR}/dwh/etlsource/execute/daily.sh their execution schedule is set in: /{YOUR_KALTURA_BASE_ DIR}/crontab/kaltura_crontab sudo nano /opt/kaltura/crontab/kaltura_crontab