将 mbstring 添加到 php7.0 但不添加到 php7.2

问题描述

在我的服务器上,PHPmyadmin 有一条错误消息:

PHPMyAdmin - Error The mbstring extension is missing. Please check your PHP configuration.

PHP7有两个版本:

  • cli : 路径 => /etc/PHP/7.2/cli
  • web : 路径 => /etc/PHP/7.0/apache2

我知道 Apache2 中没有安装 Mbstring 模块:

sudo a2enmod mbstring
ERROR: Module mbstring does not exist!

所以我想在PHP7.0中安装mbstring:

sudo apt-get install PHP7.0-mbstring
No version of the PHP7.0-mbstring package is available,but it exists in the database. 
This usually means that the package is missing,has become obsolete,or is only available from another source.
E: The package "PHP7.0-mbstring" does not have a version that can be installed

所以:

sudo apt-get install PHP-mbstring
PHP-mbstring is already the most recent version (1: 7.2 + 60ubuntu1).

但它在 7.2 中没用!我想要 7.0 的 mbstring!

我该怎么办?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)