I'm trying to execute a PHP script on the CLI on Amazon Linux 2 and though I have mysqli installed I'm repeatedly getting this error:
!!! <p>Error: database driver problem detected</p> <p>The site administrator should verify server configuration</p><p>PHP has not been properly configured with the MySQLi extension for it to communicate with MySQL. Please check your php.ini file or recompile PHP.</p> !!!
$ php -m |grep mysql mysqli mysqlnd pdo_mysql
and the application (Moodle) seems to be connecting fine to the database through the browser. What could the problem be?