CentOS 7:缺少 mbstring 扩展

1 php apache phpmyadmin centos7

我已经在 CentOS 07 上使用 apache 服务器(httpd-2.4.18)和 PHP 7.0.1 安装了 phpmyadmin(4.5.3.1)。我收到错误:

缺少 mbstring 扩展名。请检查您的 PHP 配置。

所以我在互联网上搜索了这个错误,人们提出了以下解决方案,我尝试过:

安装php-mbstringphp-mcrypt扩展:

yum install php-mbstring php-mcrypt php-gd
Run Code Online (Sandbox Code Playgroud)

此命令返回:

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
Run Code Online (Sandbox Code Playgroud)

请帮我!

Ale*_*lig 6

我为这个问题想了大约 2 个小时,我唯一错过的是php-fpmhttpd.

所以这条奇怪的线解决了我的头痛:

systemctl restart php-fpm
Run Code Online (Sandbox Code Playgroud)