我刚刚在Linux Fedora 13上使用PHP 5.3.3安装了PhpMyAdmin。我得到以下两个错误:

首先:我在登录屏幕上获取此内容:

无法加载McRypt扩展名。请检查您的PHP配置。

- 我为此搜索的解决方案是YUM安装McRypt,并在/etc/php.ini中启用它

extension=php_mcrypt.dll
extension=php_mcrypt_filter.dll

做了所有这些,但没有去。

当我登录时,第二个显示:

找不到MBSTRING PHP扩展名,您似乎正在使用多型Charset。如果没有MBSTRING扩展,则PhpMyAdmin将无法正确拆分字符串,并且可能会导致意外的结果。

想知道a)我该如何解决这些问题,b)它们会影响什么?

谢谢-

有帮助吗?

解决方案

查看通过检查哪个资源文件正在加载 $_SERVER['PHPRC']. 。此值指向PHP寻找的目录 php.ini. 。我怀疑是 /etc.

然后安装 包,是 php-mcrypt.

其他提示

完整答案:

yum install php-mycrypt
yum install php-mbstring

无需php.ini编辑

感谢Goresplatter将我推向正确的方向

这个命令解决了我的问题:

yum install php-mbstring

显然,在Ubuntu安装中,这将解决此问题:

     sudo apt-get install php-mbstring php7.0-mbstring

如果您正在使用Ubuntu

sudo apt-get install libapache2-mod-php7.0 
sudo apt-get install php7.0-mbstring

其次是

sudo service apache2 restart

应该管用。

sudo phpenmod mbstring

并重新启动Apache。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top