Yet another HTTP 500 error

I recently upgraded from an ancient version of librenms, with an ancient php 5.something, to latest and php7.2. I believe I’ve upgraded all necessary packages (sql, anything that complained, etc).

Validate looks clean, and composer-wrapper runs, and even after installing acl and running those setfacl commands, everything is happy. The website just doesn’t work at all.

Forgive me for not cutting&pasting the validate.php output; it’s on another machine entirely. Reproduced here:
`LibreNMS 1.43-434-ga9723cb
DB Schema 268
PHP 7.2.10-1+ubuntu14.04.1+deb.sury.org+1
MySQL 5.7.18
RRDTool 1.4.7
SNMP NET-SNMP 5.7.2

Composer Version: 1.7.2

All dependencies up to date, database connection successful, database schema correct.

All I get in my librenms.log (besides a lot of poller.php logging) is a single “GET / HTTP 1.1” 500 206 line. I’ve even tried with /debug=yes, same thing.

Probably NOT related since it was happening before: whenever poller runs, I get mail (lots of mail) from cron with subject line “librenms /opt/librenms/cronic /opt/librenms/poller-wrapper.py 16” with a message body of “/bin/sh: 1: librenms: not found”

Any clues? I haven’t YET updated ubuntu to 15.04 (and hopefully onwards to 16.04), but if that might help, I’ll do that.

Further info:

I added a log_errors line to index.php, just so I could see what php is coughing up. Errors.log now shows:

[Wed Oct 10 17:15:50.213363 2018] [access_compat:error] [pid 23676] [client 10.18.40.50:34563] AH01797: client denied by server configuration: /opt/librenms/html/includes

[Wed Oct 10 17:15:58.293604 2018] [autoindex:error] [pid 23675] [client 10.18.40.50:34564] AH01276: Cannot serve directory /opt/librenms/html/images/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm) found, and server-generated directory index forbidden by Options directive

…this error seems to have been fixed by removing quote marks around the path in the apache directory directive. Back to no errors being logged anywhere that I can find, just a simple HTTP 500.

SOLVED:

Since I was upgrading from php5 to php7.2 with apache2, I’d neglected to do “a2dismod php5” and “a2enmod php7.2”.

Once that was done, the webui came right up.

Much appreciated. For me it was a2dismod php7.0. Your answer got me unstuck. :raised_hands: