WebUI not working after php7.2 update

Hey there. I updated php on my LibreNMS server yesterday from version 7 to version 7.2 as recommended. However, I am now unable to load the WebUI at all. I’m using nginx as my web server and Ubuntu 16.04 LTS as the server OS.

Here is the output of ./validate.php on my system:

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

Component Version
LibreNMS 1.48.1-27-gc7c1ca2
DB Schema 2019_01_16_195644_add_vrf_id_and_bgpLocalAs (131)
PHP 7.2.15-1+ubuntu16.04.1+deb.sury.org+1
MySQL 10.0.33-MariaDB-0ubuntu0.16.04.1
RRDTool 1.5.5
SNMP NET-SNMP 5.7.3

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

[e[32mOKe[0m] Composer Version: 1.8.4
[e[32mOKe[0m] Dependencies up-to-date.
[e[0;32mOKe[0m] Database connection successful
[e[0;32mOKe[0m] Database schema correct
[e[1;33mWARNe[0m] Your install is over 24 hours out of date, last update: Thu, 07 Feb 2019 20:58:56 +0000
[e[1;34mFIXe[0m]:
e[1;34mMake sure your daily.sh cron is running and run ./daily.sh by hand to see if there are any errors.e[0m
[e[1;33mWARNe[0m] Your local git contains modified files, this could prevent automatic updates.
[e[1;34mFIXe[0m]:
e[1;34mYou can fix this with ./scripts/github-removee[0m
Modified Files:
.editorconfig
.gitignore
.travis.yml
LibreNMS/Alert/Template.php
LibreNMS/Alert/Transport/Alertmanager.php
LibreNMS/Alert/Transport/Canopsis.php
LibreNMS/Alert/Transport/Elasticsearch.php
LibreNMS/Alert/Transport/Mattermost.php
LibreNMS/Authentication/MysqlAuthorizer.php
LibreNMS/Interfaces/Alert/Transport.php
LibreNMS/OS/Ruckuswireless.php
LibreNMS/Util/Laravel.php
LibreNMS/Util/ModuleTestHelper.php
LibreNMS/Validations/Database.php
app/ApiClients/RipeApi.php
and 121 more…

I can provide more information as necessary. I appreciate any feedback and assistance. Thanks!

I am also seeing the following error messages repeated over and over again in /opt/librenms/logs/error_log since I updated to php 7.2 yesterday:

2019/02/21 00:15:53 [error] 1450#1450: *11054 FastCGI sent in stderr: “PHP message: PHP Parse error: syntax error, unexpected ‘=’ in /opt/librenms/vendor/laravel/framework/src/Illuminate/Support/Arr.php on line 388” while reading response header from upstream, client: 127.0.0.1, server: librenms.spscc.edu, request: “POST /ajax/dash/device-summary-vert HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “127.0.0.1:7000”, referrer: “https://127.0.0.1:7000/overview/dashboard=2

2019/02/21 00:15:58 [error] 1450#1450: *11054 FastCGI sent in stderr: “PHP message: PHP Parse error: syntax error, unexpected ‘=’ in /opt/librenms/vendor/laravel/framework/src/Illuminate/Support/Arr.php on line 388” while reading response header from upstream, client: 127.0.0.1, server: librenms.spscc.edu, request: “POST /ajax/dash/eventlog HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “127.0.0.1:7000”, referrer: “https://127.0.0.1:7000/overview/dashboard=2

2019/02/21 00:15:58 [error] 1450#1450: *11054 FastCGI sent in stderr: “PHP message: PHP Parse error: syntax error, unexpected ‘=’ in /opt/librenms/vendor/laravel/framework/src/Illuminate/Support/Arr.php on line 388” while reading response header from upstream, client: 127.0.0.1, server: librenms.spscc.edu, request: “POST /ajax/dash/alerts HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “127.0.0.1:7000”, referrer: “https://127.0.0.1:7000/overview/dashboard=2

2019/02/21 00:15:58 [error] 1450#1450: *11054 FastCGI sent in stderr: “PHP message: PHP Parse error: syntax error, unexpected ‘=’ in /opt/librenms/vendor/laravel/framework/src/Illuminate/Support/Arr.php on line 388” while reading response header from upstream, client: 127.0.0.1, server: librenms.spscc.edu, request: “POST /ajax/dash/availability-map HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “127.0.0.1:7000”, referrer: “https://127.0.0.1:7000/overview/dashboard=2

2019/02/21 00:15:58 [error] 1450#1450: *11054 FastCGI sent in stderr: “PHP message: PHP Parse error: syntax error, unexpected ‘=’ in /opt/librenms/vendor/laravel/framework/src/Illuminate/Support/Arr.php on line 388” while reading response header from upstream, client: 127.0.0.1, server: librenms.spscc.edu, request: “POST /ajax/dash/syslog HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “127.0.0.1:7000”, referrer: “https://127.0.0.1:7000/overview/dashboard=2

2019/02/21 00:15:58 [error] 1450#1450: *11054 FastCGI sent in stderr: “PHP message: PHP Parse error: syntax error, unexpected ‘=’ in /opt/librenms/vendor/laravel/framework/src/Illuminate/Support/Arr.php on line 388” while reading response header from upstream, client: 127.0.0.1, server: librenms.spscc.edu, request: “POST /ajax/dash/top-devices HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “127.0.0.1:7000”, referrer: “https://127.0.0.1:7000/overview/dashboard=2

Note that we are using port 7000 on purpose.

Okay, I got it figured out. I needed to change the PHP-FHM section of my nginx site configuration to reference php7.2-fpm.sock instead of php7.0-fpm.sock.

1 Like