Hello Everyone,
I am trying to install librenms on PI 3 based on the instructions from this thread:
https://docs.librenms.org/Installation/Installation-Ubuntu-1604-Apache/
Unfortunately its not going well, I cannot seem to get librenms started and I am seeing the following when I try to verify that it is running:
librenms@tool-server:~$ ./validate.php
PHP Fatal error: Uncaught Error: Call to undefined function LibreNMS\Util\app() in /opt/librenms/LibreNMS/Util/Laravel.php:71
Stack trace:
#0 /opt/librenms/LibreNMS/DB/Eloquent.php(111): LibreNMS\Util\Laravel::isBooted()
#1 /opt/librenms/LibreNMS/DB/Eloquent.php(92): LibreNMS\DB\Eloquent::DB()
#2 /opt/librenms/LibreNMS/Util/Version.php(58): LibreNMS\DB\Eloquent::isConnected()
#3 /opt/librenms/includes/common.php(1139): LibreNMS\Util\Version->database()
#4 /opt/librenms/validate.php(72): version_info()
#5 [internal function]: {closure}()
#6 {main}
thrown in /opt/librenms/LibreNMS/Util/Laravel.php on line 71
[FAIL] config.php does not exist, please copy config.php.default to config.php
Fatal error: Uncaught Error: Call to undefined function LibreNMS\Util\app() in /opt/librenms/LibreNMS/Util/Laravel.php:71
Stack trace:
#0 /opt/librenms/LibreNMS/DB/Eloquent.php(111): LibreNMS\Util\Laravel::isBooted()
#1 /opt/librenms/LibreNMS/DB/Eloquent.php(92): LibreNMS\DB\Eloquent::DB()
#2 /opt/librenms/LibreNMS/Util/Version.php(58): LibreNMS\DB\Eloquent::isConnected()
#3 /opt/librenms/includes/common.php(1139): LibreNMS\Util\Version->database()
#4 /opt/librenms/validate.php(72): version_info()
#5 [internal function]: {closure}()
#6 {main}
thrown in /opt/librenms/LibreNMS/Util/Laravel.php on line 71
I have verified that PHP is installed:
pi@tool-server:~ $ php -v
PHP 7.3.4-2 (cli) (built: Apr 13 2019 19:05:48) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.4, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.4-2, Copyright (c) 1999-2018, by Zend Technologies
When I attempt to run the script:
librenms@tool-server:/opt$ ./librenms/scripts/composer_wrapper.php install --no-dev
PHP Fatal error: Uncaught Error: Call to undefined function curl_init() in /opt/librenms/scripts/composer_wrapper.php:106
Stack trace:
#0 /opt/librenms/scripts/composer_wrapper.php(66): curl_fetch('https://compose...', '', true)
#1 {main}
thrown in /opt/librenms/scripts/composer_wrapper.php on line 106
Any points would be greatly appreciated.