HTTP ERROR 500 - LibreNMS i am not able to work

Hi guys, i am VERY desperate installing LibreNMS:

I did everything according this official guide:
https://docs.librenms.org/Installation/Installation-CentOS-7-Apache/

But appear the typical 500 http error:

Watching the httpd logs:

Tue Mar 31 13:25:11.598924 2020] [php7:warn] [pid 7578:tid 140160956102400] [client 10.102.49.74:52182] PHP Warning: require(/opt/librenms/html/…/bootstrap/autoload.php): failed to open stream: Permission denied in /opt/librenms/html/index.php on line 22
[Tue Mar 31 13:25:11.598971 2020] [php7:error] [pid 7578:tid 140160956102400] [client 10.102.49.74:52182] PHP Fatal error: require(): Failed opening required ‘/opt/librenms/html/…/bootstrap/autoload.php’ (include_path=’.:/usr/share/pear:/usr/share/php’) in /opt/librenms/html/index.php on line 22
[Tue Mar 31 13:25:12.782193 2020] [php7:warn] [pid 7577:tid 140160956102400] [client 10.102.49.74:52183] PHP Warning: require(/opt/librenms/html/…/bootstrap/autoload.php): failed to open stream: Permission denied in /opt/librenms/html/index.php on line 22
[Tue Mar 31 13:25:12.782230 2020] [php7:error] [pid 7577:tid 140160956102400] [client 10.102.49.74:52183] PHP Fatal error: require(): Failed opening required ‘/opt/librenms/html/…/bootstrap/autoload.php’ (include_path=’.:/usr/share/pear:/usr/share/php’) in /opt/librenms/html/index.php on line 22
[Tue Mar 31 13:26:37.702320 2020] [php7:warn] [pid 7576:tid 140160947709696] [client 10.102.49.74:52188] PHP Warning: require(/opt/librenms/html/…/bootstrap/autoload.php): failed to open stream: Permission denied in /opt/librenms/html/index.php on line 22
[Tue Mar 31 13:26:37.702382 2020] [php7:error] [pid 7576:tid 140160947709696] [client 10.102.49.74:52188] PHP Fatal error: require(): Failed opening required ‘/opt/librenms/html/…/bootstrap/autoload.php’ (include_path=’.:/usr/share/pear:/usr/share/php’) in /opt/librenms/html/index.php on line 22

i tried to fixed with chmod 644 /opt/librenms/html/…/bootstrap/autoload.php
chmod 644 -R /opt/librenms/html/…/bootstrap/autoload.php

More info:
./validate.php

Component Version
LibreNMS 1.61-86-gf7f6c63
DB Schema 2020_03_24_0844_add_primary_key_to_device_graphs (160)
PHP 7.4.4
MySQL 10.4.12-MariaDB
RRDTool 1.4.8
SNMP NET-SNMP 5.7.2

====================================

[OK] Composer Version: 1.10.1
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct

Could someone help me please??

Is your selinux on? If yes, have you configured it?

Did you literally use that path? since the … means the path is truncated so it doesn’t show the full path.

It’s Disabled

According the error log: 10.102.49.74:52183] PHP Warning: require(/opt/librenms/html/…/bootstrap/autoload.php): failed to open stream: Permission denied in /opt/librenms/html/index.php on line 22

i had to do it if i want to fix the problem, but not result, it’s still failing.

yea but that path is not valid, the log message omits/messes up part of it.

You can’t do: cd /opt/librenms/html/…/bootstrap
-bash: cd: /opt/librenms/html/…/bootstrap: No such file or directory

This however would work: cd /opt/librenms/html/../bootstrap/

The only autoloader under bootstrap I see here: /opt/librenms/bootstrap/autoload.php

edit: I think this idiotic markup adds an extra . if you only have 2. So likely in your logs it shows 2 dots and not 3

Hi Elias;

i did it this (only 2 dots):
chmod 755 -R /opt/librenms/html/…/bootstrap/autoload.php

Anyway, the problem persists, how can i fix it ??

[Tue Mar 31 17:18:18.939158 2020] [php7:warn] [pid 2806:tid 140038645114624] [client 10.102.49.74:55623] PHP Warning: require(/opt/librenms/html/…/bootstrap/autoload.php): failed to open stream: Permission denied in /opt/librenms/html/index.php on line 22

[Tue Mar 31 17:18:18.939212 2020] [php7:error] [pid 2806:tid 140038645114624] [client 10.102.49.74:55623] PHP Fatal error: require(): Failed opening required ‘/opt/librenms/html/…/bootstrap/autoload.php’ (include_path=’.:/usr/share/pear:/usr/share/php’) in /opt/librenms/html/index.php on line 22

If you just run: ls -la /opt/librenms/bootstrap/autoload.php what does it show?

Hi Elias, finally i installed librenms with docker compose and everything is working fine.

On other hand, do you know how to activate HTTPS in librenms (docker compose image) ??

Kind regards.

Ok good to hear that you can test. No idea what you would have to do to enable tls/ssl on the docker image. You could run a reverse proxy on the host os and let it handle https.