Priti's Technical Corner

March 13, 2013

PhpMyAdmin Error – The mysqli extension is missing. Please check your PHP configuration [CentOs]

Filed under: Apache, CentOS, Mysql, PHP — Tags: , — pritisolanki @ 6:09 am

Recently , I came across with following error on a CentOS6 machine on my colleague’s  machine.

 The mysqli extension is missing. Please check your PHP configuration…

As I was sure about my installation I started looking for a possible fix on google. I checked the output of phpinfo ()  and found there is no lib related to mysqli. After trying all option and no luck  I thought of trying from starting hence I run following command in terminal.

php -m | grep –i mysqli

I noticed I don’t have mysqli install !. Run following command

yum install php-mysql

It will install the “php-mysql” as per repository set on CentOS.

service httpd restart

service mysql restart

Refresh the url http://localhost/phpmyadmin page received a pop up to enter username/password ..but with some reason at my end password was incorrect so I did following

mysqladmin -u root password NEWPASSWORD

This time it worked for me :).



  1. its working fine….thank you

    Comment by jaffer — May 11, 2013 @ 6:06 am

  2. I am trying to execute open source classified files but got this error:( MySQLi extension for PHP is required)
    Somebody please help me how to resolve this issue?

    Comment by Kashif — June 20, 2013 @ 8:03 pm

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at

%d bloggers like this: