By using this site you agree to the use of cookies by Brugbart and our partners.

Learn more

PHP Fatal error Class mysqli not found in Ubuntu

How to solve the PHP error, class mysqli not found in Ubuntu.

Edited: 2015-11-07 17:03

After installing Apache and PHP on Ubuntu you might be getting the below error:

PHP Fatal error: Class 'mysqli' not found in ...

This is most likely because the php MySQL module have yet to be installed on your system. To get this done, you may use the below commands from a new terminal window.

gksudo apt-get install php5-mysql

More Ubuntu Server Tutorials

  1. Install cURL for PHP on Ubuntu
  2. Find the location of Apache error logs in Ubuntu
  3. Could not reliably determine the servers fully qualified domain name
  4. NameVirtualHost *:80 has no VirtualHosts