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)
$ 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