Help Center › Hosting & cPanel

I am getting this error, Fatal error: Call to undefined function mysqli_connect() or ERROR: No MySQLi extension found. Please install it.

If you see an error like:

Fatal error: Call to undefined function mysqli_connect()

or

ERROR: No MySQLi extension found. Please install it.

the mysqli extension is already installed and turned on for every PHP version on our servers, so the cause is usually one of these:

  • Very old software. Scripts written for PHP 5 may use the old mysql_ functions, which were removed from PHP years ago. Update the script, plugin or CMS to a current version.
  • A custom php.ini. A php.ini or .user.ini file in your site's folder can override the server's settings. Rename it temporarily to see if the error goes away.

You can check which PHP version your domain uses in cPanel under Software > MultiPHP Manager (see How do I change my active PHP version?). If the error doesn't go away, open a support ticket with the full error message.