PhpMyAdmin 安装错误

发布于 2024-10-05 15:01:16 字数 573 浏览 0 评论 0原文

我刚刚在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

作业与我同在 2024-10-12 15:01:16

完整答案:

yum install php-mycrypt
yum install php-mbstring

无需编辑 php.ini

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

FULL ANSWER:

yum install php-mycrypt
yum install php-mbstring

no php.ini editing needed

Thanks to goreSplatter for shoving me in right direction

水晶透心 2024-10-12 15:01:16

通过检查 $_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 for php.ini. I doubt that it's /etc.

Then install the right package, which is php-mcrypt.

前事休说 2024-10-12 15:01:16

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

yum install php-mbstring

This command solved my issue:

yum install php-mbstring
佞臣 2024-10-12 15:01:16

如果你使用的是 Ubuntu,

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

那么后面的命令

sudo service apache2 restart

应该可以工作。

In case you are using Ubuntu

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

followed by

sudo service apache2 restart

should work.

┈┾☆殇 2024-10-12 15:01:16

在 Ubuntu 中,通过安装以下软件包来解决此问题似乎很简单:

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

执行此命令可有效解决报告的问题,确保无缝功能。

In Ubuntu, resolving this issue appears to be straightforward with the installation of the following packages:

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

Executing this command efficiently addresses the reported problem, ensuring seamless functionality.

清风无影 2024-10-12 15:01:16
sudo phpenmod mbstring

并重新启动阿帕奇。

sudo phpenmod mbstring

and restart Apache.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文