I installed librenms on RedHat 6.10, but when run ./validate.php. I get this error: “PHP Parse error: syntax error, unexpected ‘[’ in /opt/librenms/validate.php on line 133”. I looked at line 133 but could not see any issue.
if ($pre_checks_failed) {
exit;
}
$init_modules = []; <— line 133
require ‘includes/init.php’;
// make sure install_dir is set correctly, or the next includes will fail
if (!file_exists(Config::get(‘install_dir’).’/config.php’)) {
$suggested = realpath(DIR);
print_fail(’$config[‘install_dir’] is not set correctly.’, “It should probably be set to: $suggested”);
exit;
}
Hi @shak63
Could you start with php -v ? I suppose that you have some prerequisites that are not met, and as validate itself does not run, we’ll have to check manually step by step.
Howdy,
I made sure librenms and root have have access in the DB, but I cannot login to the web and get Access denied for both user. Would someone please have any suggestions?
Attaching the screenshot
This is what I did, not sure what fixed it: made sure I granted user
mysql> GRANT ALL PRIVILEGES ON . TO ‘root’@‘localhost’;
mysql> FLUSH PRIVILEGES;
Then retype the password in .env, rebooted and tried again. Not sure what fixed it, but I was able to get to librenms page
My librenms vm had an issues with kernel, re-imaged the system. The os is Red Hat 6 Enterprise. I got it installed fully, I was able to access the database from the command line with root and librenms. They have all permission. I ran ./validate.php and no errors. Attaching the screenshots.