openSUSE phpmyadmin错误:缺少mbstring扩展名 [英] openSUSE phpmyadmin Error: The mbstring extension is missing
问题描述
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.
推荐答案
-
安装mbstring并重新启动apache:
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升级:
希望它会有所帮助. 它对我有用:)
Hope it helps. It did to me :)
这篇关于openSUSE phpmyadmin错误:缺少mbstring扩展名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!