首页 文章

亚马逊网络服务phpmyadmin:缺少mbstring扩展名

提问于
浏览
7

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

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

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

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

Install the php-mbstring extension:

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

3 回答

  • 33

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

    sudo yum install php56-mbstring

  • 4

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

  • 0

    在我的情况下,我只需要重新启动httpd服务:

    service httpd restart
    

相关问题