admin_console doesn't work after installation

i have installed kaltura ce 5 on a debian wheezy server, took me a week (im not any good in it). the start page is working but the admin_console has path errors in the script-includes. it adds index.php to the path and apache returns index.php instead of the css. it might be $this->baseURL() or a wrong rewrite or what ever. in my apache access log there ist a error because index.php is returned. please help?

script-include:
//media.youcare.ch/admin_console/index.php/css/jquery-ui/smoothness/jquery-ui-1.7.2.custom.css

my_kaltura.conf:

<VirtualHost 91.214.170.91:80>
ServerAdmin webmaster@test.youcare.ch
ServerName media.youcare.ch
ServerAlias vu2010sub5.aowen.vserver.softronics.ch

ProxyTimeout 30

DocumentRoot /usr/local/kaltura/app/alpha/web

Alias /errors /var/www/virtual/youcare.ch/errors/

#LogLevel error
ErrorLog "/usr/local/kaltura/log/kaltura_apache_errors.log"
CustomLog /usr/local/kaltura/log/kaltura_apache_access.log vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %b %T/%D \"%{Referer}i\" \"%{User-Agent}i\" \"%{uv}C\" %a \"%{X-Kaltura}o\" \"%{HOST}i\"" vhost_combined
DirectoryIndex index.html

SuexecUserGroup vu2010 vu2010

## PHP directives #################

php_value display_errors 0

php_value memory_limit 128M

php_value max_execution_time 60

php_value post_max_size 2024M

php_value upload_max_filesize 2000M

php_value variables_order EGPCS

php_value request_order EGPCS

php_flag magic_quotes_gpc off

###################################


DeflateFilterNote Ratio ratio
DeflateCompressionLevel 9
FilterDeclare COMPRESS
FilterProvider COMPRESS DEFLATE resp=Content-Type $text
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/x-javascript
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/.*xml.*
FilterProvider COMPRESS DEFLATE resp=Content-Type $image/svg+xml
FilterChain COMPRESS

<IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteCond   %{DOCUMENT_ROOT}%{REQUEST_FILENAME}  !-d
        RewriteCond   %{DOCUMENT_ROOT}%{REQUEST_FILENAME}  !-f
        RewriteRule ^/([a-zA-Z0-9]+[^/])$                /index.php/$1    [PT]
</IfModule>

Alias /sf "/usr/local/kaltura/app/symfony-data/web/sf/"

<Directory “/usr/local/kaltura/app/alpha/web”>
# set caching for static files such as crossdomain.xml
<FilesMatch “.(xml|flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|mp4)$”>
ExpiresActive On
ExpiresDefault "access plus 3 month"
Header append Cache-Control "public"
SetEnv force-no-vary
Header unset ETag
FileETag None

# IE8 download compatiblity
Header set X-UA-Compatible "IE=EmulateIE7"
DirectoryIndex index.php
RedirectMatch permanent ^/index.php/index.php/(.+?)$ /index.php/$1
RedirectMatch permanent ^/index.php/index/s/UT/I/(.+?)$ /index.php?s=UT\&I=$1
RedirectMatch permanent ^/id/(.+?)/?$ /index.php/browse?kshow_id=$1
RewriteEngine on

# redirect kmc.kaltura.com to kaltura's kmc
RewriteCond %{HTTP_HOST} kmc.media.youcare.ch
RewriteRule .*  http://media.youcare.ch/index.php/kmc

# redirect root to start page
RewriteRule ^$ http://media.youcare.ch/start/index.php

# redirect flash file with swfparams parameters to the bare flash file
RewriteRule ^(.*)/swfparams/(.*) /$1

RewriteRule ^p/[0-9]+/sp/[0-9]+/thumbnail/(.*)$ /index.php/extwidget/thumbnail/$1 [L]
RewriteRule ^p/[0-9]+/thumbnail/(.*)$ /index.php/extwidget/thumbnail/$1 [L]

RewriteRule ^p/[0-9]+/sp/[0-9]+/raw/(.*)$ /index.php/extwidget/raw/$1 [L]
RewriteRule ^p/[0-9]+/raw/(.*)$ /index.php/extwidget/raw/$1 [L]

RewriteRule ^p/[0-9]+/sp/[0-9]+/download/(.*)$ index.php/extwidget/download/$1 [L]
RewriteRule ^p/[0-9]+/download/(.*)$ index.php/extwidget/download/$1 [L]

RewriteRule ^index.php/downloadUrl(.*)$ /index.php/extwidget/downloadUrl/$1 [L]
RewriteRule ^downloadUrl(.*)$ /index.php/extwidget/downloadUrl/$1 [L]
RewriteRule ^entryPage(.*)$ /index.php/extwidget/entryPage/$1 [L]
RewriteRule ^userPage(.*)$ /index.php/extwidget/userPage/$1 [L]

RewriteRule ^p/[0-9]+/sp/[0-9]+/flvclipper/(.*)$ /index.php/keditorservices/flvclipper/$1 [L]
RewriteRule ^p/[0-9]+/flvclipper/(.*)$ /index.php/keditorservices/flvclipper/$1 [L]
RewriteRule ^flvclipper/(.*)$ /index.php/keditorservices/flvclipper/$1 [L]

RewriteRule ^s/p/[0-9]+/sp/[0-9]+/flvclipper/(.*)$ /index.php/keditorservices/flvclipper/$1 [L]
RewriteRule ^s/p/[0-9]+/flvclipper/(.*)$ /index.php/keditorservices/flvclipper/$1 [L]
RewriteRule ^s/flvclipper/(.*)$ /index.php/keditorservices/flvclipper/$1 [L]

RewriteRule ^p/[0-9]+/sp/[0-9]+/flv/(.*)$ /index.php/flv/$1 [L]
RewriteRule ^p/[0-9]+/flv/(.*)$ /index.php/flv/$1 [L]

RewriteRule ^p/[0-9]+/sp/[0-9]+/playManifest/(.*)$ /index.php/extwidget/playManifest/$1 [L]
RewriteRule ^p/[0-9]+/sp/[0-9]+/serveFlavor/(.*)$ /index.php/extwidget/serveFlavor/$1 [L]
RewriteRule ^p/[0-9]+/sp/[0-9]+/serveIsm/(.*)$ /index.php/extwidget/serveIsm/$1 [L]
RewriteRule ^p/[0-9]+/sp/[0-9]+/embedIframe/(.*)$ /index.php/extwidget/embedIframe/$1 [L]
RewriteRule ^p/[0-9]+/sp/[0-9]+/embedIframeJs/(.*)$ /index.php/extwidget/embedIframeJs/$1 [L]

RewriteRule ^s/p/[0-9]+/sp/[0-9]+/playManifest/(.*)$ /index.php/extwidget/playManifest/$1 [L]
RewriteRule ^s/p/[0-9]+/sp/[0-9]+/serveFlavor/(.*)$ /index.php/extwidget/serveFlavor/$1 [L]
RewriteRule ^s/p/[0-9]+/sp/[0-9]+/embedIframe/(.*)$ /index.php/extwidget/embedIframe/$1 [L]
RewriteRule ^s/p/[0-9]+/sp/[0-9]+/embedIframeJs/(.*)$ /index.php/extwidget/embedIframeJs/$1 [L]

RewriteRule ^p/[0-9]+/playManifest/(.*)$ /index.php/extwidget/playManifest/$1 [L]
RewriteRule ^p/[0-9]+/serveFlavor/(.*)$ /index.php/extwidget/serveFlavor/$1 [L]
RewriteRule ^p/[0-9]+/embedIframe/(.*)$ /index.php/extwidget/embedIframe/$1 [L]
RewriteRule ^p/[0-9]+/embedIframeJs/(.*)$ /index.php/extwidget/embedIframeJs/$1 [L]

RewriteRule ^s/p/[0-9]+/playManifest/(.*)$ /index.php/extwidget/playManifest/$1 [L]
RewriteRule ^s/p/[0-9]+/serveFlavor/(.*)$ /index.php/extwidget/serveFlavor/$1 [L]
RewriteRule ^s/p/[0-9]+/embedIframe/(.*)$ /index.php/extwidget/embedIframe/$1 [L]
RewriteRule ^s/p/[0-9]+/embedIframeJs/(.*)$ /index.php/extwidget/embedIframeJs/$1 [L]

RewriteRule ^p/[0-9]+/sp/[0-9]+/kpreloader/(.*)$ /index.php/extwidget/kpreloader/$1 [L]
RewriteRule ^p/[0-9]+/kpreloader/(.*)$ /index.php/extwidget/kpreloader/$1 [L]
RewriteRule ^kpreloader/(.*)$ /index.php/extwidget/kpreloader/$1 [L]

RewriteRule ^p/[0-9]+/sp/[0-9]+/swf/(.*)$ /swf/$1 [L]
RewriteRule ^p/[0-9]+/swf/(.*)$ /swf/$1 [L]
RewriteRule ^p/[0-9]+/sp/[0-9]+/flash/(.*)$ /flash/$1 [L]
RewriteRule ^p/[0-9]+/flash/(.*)$ /flash/$1 [L]

RewriteRule ^kwidget/(.*)$ /index.php/extwidget/kwidget/$1 [L]

RewriteRule ^kcw/(.*)$ /index.php/extwidget/kcw/$1 [L]
RewriteRule ^kse/(.*)$ /index.php/extwidget/kse/$1 [L]
RewriteRule ^kae/(.*)$ /index.php/extwidget/kae/$1 [L]
RewriteRule ^kupload/(.*)$ /index.php/extwidget/kupload/$1 [L]
RewriteRule ^krecord/(.*)$ /index.php/extwidget/krecord/$1 [L]
RewriteRule ^kgeneric/(.*)$ /index.php/extwidget/kgeneric/$1 [L]

RewriteRule ^api/(.*)$ /index.php/partnerservices2/$1 [L]

RewriteRule ^p/[0-9]+/content/(.*)$ /content/$1 [L]
RewriteRule ^p/[0-9]+/sp/[0-9]+/content/(.*)$ /content/$1 [L]

RewriteRule ^extservices/(.*)$ /index.php/extservices/$1 [L]

# redirect collectstats to alive.html
RewriteRule ^(.*)/collectstats /alive.html [L]

# rewrite rule for an errornous url from myspace - fetch a 1-pixel.gif
RewriteRule ^(.*)entry/widget/(.*) /images/blank_one_pixel.gif [L]

# rewrite rules for old links
RewriteRule ^swf/(.*)$ OLD_PATHS/web/swf/$1 [L]
RewriteRule ^simpleswf/(.*)$ OLD_PATHS/web/simpleswf/$1 [L]
RewriteRule ^images/(.*)$ OLD_PATHS/web/images/$1 [L]
RewriteRule ^js/(.*)$ OLD_PATHS/web/js/$1 [L]
RewriteRule ^css/(.*)$ OLD_PATHS/web/css/$1 [L]

RewriteCond %{QUERY_STRING}  service=stats&action=collect
RewriteRule api_v3/index.php /alive.html [L]
				
RedirectMatch permanent ^/tiny/([0-9a-z]{4})$ /api_v3/index.php?service=shortLink_shortLink\&action=goto\&id=$1	

Options FollowSymLinks ExecCGI Includes
	FCGIWrapper /var/www/fcgi/media/php5-fcgid-starter
AllowOverride None
	Allow from all

#Alias /admin_console/index.php/css “/usr/local/kaltura/app/admin_console/web/css”
#Alias /admin_console/index.php/js “/usr/local/kaltura/app/admin_console/web/js”
#Alias /admin_console/index.php/ext “/usr/local/kaltura/app/admin_console/web/ext”
#Alias /admin_console/index.php/images “/usr/local/kaltura/app/admin_console/web/images”

Alias /admin_console “/usr/local/kaltura/app/admin_console/web”
<Directory “/usr/local/kaltura/app/admin_console/web”>
DirectoryIndex index.php
Options ExecCGI Indexes FollowSymLinks Includes
AllowOverride All
Order allow,deny
Allow from all
FCGIWrapper /var/www/fcgi/media/php5-fcgid-starter

Alias /api_v3 “/usr/local/kaltura/app/api_v3/web”
<Directory “/usr/local/kaltura/app//api_v3/web”>
DirectoryIndex index.php
Options ExecCGI Indexes FollowSymLinks Includes
AllowOverride All
Order allow,deny
Allow from all
RedirectMatch permanent ^/api_v3/service/(.*)$ /api_v3/index.php/service/$1
FCGIWrapper /var/www/fcgi/media/php5-fcgid-starter

Alias /start “/usr/local/kaltura/app/start”
<Directory “/usr/local/kaltura/app/start”>
DirectoryIndex index.php
Options ExecCGI Indexes FollowSymLinks Includes
AllowOverride All
Order allow,deny
Allow from all
FCGIWrapper /var/www/fcgi/media/php5-fcgid-starter

############# OLD_PATHS #########################
Alias /OLD_PATHS “/usr/local/kaltura/app/OLD_PATHS”
<Directory “/usr/local/kaltura/app/OLD_PATHS”>
DirectoryIndex index.php
ExpiresActive On
ExpiresDefault "access plus 1 week"
Header unset ETag
FileETag None
Header unset Vary
AllowOverride None
Allow from all
#FCGIWrapper /var/www/fcgi/media/php5-fcgid-starter

<Directory “/usr/local/kaltura/app/OLD_PATHS/web/css”>
SetOutputFilter DEFLATE
AllowOverride None
Allow from all

##########################

Alias /content/uiconf “/usr/local/kaltura/web/content/uiconf”
<Directory “/usr/local/kaltura/web/content/uiconf”>
AddHandler cgi-script .php .pl .py .jsp .asp .htm .shtml .sh .cgi
Options -ExecCGI
SetEnv force-no-vary

    ExpiresActive On
    ExpiresDefault "access plus 3 month"
    Header unset ETag
    AllowOverride None
    Allow from all

Alias /content “/usr/local/kaltura/web/content”
<Directory “/usr/local/kaltura/web/content”>
AddHandler cgi-script .php .pl .py .jsp .asp .htm .shtml .sh .cgi
Options -ExecCGI
SetEnv force-no-vary

ExpiresActive On
ExpiresDefault "access plus 3 month"
Header unset ETag

# rewrite rule for an errornous url from myspace - fetch a 1-pixel.gif
RewriteRule ^(.*)entry/widget/(.*) /images/blank_one_pixel.gif [L]
    AllowOverride None
    Allow from all

Alias /flash “/usr/local/kaltura/web/flash”
<Directory “/usr/local/kaltura/web/flash”>
AddHandler cgi-script .php .pl .py .jsp .asp .htm .shtml .sh .cgi
Options -ExecCGI
SetEnv force-no-vary

ExpiresActive On
ExpiresDefault "access plus 3 month"
Header unset ETag
FileETag None
    AllowOverride None
    Allow from all

Alias /html5 “/usr/local/kaltura/html5”
<Directory “/usr/local/kaltura/html5”>
DirectoryIndex index.php
Options ExecCGI -Indexes FollowSymLinks Includes
AllowOverride None
Order allow,deny
Allow from all
FCGIWrapper /var/www/fcgi/media/php5-fcgid-starter

Alias /apps “/usr/local/kaltura/apps”
<Directory “/usr/local/kaltura/apps”>
DirectoryIndex index.php
Options ExecCGI -Indexes FollowSymLinks Includes
AllowOverride None
Order allow,deny
Allow from all
FCGIWrapper /var/www/fcgi/media/php5-fcgid-starter

MMapFile /usr/local/kaltura/app/alpha/web/crossdomain.xml
MMapFile /usr/local/kaltura/app/alpha/web/alive.html

Header set X-Me “media.youcare.ch

Hello,

CE 5 is very old and no longer supported.
Please follow instructions for installing version 9 here:

And, in the event of a cluster, here: https://github.com/kaltura/platform-install-packages/blob/IX-9.19.0/doc/rpm-cluster-deployment-instructions.md

There are a lot of additional supporting docs in: https://github.com/kaltura/platform-install-packages/blob/IX-9.19.0/doc/

Do let me know if you need further help,

my mistake, in the version file i have 9.19, got it mixed up with google results. i looked at your links and there is information on getting services started and so on but i need to get the admin_console and the kmc running before i try to start the rest. can you tell me why there is index.php in the script paths? is there a rewrite missing or …?

Hello again,

I am a little confused.
You wrote: ‘kaltura ce 5 on a debian wheezy server’, version 9 is released in the form of RPMs only and is meant to be installed on RHEL/CentOS 6.
Also, the apache conf you attached is not the one for the 9 ver.

Can you please explain where you got the packages from?

hi i got it from github.com/kaltura/server.git and used install.php to install it

Hello,

This is legacy code. You should follow instructions here:

Please review https://github.com/kaltura/platform-install-packages/blob/master/doc/pre-requisites.md#pre-requisites before starting.

Thanks,

are you saying i cant get it to work on anything else but redhat-based linux? isn’t that impossible, it’s only the packaging / installation and some settings in linux that differs to debian? you also mention some way to install it on othe linux dirstibutions but dont go into detail.

Hi,

Kaltura CE and actually also the OnPrem edition, was always supported only on RHEL/CentOS.
It is not quite true to say it is only about packaging, although that is a subject in itself because:
0. Kaltura itself brings several binary deps which it compiles on CentOS because it needs them in specific versions, such as:

  • Sphinx
  • FFMPEG
  • MP4Box
  1. Kaltura at present time only supports PHP 5.3.n, whereas recent versions of Debian/Ubuntu have PHP 5.4.n and 5.5.n in their repos

  2. Kaltura only supports MySQL 5.1 and newer versions have MySQL 5.5

And then, as you mentioned there is the RPM packaging, although you could theoretically install RPMs on your Debian, I would not recommend it and as for the binary parts, they are likely to have missing deps and symbols due to diff versions of supporting libs and GLIBC in particular.

You can however, install Kaltura within a CentOS chroot which you can place on your Debian server.

I maintain ready made chroots here and will be happy to consult on that:
http://sourceforge.net/projects/chroot2go/files/CentOS/

Thanks,

1 Like

The brave amongst us have gone ahead and tried several distros. I personally had success with Cent OS (of course) and Ubuntu. None others worked. And only Cent OS has been usable. Some got working it even on Windows though not for production.
If you have the know how, it will certainly help to get it going on different distros and let there be more choices.
But if you are on a time limited project, please know, it’s not worth it.