Showing posts with label Kaltura. Show all posts
Showing posts with label Kaltura. Show all posts

Tuesday, March 20, 2012

Install Kaltura from SVN


Pre-Installation Considerations:


PHP:

  • The current version of the Kaltura CE supports both PHP 5.3 and PHP 5.2.
  • Both php and php-cli must be present.
  • The following php extensions should be included and enabled: Gd, Curl, Memcache, Mysql, Mysqli, Exif, ftp, iconv, json, Session, apc, spl, DOM, SimpleXML, xml, xsl, ctype; 
  • Verify that the following settings within the php.ini file on each server: 
  • For PHP 5.3: Verify that request_order parameter includes C, G and P (recommended: "CGP") 
  • For PHP 5.2: Verify that variables_order parameter in php.ini includes C, G and P Please verify that date.timezone parameter was set to the right timezone.

minimal Hardware specifications:

1GB RAM, 2 CPUs


Apache:

Apache 2.2 or higher with following modules enabled: rewrite, headers, expires, filter, deflate, file_cache, env, proxy


MySQL:

MySQL 5.1.37 or higher.
Verify that mysql server character set is UTF8.
The following lines should be added to the MySQL my.cnf file:
lower_case_table_names = 1
thread_stack = 262144
open_files_limit = 20000
MySQL should be restarted after this adjustment is made
(Plesk will not allow lower_case_table_names = 1)


curl: Should be installed

memcached:  Should be installed

ImageMagick: Should be installed


32-bit packages required on 64-bit servers:

Some of the binaries that are in use by the Kaltura Platform are available in a 32-bit compiled version only. to enable these binaries
the following packages (or equivalents per Linus Distribution) may be required on a 64-bit server:  
Ubuntu:
a32-libs, lib32asound2, lib32gcc1, lib32ncurses5, lib32stdc++6, lib32z1,  libc6-i386
CentOS:
glibc.i686 , ncurses-libs,  zlib-1.2.x ,  freetype , bzip2-libs




Java:
JRE 1.6.x:Required for the video analytics module


Pentaho 3.2:


This is an open source data integration package, required for the video analytics module The data-integration package should be downloaded and installed within the /usr/local/pentaho/pdi directory
i.e.
- Create the /usr/local/pentaho/ directory
- Download and extract the pentaho data-integration package into the /usr/local/pentaho/ - package is available at: http://sourceforge.net/projects/pentaho/files/Data%20Integration/3.2.0-stable/pdi-ce-3.2.0-stable.tar.gz/download
- Rename the data-integration root directory of the downloaded package into the pdi directory




mail server:


A mail server is needed for managing outgoing emails as part of the kaltura platform workflow. Suggested packages: Sendmail, postfix


selinux:


Disabled SELinux (When applicable on server)
Within the /etc/sysconfig/selinux file (if exists on your server) set: SELINUX=disabled
The server should be restarted after this adjustment is made


Required info during installation



  • The full pathname to your Apache apachectl script: For a standard XAMPP configuration the apachectl is usually located at: /opt/lampp/bin/apachectl For a standard LAMP configuration the apachectl may be available at one of the following paths: /usr/bin/apachectl /usr/bin/apache2ctl 
  • The full pathname to your PHP binary file: For a standard XAMPP configuration the php binary is usually located at: /opt/lampp/bin/php For a standard LAMP configuration the php binary is usually available at the following path: /usr/bin/php 
  • The full target directory path for the Kaltura application: example /opt/kaltura 
  • Database information: Datatabase hostname, port, root user, root password 
  • Your primary system administrator email address 
  • A password to set for admin console administrator 
  • The URL to your xymon - system monitoring - service (optional) 
  • The name of the domain name/virtual hostname you will use for your kaltura CE server: e.g. kaltura.myhost.com, myhost.com 
  • Your permission to send system data for improving Kaltura CE (optional) Choose your installation folder. 


Install from SVN:



Keep in mind that all media files will be stored there and you enough space there. In this example Kaltura is located in the /opt Directory. Linux is Centos 64 bit and you install the latest svn from kaltura.


mkdir /opt/kaltura
cd /opt/kaltura
svn checkout http://www.kaltura.org/kalorg/kalturaCE/trunk/
mkdir bin
cd bin
svn checkout http://www.kaltura.org/kalorg/kalturaCEBinaries/branches/linux64/bin/




Running the Kaltura CE installation script:

From the base directory of your extracted kaltura CE package run the "php install.php" command.
- Follow installation instructions and provide the required information. 
- When installation completes, follow the post-installation instructions below

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.




For further installation advice visit the Kaltura install site at http://www.kaltura.org/kaltura-ce-v40-generic-installation-package and read http://www.kaltura.org/kalorg/kalturaCE/tags/KalturaCE_v5.0.0/INSTALLATION.txt




To start using Kaltura, please complete the following steps:
1. Add the following line to your /etc/hosts file:
127.0.0.1 video.yoursite.com  (==> if you are faced with php 500 error on admin console try real ip instead of 127.0.0.1)
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: http://video.yoursite.com/start


This and that:



To uninstall kaltura,
1.remove entry in the hosts file and httpd.conf file
2.remove the kaltura* tables from your database
3. (Careful with this one!) rm -rf yourkalturainstallfolder


KMC media list corrupted -
This is the script you need to run if Sphinx becomes a pain in your sphinxter and happens to drop your entry list in the KMC: /opt/kaltura/app/scripts/utils/updatePartnerEntries2Sphinx.php


Modify /start/index.php:
the path to the start page is /kaltura/app/start/index.php

Use Wowza media server instead of Red5:

most of the integration is similiar to red5
explanation is here http://blog.kaltura.org/rtmp-vod-and-live-streaming-using-red5-and-kaltura-ce-4

this thing are special:

rtmp address for streaming: rtmp://yourserver/vod
rtmp address for for live broadcast rtmp://yourserver/live

symlink:

ln -s /opt/kaltura/web/content /usr/local/WowzaMediaServer/content and
ln -s /opt/kaltura/web/content /opt/kaltura/web/content/webcam

Tuesday, November 1, 2011

Add Google Analytics to your Kaltura Player

  • enter the KMC
  • click on the Studio tab.
  • in the Studio, edit the player of your choice.
  • enter the Features tab and reveal the Additional parameters and plugins section.
  • copy and paste the following line into the "Paste your plug-in line here" text box and click the "go" button:
    googleAnalytics.plugin=true&googleAnalytics.urchinCode=UA-yourgoogleanalyticscode&googleAnalytics.debugMode=false&googleAnalytics.path=http://cdnexchange.kaltura.com/sites/exchange.kaltura.com/files/applications/releases/Kalturian/16/googleAnalytics.swf&googleAnalytics.relativeTo=PlayerHolder&googleAnalytics.position=lastChild  
  • change the googleAnalytics.debugMode parameter to true in order to get visual debugging information window over the player.

Friday, September 16, 2011

Rackspace Kaltura Apache conf

Where the apache settings for kaltura are located, when you use a rackspace prebuilt kaltura image: /opt/kaltura/app/configurations/apache/my_kaltura.conf

Friday, September 2, 2011

Kaltura rackspace Content internal error occured - Start/Restart Sphinx

Sometimes sphinx is down.
to restart:


[mouse@wwww etc]# cd /opt/kaltura/app/plugins/sphinx_search/scripts
[mouse@wwww scripts]# dir
cache populateFromLog.php watch.daemon.sh watch.stop.sh
configs searchd.sh watch.populate.sh
[mouse@wwww scripts]# ./watch.populate.sh
[mouse@wwww scripts]# chmod +x populateFromLog.php
[mouse@wwww scripts]# ./searchd.sh
usage: ./searchd.sh {start|stop|stopwait|status}
[mouse@www scripts]# ./searchd.sh start

Starting:Sphinx 1.10-beta (r2420)
Copyright (c) 2001-2010, Andrew Aksyonoff
Copyright (c) 2008-2010, Sphinx Technologies Inc (http://sphinxsearch.com)

Tuesday, June 7, 2011

AWS EC2 mail with SendGrid

mail is a beast. Sending email is easy but getting it pass spam filters when you’re a legitimate service is rather hard. Sending good email is especially hard when on EC2. The reason is due to spammers using and abusing elastic IPS. So, for startups your best bet of sending out a lot of email and getting it to the user is to use a service. You can pick Sendgrid. It’s cheap, fast, has good email tracking and builds all the appropriate email headers to get the mail white listed and into the destinations inbox. Sendgrid is the sender (think of them as an extension to sendmail).

New signups will usually get activated in less than four hours and then you simply add your username/password to the Postfix installation by editing the main.cf file.

First install postfix:

In Ubuntu, or any other apt using Linux distro, type in:

sudo apt-get install postfix

or if your system uses yum:

yum install postfix



Next choice your type of mail configuration: “Internet with Smarthost”.



From there, it’ll ask you questions that are entirely up to you.

It’s going to ask you for the smarthost address. Since we’re using SendGrid, use

smtp.sendgrid.net




Second edit the main.cf file:

Type in

sudo pico /etc/postfix/main.cf
or
sudo vi /etc/postfix/main.cf
to prepare the main.cf file

smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = static:yourSendgridUsername:yourSendgridPassword
smtp_sasl_security_options = noanonymous
smtp_tls_security_level = may
header_size_limit = 4096000
relayhost = [smtp.sendgrid.net]:587

Replace yourSendgridUsername and yourSendgridPassword with your username and password.

sudo service postfix restart


Signup for SendGrid here