我的實例上有php5.3和httpd2.2。現在我需要升級到php 5.4。無法更新到PHP 5.4 - AWS ec2
我以下說明:
http://codingsteps.com/install-apache-2-4-php-5-4-php-apc-on-amazon-ec2-with-amazon-linux/
我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
但是如果我例如運行:
[[email protected] ~]$ 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
[[email protected] ~]$
編輯: 我想刪除它們:
sudo yum remove httpd-tools-2.2.29-1.4.amzn1.x86_64
,但我得到的是:
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
我應該怎麼辦?
是的,我已經試過了,但它們不能被刪除。請檢查我的編輯,請 – ghostrider 2014-09-20 18:29:45
安裝時,您可以嘗試跳過'httpd'參數嗎?像這樣:'sudo yum install -y php54' – silkfire 2014-09-20 20:29:02
這樣做並不是工作,實際上重新啓動apache,並且退出aws使它工作的幾次 - 儘管我一直運行完全相同的remove命令。 – ghostrider 2014-09-21 11:36:33