安装 Kaltura 所需的一个或多个先决条件未满足

安装 Kaltura 所需的一个或多个先决条件未满足

我正在关注https://github.com/instructure/canvas-lms/wiki/Kaltura-setup-instructions安装 Kaltura。但我在sudo php install.php步骤中遇到了问题。

sneha@SCS-I82:~/Downloads/kalturaCE_v3.0.0-instructure$ sudo php install.php
[sudo] password for sneha: 

Thank you for installing Kaltura Video Platform - Community Edition

A previous installation attempt has been detected, do you want to use the input you provided during you last installation? (Y/n)
> n

In order to improve Kaltura Community Edition, we would like your permission to send system data to Kaltura.
This information will be used exclusively for improving our software and our service quality. I agree (Y/n)
> Y

If you wish, please provide your email address so that we can offer you future assistance (leave empty to pass)
> [email protected]

PHP Notice:  Array to string conversion in /home/sneha/Downloads/kalturaCE_v3.0.0-instructure/installer/OsUtils.class.php on line 13
Please provide the following information:

The following apachectl script has been detected: /usr/sbin/apachectl. Do you want to use this script to run your Kaltura application? Leave empty to use or provide a pathname to an alternative apachectl script on your server.
> 

The following PHP binary has been detected: /usr/bin/php. Do you want to use this script to run your Kaltura application? Leave empty to use or provide a pathname to an alternative PHP binary on your server.
> 

Full target directory path for Kaltura application (leave empty for /opt/kaltura)
> 

Please enter the domain name/virtual hostname that will be used for the Kaltura server (without http://)
> kalturadev.example.com

Your primary system administrator email address
> [email protected]

The password you want to set for your primary administrator
> India_4321

Database host (leave empty for 'localhost')
> 

Database port (leave empty for '3306')
> 

Database username (with create & write privileges)
> 
Database username cannot be empty, please enter again
> sneha

Database password (leave empty for no password)
> India_4321

The URL to your xymon/hobbit monitoring location. Xymon is an optional installation. Leave empty to set manually later
Examples:
http://www.xymondomain.com/xymon/
http://www.xymondomain.com/hobbit/
> 


Verifing prerequisites

One or more prerequisites required to install Kaltura failed:
   Failed to connect to database 127.0.0.1:3306 user:sneha. Please check the database settings you provided and verify that MySQL is up and running.

Please resolve the issues and run the installation again.

有人可以针对同样的问题提出一些解决方案吗?

答案1

那不是错误,只是警告。但你可以纠正这个问题:

打开文件OsUtils.class.php

nano /home/sneha/Downloads/kalturaCE_v3.0.0-instructure/installer/OsUtils.class.php

并替换行

logMessage(L_INFO, "User: $output");

logMessage(L_INFO, "User: $output[0]");

现在再次启动安装脚本,您将看到以下内容:

Thank you for installing Kaltura Video Platform - Community Edition

In order to improve Kaltura Community Edition, we would like your permission to send system data to Kaltura.
This information will be used exclusively for improving our software and our service quality. I agree (Y/n)
> 

If you wish, please provide your email address so that we can offer you future assistance (leave empty to pass)
> 

Please provide the following information:

The following apachectl script has been detected: /usr/sbin/apachectl. Do you want to use this script to run your Kaltura application? Leave empty to use or provide a pathname to an alternative apachectl script on your server.
> 

The following PHP binary has been detected: /usr/bin/php. Do you want to use this script to run your Kaltura application? Leave empty to use or provide a pathname to an alternative PHP binary on your server.
> 

Full target directory path for Kaltura application (leave empty for /opt/kaltura)
> 

Please enter the domain name/virtual hostname that will be used for the Kaltura server (without http://)
> 
Must be a valid hostname or ip, please enter again

相关内容