httpd-mmn = 20051115 required by "yum install php"

drack picture drack · Jan 10, 2015 · Viewed 13.2k times · Source

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

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)

Answer

Jorge picture Jorge · Nov 12, 2015
$ sudo nano /etc/yum.conf

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*

Save and close yum.conf

Try again:

$ sudo yum install php