Ubuntu16.04: PHP7 MySQL connect

When I tried to run Zabbix locally, the PHP frontend page didn’t show by the following error.

PHP Fatal error:  Uncaught Error: Call to undefined function mysqli_connect()

After adding “php-mysql” package, it turned to work fine.

sudo apt-get install php-mysql


Leave a Reply

Your email address will not be published. Required fields are marked *