php - 亚马逊网络服务 phpmyadmin : The mbstring extension is missing

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

我已经在本教程的手上安装了 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

最佳答案

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

sudo yum install php56-mbstring

关于php - 亚马逊网络服务 phpmyadmin : The mbstring extension is missing,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30301321/

相关文章:

php - 为什么 Laravel 策略在 View/Blade 中不起作用?

php - php mysql 中的用户名和密码验证

mysql - 这两个mysql查询之间的区别?

javascript - 从AWS SDK描述地址检索IP

java - struts2强制将https url重定向到http

PHP:使用 optgroup 进行动态下拉

php - 有没有办法测试 php 代码是否兼容 php < 5.3.2

MySQL 对 group by 的混淆。为什么会发生这种情况?

php - 使用 php 在同一页面中显示输出

amazon-web-services - cloudformation 输出部分验证错误