Fatal error: Call to undefined function mysqli_connect() in /home/user/public_html/includes/connection.php

Error Message


Fatal error: Call to undefined function mysqli_connect() in /home/user/public_html/includes/connection.php


Cause


MySQL Improved extension was disabled in hosting environment.


Solution


This error was fixed by enabling the MySQL Improved extension and recompiling the Apache via EasyApache.

The MySQLi extension is an improved version of the older PHP MySQL driver used in the PHP to provide an interface with MySQL databases. To enable Improved extension from WHM, refer to  following knowledgebase article.

Enable/Disable PHP Extensions Using EasyApache


  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

How to Enable Greylisting in WHM?

Greylisting is a WHM tool for the Linux server that is used to prevent incoming spamming on your...

How to install memcache in WHM/cPanel server (CentOS)?

Following article will assist you to install Memcache in cPanel/WHM server. Login into your...

Fix - cPanel Account Restore Failed: Failed to create the account. A database owner with the name “cpaneluser” already exists

One of our customers was migrated from another cPanel host. While restoring his account to our...

How to Allow Remote Connection to MySQL Server in cPanel/WHM Server?

To prevent potential security risks to MySQL server, by default remote MySQL connections are...

Fix :: file open /home/user/etc/domainname/passwd failed with error no such file or directory

Problem Statement Getting error while creating an email account from cPanel. Error Message...