【问题标题】:Amazon web services phpmyadmin: The mbstring extension is missing亚马逊网络服务 phpmyadmin:缺少 mbstring 扩展
【发布时间】:2015-07-29 20:19:05
【问题描述】:

我已经在本教程的手上安装了 phpMyAdmin: https://gist.github.com/suvozit/8998731 并将我的 RDS 实例连接为 /var/www/html/phpmyadmin/config.inc.php 文件中的主机。

现在我访问 example.com/phpmyadmin/index.php 时出现以下错误:

缺少 mbstring 扩展名。请检查您的 PHP 配置。

所以我在互联网上搜索了这个错误,人们提出了以下解决方案,我尝试了:

安装 php-mbstring 扩展:

yum install php-mbstring 

当我输入此命令时,进程开始,但返回以下行:

-> Processing Conflict: php55-common-5.5.24-1.100.amzn1.x86_64 php-common <5.5.24-1.100.amzn1 conflict
-> Processing Conflict: php55-mbstring-5.5.24-1.100.amzn1.x86_64 php-mbstring <5.5.24-1.100.amzn1 conflict
-> Processing Conflict: php56-common-5.6.8-1.111.amzn1.x86_64 php-common <5.5.22-1.98 conflict

-> Ready to resolve dependencies
Error: php55-mbstring conflicts with php-mbstring 5.3.29-1.8.amzn1.x86_64
Error: php56-common conflicts with php-common-5.3.29-1.8.amzn1.x86_64
Error: php55-common conflicts with php-common-5.3.29-1.8.amzn1.x86_64
  You could try using --skip-broken to work around the problem
  You could try: rpm -Va --nofiles --nodigest

$ php -v 返回:

PHP 5.6.8 (cli) (built: Apr 17 2015 18:04:37) 
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies

【问题讨论】:

    标签: php mysql amazon-web-services amazon-ec2 phpmyadmin


    【解决方案1】:

    您需要以超级用户身份安装 PHP 5.6 版本。

    sudo yum install php56-mbstring

    【讨论】:

    • 完成了,但它说它已经安装了,所以我不明白为什么会出现它丢失的错误..
    • 你能告诉我你正在运行什么版本的php,因为我认为你一直在安装两个不同版本的文件。输入php -v
    • 这是可能的。检查我的问题中的输出。
    • 尝试使用yum install php56-mbstring,因为您使用的是 PHP 5.6 而不是 PHP 5.5。您需要对使用 php55-* 前缀安装的任何其他库执行相同操作。
    • 谢谢!这行得通。你知道如何删除旧安装的扩展程序吗?
    【解决方案2】:

    问题在于包冲突。所以在安装 php-gd 时需要指定版本。我通过运行修复它: sudo yum install php55-gd

    【讨论】:

      【解决方案3】:

      就我而言,我只需要重新启动 httpd 服务:

      service httpd restart
      

      【讨论】:

        猜你喜欢
        • 2018-12-11
        • 2013-08-25
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2018-05-22
        • 2020-11-19
        • 2016-06-19
        • 2017-04-23
        相关资源
        最近更新 更多