Cannot update php 5.4 - AWS ec2

I had an instance of php5.3 and httpd2.2. Now I need to upgrade to php 5.4.

I follow these instructions:

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

I have sudo yum removeall the conflicts, and now the other two:

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'm trying to delete them:

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

But I understand:

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?

+4
source share
3 answers

Before installing a new version, you need to uninstall the old version httpd.

yum remove httpd-tools-2.2.29-1.4.amzn1.x86_64 httpd-2.2.29-1.4.amzn1.x86_64
+3
source

It might be a day later and a short dollar, but it worked for me.

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

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

+7
source

PHP55.

httpd PHP :

 sudo yum install -y httpd24 php55 php55-common php55-devel

, httpd php, php-devel,

Error: httpd24-tools conflicts with httpd-tools-2.2.29-1.4.amzn1.x86_64
Error: php55-common conflicts with php-common-5.3.29-1.7.amzn1.x86_64
Error: php55-cli conflicts with php-cli-5.3.29-1.7.amzn1.x86_64
Error: httpd24 conflicts with httpd-2.2.29-1.4.amzn1.x86_64
Error: php55 conflicts with php-5.3.29-1.7.amzn1.x86_64

, . : PHP Amazon Linux AMI

PD:

+1
source

All Articles