Mysql – Trying to install phptheadmin on centos – thesqli missing

centos5MySQLPHP

Here is the error I get when trying to open my phpmyadmin directory:

phpMyAdmin - Error
The mysqli extension is missing. Please check your PHP configuration.

I have done the steps in the following tutorial:
http://chrisjean.com/2011/06/24/upgrade-php-5-1-or-5-2-to-5-3-on-centos/
(Only until the mcrypt section) (I wanted to upgrade php to 5.3 because phpmyadmin said I needed php 5.2+)

I've tried to install mysqli and go to the php.ini (changing mysqli.default_host = localhost) but I had no luck getting rid of this error message and starting to work with phpmyadmin.

Do you know any trick that could help me?

Best Answer

I just had the exact same problem with my installation of an Ubuntu server. It turned out all I had to do was
sudo apt-get install php5-mysqli

You could try the equivalent to centOS(and your situation) and see if it works
yum install php53-mysqli

EDIT:
Scratch the previous commands, just use these two:
yum install php-mysql and yum install php-mysqli

Related Topic