I'm trying to get a script working to bring up new Amazon Linux EC2 instances with php55 and the Amazon PHP sdk. However, I'm running into a problem that I think is caused by PHP version conflicts. I think there's something I'm missing about how yum works in this case.
To boil it down to the simplest case, if I run:
yum install -y httpd24 php55 php-amazon-sdk2
I get "Error: php55-common conflicts with php-common-5.3.29-1.7.amzn1.x86_64"
However, if I run:
yum install -y httpd24 php55
And then separately run:
yum install -y php-amazon-sdk2
It works just fine. To be clear, there's no version of PHP present on the system at all when I am running these commands, so it's not conflicting with something that's already there.
I'm not very familiar with how yum dependencies work, but it seems like this is indicating that php-amazon-sdk2 is fine with php55, but for some reason it's trying to force php53 if I install it all at the same time. What is the proper way to fix this (meaning, I don't want to just force it to install, ignoring dependencies, but I also don't want to have to do these in separate steps)?
yum install -y php-amazon-sdk2 php55 httpd24
-- However I agree with @ceejayoz that you should use composer to manage this dependency as opposed to the yum repos.