无法更新到php 5.4 - AWS ec2

gho*_*der 4 php apache amazon-web-services

我的实例上有php5.3和httpd2.2.现在我需要升级到php 5.4.

我遵循这些指示:

http://codingsteps.com/install-apache-2-4-php-5-4-php-apc-on-amazon-ec2-with-amazon-linux/
Run Code Online (Sandbox Code Playgroud)

我有sudo yum remove所有的冲突,现在剩下的两个是:

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
Run Code Online (Sandbox Code Playgroud)

但如果我跑了例如:

[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 ~]$
Run Code Online (Sandbox Code Playgroud)

编辑:我想删除它们:

sudo yum remove httpd-tools-2.2.29-1.4.amzn1.x86_64
Run Code Online (Sandbox Code Playgroud)

但我明白了:

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
Run Code Online (Sandbox Code Playgroud)

我该怎么办?

sea*_*ass 7

这可能是一天晚,一美元短,但这对我有用.

 sudo yum remove httpd* php*
 sudo yum install httpd24 php54
Run Code Online (Sandbox Code Playgroud)

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