无法更新到php 5.4 - AWS ec2

 H_debug 发布于 2022-12-20 14:15

我的实例上有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/

我有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

但如果我跑了例如:

[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 ~]$

编辑:我想删除它们:

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

我该怎么办?

1 个回答
  • 这可能是一天晚,一美元短,但这对我有用.

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

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

    2022-12-20 14:18 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有