0

Message: PHP Startup: Unable to load dynamic library '/path/to/extension/mysqli.so' (tried: /path/to/extension/mysqli.so (/path/to/extension/mysqli.so: cannot open shared object file: No such file or directory), /usr/lib/php/20170718//path/to/extension/mysqli.so.so (/usr/lib/php/20170718//path/to/extension/mysqli.so.so: cannot open shared object file: No such file or directory))

A PHP Error was encountered

Severity: Core Warning

Message: PHP Startup: Unable to load dynamic library '/path/to/extension/mysqli.so' (tried: /path/to/extension/mysqli.so (/path/to/extension/mysqli.so: cannot open shared object file: No such file or directory), /usr/lib/php/20170718//path/to/extension/mysqli.so.so (/usr/lib/php/20170718//path/to/extension/mysqli.so.so: cannot open shared object file: No such file or directory))

Filename: Unknown

Line Number: 0

command :find / -name 'mysqli.so'

/usr/lib/php/20190902/mysqli.so /usr/lib/php/20170718/mysqli.so /usr/lib/php/20151012/mysqli.so

command: find / -name 'php.ini'

/etc/php/7.0/cli/php.ini /etc/php/7.0/apache2/php.ini /etc/php/7.2/cli/php.ini /etc/php/7.2/apache2/php.ini /etc/php/7.4/cli/php.ini /etc/php/7.4/apache2/php.ini

i would like to solve this severity warning.

1

You have to reinstall the package for this library depending on your Ubuntu version:

sudo apt-get install --reinstall php7.0-mysql # for 16.04 LTS
sudo apt-get install --reinstall php7.2-mysql # for 18.04 LTS
sudo apt-get install --reinstall php7.4-mysql # for 20.04 LTS and 20.10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.