Kaltura CE installation failure in Centos 6

Hi,

I have downloaded the latest Kaltura CE rpm package and installed kaltura in CentOS release 6.9 (Final) . But when i try to execute kaltura-config-all.sh, i always get an error as below:-1:

The Alias directive in /opt/kaltura/app/configurations/apache/conf.d/enabled.apps.conf at line 38 will probably never match because it overlaps an earlier Alias.
Syntax error on line 4 of /opt/kaltura/app/configurations/apache/conf.d/enabled.kaltura.conf:
Unrecognized LogFormat directive %O

Please suggest how to fix this issue. Due to this issue, kaltura server is unable to start up and i am unable to view KMC. Please help.

Hello @suman_kumar_dey,

In “/opt/kaltura/app/configurations/apache/conf.d/enabled.apps.conf”, the aliases “/ apps” and “/apps/kea” overlap.
So that, the configuration script shows a warning.
But, I think that you do not have to worry about this warning.

Next, the apache needs modules “log_config_module” and “logio_module” for it use “% O” directive.
Have you confirmed that the apache has loaded these modules?

In the CentOS 6, you can list loaded modules by following command:

# apachectl -M

If apache have not load these modules, please look “LoadModule” statements in “/etc/httpd/conf/httpd.conf” or other apache configuration files.

Regards

Hi,

Thanks for your reply. I once again uninstalled Kaltura and started from scratch.

While downloading the packages , i am getting the below error:-1:

Error: php71u-xml conflicts with php56u-xml-5.6.34-1.ius.centos6.x86_64
Error: Package: php71u-gd-7.1.15-1.ius.centos6.x86_64 (ius)
Requires: libwebp.so.5()(64bit)
Error: php71u-cli conflicts with php56u-cli-5.6.34-1.ius.centos6.x86_64
Error: php56u-common conflicts with php-common-5.3.3-49.el6.x86_64
Error: php71u-common conflicts with php-common-5.3.3-49.el6.x86_64
Error: php71u-process conflicts with php56u-process-5.6.34-1.ius.centos6.x86_64
Error: php71u-common conflicts with php56u-common-5.6.34-1.ius.centos6.x86_64
You could try using --skip-broken to work around the problem
** Found 2 pre-existing rpmdb problem(s), ‘yum check’ output follows:
libzen-0.4.37-1.el6.x86_64 is a duplicate with libzen-0.4.35-1.el6.x86_64
x265-libs-2.6-1.x86_64 is a duplicate with x265-libs-2.0-1.x86_64

Kindly help.

Hello @suman_kumar_dey,

I guess that “yum” requested “php71u-xml” and CentOS repository provided “php56u-xml”.
Similarly, “yum” requested “php56u-common” and CentOS repository provided “php-common-5.3.3”.
Have you installed the “php71u-xml” package with the repository option?
For example, “--enablerepo=ius-archive”.
If you have installed “php71u-*” and “php56u-*” packages with the repository option, you should use same the option for re-installation.

Regards

Hi @suman_kumar_dey,

You seem to have multiple unofficial repos enabled on your ENV and clearly, there are conflicts.
The official CentOS 6 repos include PHP 5.3.3 only.
If you wish to install a higher version of PHP on a CentOS 6 machine, I recommend you use the Remi repos.
See: https://github.com/kaltura/platform-install-packages/issues/586

Make sure to only use the official CentOS repos and the Remi ones [again, only if a higher version of PHP is needed] and disable all the other unofficial ones. The Remi repo uses the same package names for PHP as the official PHP package names in the official CentOS/RHEL repo and also correctly declares the Provides and Obsoletes package metadata, thus enabling a smooth upgrade process.

HI,

Thanks a lot for your reply. I removed all the other versions of php from repo: -/etc/yum.repos.d

Now i installed php 5.3 again

php -v
PHP 5.3.3 (cli) (built: Mar 22 2017 12:27:09)
Copyright © 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright © 1998-2010 Zend Technologies

But when i run yum install kaltura-server, i again get the error:-1:

Error: php56u-pear conflicts with 1:php-pear-1.9.4-5.el6.noarch
Error: php56u-cli conflicts with php-cli-5.3.3-49.el6.x86_64
Error: php56u-process conflicts with php-process-5.3.3-49.el6.x86_64
Error: php56u-xml conflicts with php-xml-5.3.3-49.el6.x86_64
Error: php56u-common conflicts with php-common-5.3.3-49.el6.x86_64
Error: php71u-common conflicts with php-common-5.3.3-49.el6.x86_64
Error: php71u-common conflicts with php56u-common-5.6.34-1.ius.centos6.x86_64
You could try using --skip-broken to work around the problem
** Found 2 pre-existing rpmdb problem(s), ‘yum check’ output follows:
libzen-0.4.37-1.el6.x86_64 is a duplicate with libzen-0.4.35-1.el6.x86_64
x265-libs-2.6-1.x86_64 is a duplicate with x265-libs-2.0-1.x86_64

Kindly suggest.

Your output suggests that these repos still exist and that some of these unofficial packages are also currently installed.

# yum repolist enabled

will output the enabled repos.

# rpm -qa "*php*"

will output all installed packages that have “php” in their name.

Hi,
The output for rpm -qa “php
is
php-common-5.3.3-49.el6.x86_64
php-cli-5.3.3-49.el6.x86_64
php-pear-1.9.4-5.el6.noarch
php-5.3.3-49.el6.x86_64

Also i checked for the enabled repos , php isn’t there.

Please suggest what to do next.

Regards

Please provide the output for:

# yum repolist enabled

Loaded plugins: fastestmirror, replace
Loading mirror speeds from cached hostfile

  • base: centos.excellmedia.net
  • extras: centos.excellmedia.net
  • ius: hkg.mirror.rackspace.com
  • updates: centos.excellmedia.net
    repo id repo name status
    Kaltura Kaltura Server 141
    Kaltura-noarch Kaltura Server arch independent 89
    base CentOS-6 - Base 6,706
    extras CentOS-6 - Extras 53
    ius IUS Community Packages for Enterprise Linux 6 391
    mysql-connectors-community MySQL Connectors Community 45
    mysql-tools-community MySQL Tools Community 59
    mysql56-community MySQL 5.6 Community Server 378
    updates CentOS-6 - Updates 1,175
    repolist: 9,037

All of the below are not official CentOS repos:

I removed the unofficial repos. After this kaltura got installed.

When i am running the kaltura-config-all.sh ,

i am getting the below error:
Syntax error on line 49 of /opt/kaltura/app/configurations/apache/conf.d/enabled.kaltura.conf:
Invalid command ‘Header’, perhaps misspelled or defined by a module not included in the server configuration

Please suggest

You need to enable the Apache Headers module:

LoadModule headers_module modules/mod_headers.so

This module and all additionally needed modules are all enabled in the default Apache config as shipped with the CentOS httpd RPM package. If you overrode that config, you will need to manually added the needed LoadModule directives.

The Kaltura Server requires the following Apache modules:

filter expires headers proxy rewrite

Thanks a lot. All the config script ran fine. Only the db-config is throwing error:-1:
CREATE USER kaltura;
ERROR 1396 (HY000) at line 1: Operation CREATE USER failed for ‘kaltura’@’%’

kaltura-db-config.sh FAILED with: 1 on line 138

Please advise

Mysql 5.5.57 is installed , its found compatible.

Thanks a lot. All the config script ran fine. Only the db-config is throwing error:-1:
CREATE USER kaltura;
ERROR 1396 (HY000) at line 1: Operation CREATE USER failed for ‘kaltura’@’%’

kaltura-db-config.sh FAILED with: 1 on line 138

Please advise.Mysql 5.5.57 is installed

Any updates please on the earlier posted error :-1:

Thanks a lot. All the config script ran fine. Only the db-config is throwing error:-1:
CREATE USER kaltura;
ERROR 1396 (HY000) at line 1: Operation CREATE USER failed for ‘kaltura’@’%’

kaltura-db-config.sh FAILED with: 1 on line 138

Please advise.Mysql 5.5.57 is installed

Hello @suman_kumar_dey,

Execution of “kaltura-db-config.sh” will fail, if there exists Kaltura’s databases, users, procedures in your MySQL server.
So that, you should remove them before re-configuration of the Kaltura CE.
For example, you can remove them and unlock base configurations by using the following commands:

# /opt/kaltura/bin/kaltura-drop-dwh.sh YOUR-MYSQL-ROOT-PASSWORD
# /opt/kaltura/bin/kaltura-drop-db.sh
# rm /opt/kaltura/app/base-config.lock

Regards