Cannot run LibreNMS (NGINX) validate.php eror


#1

Greetings sir i have problem with setup librenms centos NGINX, the eror is ,

[[email protected] librenms]# ./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(1160): 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(1160): 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

Please help me for solution, im new

Best Regards

Ryan


#2

See the error message I quoted. You need to go through install.php first. Please re-read / follow the docs.


#3

thank you for your support sir, but i have problem when i install php, here is the eror report :

Error: php72w-common conflicts with php-common-5.4.16-46.el7.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

i was remove php72w but when i trying to reinstall again the eror code :
Transaction check error:
file /etc/httpd/conf.d/php.conf from install of php-5.4.16-46.el7.x86_64 confl icts with file from package mod_php72w-7.2.17-1.w7.x86_64
file /etc/httpd/conf.modules.d/10-php.conf from install of php-5.4.16-46.el7.x 86_64 conflicts with file from package mod_php72w-7.2.17-1.w7.x86_64

Error Summary


#4

You need to remove php54 from your system. You need working PHP 7.2 before we can troubleshoot anything related to LibreNMS.