mbstring扩展名丢失 [英] The mbstring extension is missing

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

问题描述

我是Linux新手.在我的Linux Mint 18.1上安装了apache2,mysql-server,php 7.0和phpmyadmin. 安装进行得很好,但是localhost/phpmyadmin给出了错误(请参见标题).

I'm new to linux. Installed apache2, mysql-server, php 7.0 and phpmyadmin on my Linux Mint 18.1. Installation went fine, but localhost/phpmyadmin gives error (see title).

尝试:

  • 取消注释php.ini中的"extension_dir"
  • 取消注释php.ini中的mbstring.dll扩展名
  • 建立从/var/www/html/phpmyadmin到/usr/share/phpmyadmin的链接
  • 重新安装php7.0-mbstring

但都不起作用.

我也一直在重启Apache.

I've been restarting Apache as well.

推荐答案

如果您已正确运行Apache和PHP,则应在PHP上安装mbstring扩展名并重新启动Apache:

If you have Apache and PHP running correctly, you should install the mbstring extension on PHP and restart Apache:

sudo apt-get install php7.0-mbstring
sudo service httpd restart

重启Apache是​​大多数人忘记的步骤.当您安装任何PHP扩展时,某些发行版将自行重启Apache,而其他发行版则不会.

Restarting Apache is a step that most people forget about. Some distributions will restart Apache by themselves when you install any PHP extension, other don't.

这篇关于mbstring扩展名丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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