openSUSE phpmyadmin 错误:缺少 mbstring 扩展 [英] openSUSE phpmyadmin Error: The mbstring extension is missing

查看:19
本文介绍了openSUSE phpmyadmin 错误:缺少 mbstring 扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

phpMyAdmin - 错误

phpMyAdmin - Error

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

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

我已经安装了 php-mbstring 和 php-gettext,我的 php 版本是 php7.然后我通过zypper安装了php和phpmyadmin.

I hava installed php-mbstring and php-gettext, my php version is php7. And I installed php and phpmyadmin through zypper.

推荐答案

  1. 安装mbstring并重启你的apache:

  1. install mbstring and restart your apache:

sudo apt-get install php-mbstring
sudo service apache restart

然后删除;从你的 php.ini 文件:

then remove ; from your php.ini file:

;extension=php_mbstring.dll

extension=php_mbstring.dll

如果它仍然不起作用..删除您的 php 设置,而不从您的 phpmyadmin 中删除数据库.重新安装.

If it still doesn't work..remove your php setup, without removing the databases from your phpmyadmin. Reinstall it.

注意:*如果你想全部删除,都提到你需要的那个.

NB: * if you want to remove all, all mention the one you need to.

sudo apt-get remove php* 

然后安装你需要的php版本的php和模块.在这里,php 7.1:

Then install the php and modules of the php version that you need. here, php 7.1:

sudo apt-get install php7.1 php7.1-cli php7.1-common libapache2-mod-php7.1 php7.1-mysql php7.1-fpm php7.1-curl php7.1-gd php7.1-bz2 php7.1-mcrypt php7.1-json php7.1-tidy php7.1-mbstring php-redis php-memcached

重启你的apache并检查php版本.

restart your apache and check the php version.

sudo service apache restart
php -v

当所有这些都完成后,执行以下命令强制启用mbstring并重新启动您的apache.

when all this is done, execute the following command to enable mbstring forcefully and restart your apache.

sudo phpenmod mbstring
sudo service apache restart

按照 php 手册进行 php 升级:

following the php manual for php upgrade:

希望有帮助.它对我有用 :)

Hope it helps. It did to me :)

这篇关于openSUSE phpmyadmin 错误:缺少 mbstring 扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆