Morning,
I am trying to get LibreNMS setup but I keep getting stuck. I first comissioned a Ubuntu 16.04 with LAMP. I then followed the guide to the letter here: https://docs.librenms.org/#Installation/Installation-Ubuntu-1604-Apache/
Following that I got no errors, after getting to the the end and trying to navigate to 172.16.0.184/install.php I get the error The requested URL /install.php was not found on this server.
Validate.php gives me.
root@SR-LibreNMS-01 : /opt/librenms # ./validate.php
====================================
Component | Version
--------- | -------
LibreNMS | 1.42.01-34-g731da95
DB Schema | ?
PHP | 7.0.30-0ubuntu0.16.04.1
MySQL | ?
RRDTool | 1.5.5
SNMP | NET-SNMP 5.7.3
====================================
[OK] Composer Version: 1.7.1
[OK] Dependencies up-to-date.
[ FAIL ] Error connecting to your database. Access denied for user ‘USERNAME’@‘localhost’ (using password: YES)
[ WARN ] Could not check poller/discovery, db is not connected.
[ FAIL ] We have found some files that are owned by a different user than librenms, this will stop you updating automatically and / or rrd files being updated causing graphs to fail.
[ FIX ] chown -R librenms:librenms /opt/librenms
Files:
/opt/librenms/composer.phar
Hi,
First -> chown -R librenms:librenms /opt/librenms
For accesing it, you must use the ServerName
hostname you set up in /etc/apache/sites-available/librenms.conf
so you must create that DNS records.
If you use the IP address you will go to the apache default site, which is not the librenms site.
Thanks… I got past that and have set my DNS settings.
I still get the The requested URL /install.php was not found on this server. , validate information below.
root@SR-LibreNMS-01 : /opt/librenms # ./validate.php
====================================
Component | Version
--------- | -------
LibreNMS | 1.42.01-34-g731da95
DB Schema | ?
PHP | 7.0.30-0ubuntu0.16.04.1
MySQL | ?
RRDTool | 1.5.5
SNMP | NET-SNMP 5.7.3
====================================
[OK] Composer Version: 1.7.1
[OK] Dependencies up-to-date.
[ FAIL ] Error connecting to your database. php_network_getaddresses: getaddrinfo failed: Name or service not known
[ WARN ] Could not check poller/discovery, db is not connected.
root@SR-LibreNMS-01 : /opt/librenms #
Did you enabled correctly librenms site (a2ensite librenms
)?
You should check first why is not connecting to the correct site but that is more a sysadmin general than librenms specific.
laf
16 August 2018 20:41
5
Your db details are wrong. Check and correct them in config.php
and .env
1 Like
Cheers. I had the server name wrong.
After fixing that the error is not just " [ FAIL ] Error connecting to your database. No route to host"
Now time to work on that. Cheers.
Don’t worry I’m all good now.