Updating my php from 7.2 to 7.3. When I change /etc/nginx/conf.d/librenms.conf
so it’s pointing to 7.3 location and restart nginx I get a missing php extension “mysqlnd” window when I refresh the page. What’s the best way to resolved?
please run ./validate.php
Thanks Kevin,
This is the output from ./validate.php
Component | Version |
---|---|
LibreNMS | 1.63-56-g27cc5ac19 |
DB Schema | Not Connected (0) |
PHP | 7.3.18-1+ubuntu18.04.1+deb.sury.org+1 |
Python | 3.6.9 |
MySQL | ? |
RRDTool | 1.7.0 |
SNMP | NET-SNMP 5.7.3 |
====================================
[OK] Composer Version: 1.10.6
[OK] Dependencies up-to-date.
Could not connect to database, check logs/librenms.log.
Your PHP is missing required mysql extension(s), please install and enable.
Check the install docs for more info: https://docs.librenms.org/Installation/
root@librenms:/opt/librenms#
I was able to install the mysql php extension and I now have my connection to the database again. However I have a new set of errors. I’ve installed each extension below by doing: apt install php-mbstring, apt install php-xml, apt install php-dom, but still no joy, instead it created a php7.4 folder and put the extensions in there but I’m running 7.3 so I’m not sure why that happened.
root@librenms:/opt/librenms# ./validate.php
Component | Version |
---|---|
LibreNMS | 1.63-56-g27cc5ac19 |
DB Schema | 2020_04_19_010532_eventlog_sensor_reference_cleanup (164) |
PHP | 7.3.18-1+ubuntu18.04.1+deb.sury.org+1 |
Python | 3.6.9 |
MySQL | 10.1.44-MariaDB-0ubuntu0.18.04.1 |
RRDTool | 1.7.0 |
SNMP | NET-SNMP 5.7.3 |
====================================
[OK] Composer Version: 1.10.6
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[FAIL] Missing PHP extension: mbstring
[FIX]:
Please install mbstring
[FAIL] Missing PHP extension: xml
[FIX]:
Please install xml
[FAIL] Missing PHP extension: dom
[FIX]:
Please install dom
OMG!!! I didn’t specify 7.3 when I installed the extensions. Once I did that my validate checks out.