Linux PhpMyAdmin 安装错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4327230/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-05 00:11:57  来源:igfitidea点击:

PhpMyAdmin install errors

linuxphpmyadminphp-ini

提问by Yarin

I've just installed phpmyadmin on Linux Fedora 13 with PHP 5.3.3. I get the following 2 errors:

我刚刚在带有 PHP 5.3.3 的 Linux Fedora 13 上安装了 phpmyadmin。我收到以下 2 个错误:

First: I get this on the login screen:

第一:我在登录屏幕上得到这个:

Cannot load mcrypt extension. Please check your PHP configuration.

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

-The solutions I googled for this one was to yum install mcrypt and enable it in /etc/php.ini with

- 我在谷歌上搜索的解决方案是 yum 安装 mcrypt 并在 /etc/php.ini 中启用它

extension=php_mcrypt.dll
extension=php_mcrypt_filter.dll

Did all that, but no go.

做了这一切,但没有去。

This second one shows up when I login:

当我登录时,第二个出现:

The mbstring PHP extension was not found and you seem to be using a multibyte charset. Without the mbstring extension phpMyAdmin is unable to split strings correctly and it may result in unexpected results.

未找到 mbstring PHP 扩展并且您似乎使用了多字节字符集。如果没有 mbstring 扩展,phpMyAdmin 将无法正确拆分字符串,并且可能会导致意外结果。

Wondering a) How can I fix these and b) What do they affect?

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

Thanks-

谢谢-

采纳答案by Linus Kleen

Look which resource file is being loaded by examining $_SERVER['PHPRC']. This value points to the directory where PHP looks for php.ini. I doubt that it's /etc.

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

Then install the rightpackage, which is php-mcrypt.

然后安装正确的包,即php-mcrypt.

回答by Yarin

FULL ANSWER:

完整答案:

yum install php-mycrypt
yum install php-mbstring

no php.ini editing needed

无需 php.ini 编辑

Thanks to goreSplatter for shoving me in right direction

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

回答by Sanjay Patel

This command solved my issue:

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

yum install php-mbstring

回答by Felipe

And apparently in Ubuntu installing this will fix this issue:

显然在 Ubuntu 中安装它可以解决这个问题:

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

回答by Yash Rastogi

In case you are using Ubuntu

如果您使用的是 Ubuntu

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

followed by

其次是

sudo service apache2 restart

should work.

应该管用。

回答by suresh

sudo phpenmod mbstring

and restart Apache.

并重新启动Apache。