Why can't I install LAMP stack on Amazon ec2?

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

I am getting 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 the new amazon linux ami and I am following their tutorial line. Am I doing something wrong?

+3


source to share


2 answers


You have to install php5.6 version, try to install older version.



Try this: yum install php56-pdo

+4


source


You have to remove all package that conflicts like php-pdo, php-common, httpd-tools, httpd ...



Ex: sudo yum remove php* httpd httpd-tools

      

0


source







All Articles