linux - mysqli extension is missing in phpMyAdmin on RedHat 5.9 Server
2014-07
We have installed Apache, PHP, MySQL, and attempted to install phpMyAdmin. When going to phpMyAdmin in the browser, we are presented with "The mbstring extension is missing."
We are unable to get into phpMyAdmin. When we try to install php-mbstring we are presented with php53-common conflicts with php-common. This is being done on a Red Hat 5.9 Server.
We installed mbstring by doing
yum install php53-mbstring
Now we receive the following error "the mysqli extension is missing..." in phpMyAdmin. We added extension=mysqli.so
into our php.ini file, but the issue persists.
Is php-mysql
installed?
$yum info php-mysql
will tell you (it should say installed
next to Repo
). Install it with:-
#yum install php-mysql
If it was installed, have you restarted Apache since installing it?
I get this error message on the phpMyAdmin login page:
- phpMyAdmin: Cannot load mcrypt extension. Please check your PHP configuration.
Does someone knows the reason for it?
Thanks, Udo
The most likely explanation is that the mcrypt add-on for php is not installed.
Try logging in and running the following:
sudo apt-get install php5-mcrypt
sudo /etc/init.d/apache2 restart
I expect the first command will install the missing package. The second command restarts apache so that the mcrypt add-on is activated.
If you get a message that php5-mcrypt is already installed we'll have to do some more digging.