Centos – enabling thesqli extension on centos server

centosMySQLphp5

I want to enable mysqli extension on Centos server where PHP 5 is installed. After searching online, I saw many
people talking about uncommenting mysqli related line in the php.ini and I couldn't find anything
related to mysqli in my php.ini file.

The following returns nothing : php -m | grep mysqli

How can I trouble shoot this problem?

Best Answer

Have you installed mysqli? If not, you'll need to run:

yum install php-mysqli

If that doesn't work anymore, you could try easyapache and select mysqli.