[FAIL] Missing PHP extension: mysqlnd [FIX] Please install mysqlnd

When asking for help and support, please provide as much information as possible. This should include:

  • Steps to reproduce an issue.
  • The output of ./validate.php

If it’s an issue with the WebUI then please consider including a screenshot and the browser version you are using.

If you are having troubles with discovery/polling include the pastebin output of:

./discovery.php -h HOSTNAME -d | ./pbin.sh
./poller.php -h HOSTNAME -r -f -d | ./pbin.sh

If you need to post any text longer than a few lines, please use a pastebin service such as https://p.libren.ms using non-expiring pastes.

2 Likes

You need to install php mysqlnd. Check the install docs for your distro to see what package to install

I’ve attempted the install - I’m currently running CentOS7. The command I used is “yum install php-msqlnd” and restarted the server afterwards. When I initiate .\validate.php it still gives me the message to install mysqlnd

@Knighte77

What php are you running? You didnt included your ./validate.php output.

Found the fix…

I ran yum swap php72w-mysql php72w-mysqlnd and it resolved the error in shell.

Here’s the output of my ./validate.php

[[email protected] librenms]# ./validate.php

Component Version
LibreNMS 1.42.01-69-gd46f300
DB Schema 260
PHP 7.2.8
MySQL 5.5.60-MariaDB
RRDTool 1.4.8
SNMP NET-SNMP 5.7.2

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

[OK] Composer Version: 1.7.2
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct

1 Like

Thanks that fixed it for me too on Centos 7

Thx, but that one-liner is not enough for me. I’ll try this solution from @dagbdagb next.

Thanks. It is fixed.

the yum swap command also worked for me

I’m seeing this issue on my system as well, but am unable to successfully swap mysqlnd due to composer dependencies.

[[email protected] librenms]# ./validate.php

Component Version
LibreNMS 1.47-22-gdef8b3e
DB Schema 279
PHP 7.2.2
MySQL 5.5.56-MariaDB
RRDTool 1.4.8
SNMP NET-SNMP 5.7.2

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

[OK] Composer Version: 1.8.0
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[FAIL] Missing PHP extension: mysqlnd
[FIX]:
Please install mysqlnd

I Tried running “[[email protected] librenms]# yum swap php72w-mysql php72w-mysqlnd”. Here are some highlights:

Package php72w-mysqlnd is obsoleted by php-mysqlnd, trying to install php-mysqlnd-7.2.14-1.el7.remi.x86_64 instead
Package php-common.x86_64 0:7.2.14-1.el7.remi will be obsoleting

Error: Package: composer-1.8.0-1.el7.noarch (@epel)
Requires: php-zip
Removing: php72w-common-7.2.2-1.w7.x86_64 (@webtatic)
php-zip
Obsoleted By: php-common-7.2.14-1.el7.remi.x86_64 (remi-php72)
Not found

So short story seems to be php-common is obsoleting any of the php packages that contain php-zip, which is required by composer. Is there a way around this without breaking the functionality of the systems? Librenms does appear to be functioning, despite the validation error. Thank you much.