Centos – Install apache 2.4 and php7 on centos 6

apache-2.4centoscentos6php7

I would need to install / compile apache 2.4 and PHP7 to work together on Centos 6 (specifically on 6.5). I've tried the ius packages, but while apache 2.4 works correctly, it seems that php7 still depends on apache 2.2. By trying to compile php7 by myself, if I configure the build by flagging with --with-apxs2 what I get is a:

Configuring SAPI modules
checking for Apache 2.0 handler-module support via DSO through APXS...

Sorry, I cannot run apxs.  Possible reasons follow:

1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is displayed)

but unfortunately I don'see any apxs support by installing httpd24u. Any hints?

Best Answer

PHP 7 is available in the Remi-Repository: http://blog.remirepo.net/post/2015/03/25/PHP-7.0-as-Software-Collection

For Apache 2.4 you can use the Software Collections ( SCL ) Repository https://www.softwarecollections.org/en/scls/rhscl/httpd24/

Wiki Link to SCL: https://wiki.centos.org/AdditionalResources/Repositories/SCL