So got the alert about php version requirement is changing to 7.3 minimum so I updated from 7.2 to 7.4 it was working well for a couple days but now I get “Composer detected issues in your platform: Your Composer dependencies require a PHP version “>= 7.3.0”.” when loading the WebUI
output of git status:
$ git status
On branch master
Your branch is up to date with ‘origin/master’.
nothing to commit, working tree clean
output of daily.sh:
Updating to latest codebase OK
Updating Composer packages OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK
output of validate.php:
Component | Version
--------- | -------
LibreNMS | 1.69-20-gbe3853f88
DB Schema | 2020_10_30_093601_add_tos_to_ospf_ports (189)
PHP | 7.4.12
Python | 3.6.9
MySQL | 10.1.47-MariaDB-0ubuntu0.18.04.1
RRDTool | 1.7.0
SNMP | NET-SNMP 5.7.3
[OK] Composer Version: 2.0.6
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
If there is any other information I’m missing you need please let me know.
I am facing this issue same as you!
I was having the exact same issue. Turns out there are a few more steps than I thought when upgrading.
I followed this guide and now LibreNMS is back up and running for me
For those of you that need to upgrade their php from 7.2 to 7.4, here is the process that I went through and was able to do so easily on Ubuntu18.04LTS
Add php7.4 libraries
sudo apt update
sudo apt -y install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo add-apt-repository ppa:ondrej/apache2
sudo apt update
apt purge libapache2-mod-php7.2 php7.2-cli php7.2-curl php7.2-gd php7.2-json php7.2-mbstring php7.2-mysql php7.2-snmp php7.2-xml php7.2-zip
Wanted to add the article Adam_Halliburton added helped me quite a bit, I’m using nginx though so was missing a few steps which you can find in this article.
Good morning. Someone had a similar issue not long ago…It looks like you may have missed a few steps:
In /etc/php/7.4/fpm/pool.d - do you have a librenms.conf file? If not, do the following.
cp /etc/php/7.4/fpm/pool.d/www.conf /etc/php/7.4/fpm/pool.d/librenms.conf
CentOS 8 Debian 10
# Change "www" to "librenms"
# Change user and group to "librenms"
user = librenms
group = librenms
# Change listen to a unique name
listen = /run/php-fpm-…
Between both my issue is fixed
12 November 2020 06:34
If you use Centos 6 and php-fpm you need to update php-fpm to version 7.3 as well.
I used php73-php-fpm from remi repository, current one is 7.3.24