Missing PHP extensions. Please install and enable them on your LibreNMS server. curl after update

my ubuntu install was upgraded to 18.04. Today however, i get the following when trying to access webui:

Missing PHP extensions. Please install and enable them on your LibreNMS server.
curl

~$ sudo sudo apt install php7.2-curl
Reading package lists… Done
Building dependency tree
Reading state information… Done
php7.2-curl is already the newest version (7.2.10-0ubuntu0.18.04.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

$ sudo /opt/librenms/validate.php

Component Version
LibreNMS 1.44-17-gaa14f86c2
DB Schema 269
PHP 7.2.10-0ubuntu0.18.04.1
MySQL 10.1.34-MariaDB-0ubuntu0.18.04.1
RRDTool 1.7.0
SNMP NET-SNMP 5.7.3

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

[OK] Composer Version: 1.7.2
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[WARN] Your local git contains modified files, this could prevent automatic updates.
[FIX] You can fix this with ./scripts/github-remove
Modified Files:
bootstrap/cache/.gitignore
storage/app/.gitignore
storage/app/public/.gitignore
storage/debugbar/.gitignore
storage/framework/cache/.gitignore
storage/framework/sessions/.gitignore
storage/framework/testing/.gitignore
storage/framework/views/.gitignore
storage/logs/.gitignore

i did try the following
phpenmod curl
/opt/librenms ./scripts/composer_wrapper.php install --no-dev

install php 7.2 and curl

After searching, I found a post to re-install PHP. Unfortunately this did not work

What struck me was that I have PHP7.0 and PHP7.2 installed.
next steps
apt-get purge php7.0
systemctl restart apache2.service

this solved my problem. and everything turned to the latest version of Ubuntu and Librenms.

Hopefully this will also help someone else.:smiley:

I found your tip invaluable, but found sudo apt-get purge php7.0-common to work better.

1 Like