amazon-web-services - 为什么我不能在 Amazon ec2 上安装 LAMP 堆栈?

标签 amazon-web-services amazon-ec2

当我尝试从亚马逊 (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html) 学习本教程时

我收到一系列错误:

Error: php56-pdo conflicts with php-pdo-5.3.29-1.8.amzn1.x86_64
Error: httpd24-tools conflicts with httpd-tools-2.2.29-1.5.amzn1.x86_64
Error: php56-common conflicts with php-common-5.3.29-1.8.amzn1.x86_64
Error: httpd24 conflicts with httpd-2.2.29-1.5.amzn1.x86_64
Error: php56-process conflicts with php-process-5.3.29-1.8.amzn1.x86_64
Error: php56 conflicts with php-5.3.29-1.8.amzn1.x86_64
Error: php56-xml conflicts with php-xml-5.3.29-1.8.amzn1.x86_64
Error: php56-cli conflicts with php-cli-5.3.29-1.8.amzn1.x86_64
Error: php-mysql conflicts with php56-mysqlnd-5.6.8-1.111.amzn1.x86_64

这是一个全新的 amazon linux ami,我正在逐行学习他们的教程。难道我做错了什么?

最佳答案

你应该安装php5.6版本,你正在尝试安装旧版本。

试试这个: yum 安装 php56-pdo

关于amazon-web-services - 为什么我不能在 Amazon ec2 上安装 LAMP 堆栈?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30271084/

相关文章:

amazon-web-services - 将相同的生命周期规则应用于多个存储桶

postgresql - 无法通过主机名连接到 RDS

amazon-ec2 - EC2/Rackspace/Eucalyptus/OpenStack 上的库/开发平台

javascript - 节点 cron 未在 EC2 上运行

PHP 解析 Amazon EC2 实例 'launchTime'

typescript - "TypeError: hashConstructor is not a constructor",在 AWS-Lambda 上使用 "@aws-sdk/signature-v4"时出错

amazon-web-services - AWS IAM 策略 : Tag only untagged resources

ruby-on-rails - Heroku:在/app/config/storage.yml 中找不到 Active Storage 配置(运行时错误)

javascript - 如何使用 AWS Cognito SDK 使用 NodeJS 对来自 REST 服务的用户进行身份验证?

tomcat - 如何在tomcat中监听两个端口号?