You need to uncomment ;extension=mysqli.so
in the 'Dynamic Extensions' section in 'php.ini' located in your php folder, usually '/etc/php/php.ini'
If it’s not there, you need to install the package php-mysql
and then restart the Apache web server.