How to Update PHP with Yum on Amazon Linux

amazon-amiamazon-linuxyum

I have Amazon Linux on EC2, AMI 2013.09. I followed the LAMP install tutorial, http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html, and ended up with PHP5.3 installed.

In answer to this question here, Amazon Linux Version Details, ceejay0z explains that I can upgrade to PHP5.5 using yum install php55. When I do, however, I get errors relating to conflicts (at the end of dependency checking).

So, my question is, how do I proceed from here? Do I want to erase the existing PHP install, then install the new one? Upgrade? Update? Update-to? (In case it's not obvious, I have not used yum before…)

Best Answer

Worked for me:

yum remove php httpd php-cli php-xml php-common httpd-tools
yum install php55 php55-mysql php55-pdo
Related Topic