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

时间:2023-01-26 12:37:28

When I try to follow this tutorial from amazon (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html)

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

I get a series of errors:

我犯了一系列错误

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

This was a brand new amazon linux ami and I'm following their tutorial line for line. Am I doing something wrong?

这是一个全新的amazon linux ami,我正在跟随他们的教程。我做错什么了吗?

2 个解决方案

#1


4  

You should install php5.6 version , you are try install old version .

您应该安装php5.6版本,您尝试安装旧版本。

Try this : yum install php56-pdo

试试这个:yum安装php56-pdo。

#2


0  

You must remove all package that conflicts as php-pdo, php-common, httpd-tools, httpd...

您必须删除所有冲突的包,如php-pdo、php-common、httpd-tools、httpd…

Ex: sudo yum remove php* httpd httpd-tools

#1


4  

You should install php5.6 version , you are try install old version .

您应该安装php5.6版本,您尝试安装旧版本。

Try this : yum install php56-pdo

试试这个:yum安装php56-pdo。

#2


0  

You must remove all package that conflicts as php-pdo, php-common, httpd-tools, httpd...

您必须删除所有冲突的包,如php-pdo、php-common、httpd-tools、httpd…

Ex: sudo yum remove php* httpd httpd-tools