OpenCart Fatal error: Class 'mysqli' not found in /home/mydir/public
Using php5.6.27
I ran a test php program to see if mySqli is installed and it is not.
Hello World';
if (!function_exists('mysqli_init') && !extension_loaded('mysqli')) {
echo 'We don\'t have mysqli!!!';
} else {
echo 'Phew we have it!';
}
?>
I cannot find where to install it using WHM
it lists mysqlnd as an installed module (which is supposed to include mysqli)
Here are some instructions from the php manual but I do not know how to compile php to add the mysqli module:
PHP Version Default Configure Options: mysqlnd Configure Options: libmysqlclient Changelog
5.4.x and above mysqlnd --with-mysqli --with-mysqli=/path/to/mysql_config mysqlnd is the default
I did update the php.ini to add this line:
extension=php_mysqli.so
How can I use mysqli?
Thanks!