14

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...)

  • you should list your errors so that people can help – Drew Khoury Jan 11 '14 at 9:33
  • how did you get this working? – Pochi Jan 17 '14 at 19:18
  • Chiquis, see answer below. That's as far as I got. The next problem I struck was that the PDO driver for MySQL was not in the repo, (not for 5.5 anyhow). I trashed the machine and went to Ubuntu 12.04. Happy days. – Kim Jan 17 '14 at 20:13
23

Worked for me:

yum remove php httpd php-cli php-xml php-common httpd-tools
yum install php55 php55-mysql php55-pdo
  • 2
    I get "No package php55-mysql available." – Mark Kasson May 30 '14 at 21:08
  • 3
    @MarkKasson Try php55-mysqlnd or php-mysqlnd. I think I might have been suppressing errors when I ran that, sorry – Benubird May 31 '14 at 8:04
  • 2
    My particular need solved with sudo yum install php-mysqli -y. I recall seeing that it loaded php-mysqlnd. – Mark Kasson May 31 '14 at 10:53
  • Can I do this with #yum upgrade php5.6 ? will this upgrade php5.3 to php5.6 without dependencies issues ? or removing 5.3 in installing 5.6 is the only better way – Ashish Karpe Aug 22 '16 at 7:17
0

OK, so I seem to have got this working. Not 100% sure how, but I think I had to erase php and httpd, then install php55. Not sure if I had to install httpd24 separately?

  • 2
    You shouldn't post edits to your question as answers. – Drew Khoury Jan 11 '14 at 9:33

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.