On Sunday 2022-11-20 17:34, Andrei Borzenkov wrote:
On 20.11.2022 17:13, Boyd Lynn Gerber wrote:
Hello,
Thanks, Admin Beckspaced <admin@beckspaced.com> It is True it doesn't why adding the below is required.
In /etc/php7/apache2/php.ini the below 2 lines are required for PHP 7 and above.
extension=mysqli extension=pdo_mysql
Now with the updated PHP
$ php -version PHP 8.0.10 (cli) (built: Feb 22 2022 12:00:00) ( NTS ) Copyright (c) The PHP Group Zend Engine v4.0.10, Copyright (c) Zend Technologies with Zend OPcache v8.0.10, Copyright (c), by Zend Technologies
So I just tried adding them to /etc/php8/cli/php.ini
$ php -version PHP Warning: PHP Startup: Unable to load dynamic library 'mysqli' (tried: /usr/lib64/php8/extensions/mysqli (/usr/lib64/php8/extensions/mysqli: cannot open shared object file: No such file or directory), /usr/lib64/php8/extensions/mysqli.so (/usr/lib64/php8/extensions/mysqli.so: undefined symbol: mysqlnd_global_stats)) in Unknown on line 0
It rather clearly says that it cannot load extension because some other required library is missing. You may want to google for "undefined symbol: mysqlnd_global_stats".
The library is there, but can be resolved by loading module /mysqlmysqli (the only difference) after module mysqlnd. PHP apears to load alphabetically resulting in the error -- Boyd Gerber <gerberb@zenez.com> 801 849-0213 ZENEZ 1042 East Fort Union #135, Midvale Utah 84047