"yum install php"要求httpd-mmn = 20051115. [英] httpd-mmn = 20051115 required by "yum install php"

查看:686
本文介绍了"yum install php"要求httpd-mmn = 20051115.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从源代码安装了httpd(apache 2.4.6),现在我想安装PHP.但是yum install php吐出错误:

I installed httpd (apache 2.4.6) from source and now I want to install PHP. But yum install php spits out the error:

Error: Package: php-5.3.3-40.el6_6.x86_64 (updates)
       Requires: httpd-mmn = 20051115
       Installed: httpd-2.4.6-1.x86_64 (installed)
           httpd-mmn = 20120211
       Available: httpd-2.2.15-39.el6.centos.x86_64 (base)
           httpd-mmn = 20051115

我也尝试过使用webtaticiusremi.都具有相同的错误.我使用rpm-build构建了Apache.

I've also tried with webtatic, ius and remi. All with the same error. I built apache using rpm-build.

$ httpd -v
Server version: Apache/2.4.6 (Unix)

推荐答案

$ sudo nano /etc/yum.conf

从此行中删除httpd *和php *:

Remove httpd* and php* from this line:

exclude=apache* bind-chroot courier* dovecot* exim* filesystem httpd* mod_ssl* mydns* mysql* nsd* perl* php* proftpd* pure-ftpd* ruby* spamassassin* squirrelmail*

保存并关闭yum.conf

Save and close yum.conf

再试一次:

$ sudo yum install php

这篇关于"yum install php"要求httpd-mmn = 20051115.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆