PhpMyAdmin 安装错误
我刚刚在 Linux Fedora 13 上使用 PHP 5.3.3 安装了 phpmyadmin。我收到以下 2 个错误:
第一:我在登录屏幕上收到以下错误:
无法加载 mcrypt 扩展。请 检查您的 PHP 配置。
- 我在 google 上搜索到的解决方案是 yum install mcrypt 并在 /etc/php.ini 中启用它,并使用“
extension=php_mcrypt.dll
extension=php_mcrypt_filter.dll
Did all that, but no go”。
当我登录时会出现第二个:
mbstring PHP 扩展不是 发现并且您似乎正在使用 多字节字符集。如果没有 mbstring 扩展 phpMyAdmin 是 无法正确分割字符串并且 这可能会导致意想不到的结果。
想知道 a) 我该如何解决这些问题以及 b) 它们会影响什么?
谢谢-
I've just installed phpmyadmin on Linux Fedora 13 with PHP 5.3.3. I get the following 2 errors:
First: I get this on the login screen:
Cannot load mcrypt extension. Please
check your PHP configuration.
-The solutions I googled for this one was to yum install mcrypt and enable it in /etc/php.ini with
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.
Wondering a) How can I fix these and b) What do they affect?
Thanks-
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
完整答案:
无需编辑 php.ini
感谢 goreSplatter 将我推向正确的方向
FULL ANSWER:
no php.ini editing needed
Thanks to goreSplatter for shoving me in right direction
通过检查 $_SERVER['PHPRC'] 来查看正在加载哪个资源文件。该值指向 PHP 查找 php.ini 的目录。我怀疑它是
/etc
。然后安装正确的软件包,即
php-mcrypt
。Look which resource file is being loaded by examining
$_SERVER['PHPRC']
. This value points to the directory where PHP looks forphp.ini
. I doubt that it's/etc
.Then install the right package, which is
php-mcrypt
.这个命令解决了我的问题:
This command solved my issue:
如果你使用的是 Ubuntu,
那么后面的命令
应该可以工作。
In case you are using Ubuntu
followed by
should work.
在 Ubuntu 中,通过安装以下软件包来解决此问题似乎很简单:
执行此命令可有效解决报告的问题,确保无缝功能。
In Ubuntu, resolving this issue appears to be straightforward with the installation of the following packages:
Executing this command efficiently addresses the reported problem, ensuring seamless functionality.
并重新启动阿帕奇。
and restart Apache.