Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot update to php 5.4 - AWS ec2

I was having php5.3 and httpd2.2 on my instance. Now I need to upgrade to php 5.4.

I am following these instructions :

http://codingsteps.com/install-apache-2-4-php-5-4-php-apc-on-amazon-ec2-with-amazon-linux/

I have sudo yum remove all the conflicts and now the remaining two are:

Error: httpd24-tools conflicts with httpd-tools-2.2.29-1.4.amzn1.x86_64
Error: httpd24 conflicts with httpd-2.2.29-1.4.amzn1.x86_64

But if I run for example :

[ec2-user@ip-172-31-44-86 ~]$ sudo yum install -y httpd24 php54
...
--> Finished Dependency Resolution
Error: httpd24-tools conflicts with httpd-tools-2.2.29-1.4.amzn1.x86_64
Error: httpd24 conflicts with httpd-2.2.29-1.4.amzn1.x86_64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
[ec2-user@ip-172-31-44-86 ~]$

EDIT : I am trying to remove them :

sudo yum remove httpd-tools-2.2.29-1.4.amzn1.x86_64

But I get that :

Loaded plugins: priorities, update-motd, upgrade-helper
No Match for argument: httpd-tools-2.2.29-1.4.amzn1.x86_64
No Packages marked for removal

What should I do?

like image 445
ghostrider Avatar asked Dec 20 '22 11:12

ghostrider


2 Answers

This might be a day late and a dollar short but this worked for me.

 sudo yum remove httpd* php*
 sudo yum install httpd24 php54

https://forums.aws.amazon.com/thread.jspa?messageID=465912

like image 192
seaBass Avatar answered Dec 21 '22 23:12

seaBass


You have to remove your old version of httpd prior to installing the new version.

yum remove httpd-tools-2.2.29-1.4.amzn1.x86_64 httpd-2.2.29-1.4.amzn1.x86_64
like image 29
silkfire Avatar answered Dec 22 '22 01:12

silkfire