1

I've installed phpmyadmin (4.5.3.1) on CentOS 07 with apache server (httpd-2.4.18) and PHP 7.0.1. I get the error:

The mbstring extension is missing. Please check your PHP configuration.

So I searched the internet for this error and people came with the following solution, which I tried:

Installing the php-mbstring and php-mcrypt extensions:

yum install php-mbstring php-mcrypt php-gd

this command returns:

Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.viethosting.vn
 * epel: ftp.cuhk.edu.hk
 * extras: mirrors.viethosting.vn
 * updates: mirrors.viethosting.vn

Package php-mbstring-5.4.16-36.el7_1.x86_64 already installed and latest version

Package php-mcrypt-5.4.16-3.el7.x86_64 already installed and latest version

Package php-gd-5.4.16-36.el7_1.x86_64 already installed and latest version

Nothing to do

Please help me!

Ghasem
  • 14,455
  • 21
  • 138
  • 171
Nam Phương Lê
  • 11
  • 1
  • 1
  • 3

2 Answers2

6

I was wondering for like 2 hours for this issue and the only thing I missed was restarting php-fpm along with httpd.

So this freaking line solved my headache:

systemctl restart php-fpm
Ghasem
  • 14,455
  • 21
  • 138
  • 171
1

You need to check your php.ini and make sure it is loading the mbstring extension, or load it at runtime:

Here for the ini extension loading:

How do I configure php to enable pdo and include mysqli on CentOS?

Here for runtime loading

http://php.net/manual/en/function.dl.php

Community
  • 1
  • 1
mikeb
  • 10,578
  • 7
  • 62
  • 120