在centos 6上安装apache 2.4和php7

我需要安装/编译Apache 2.4和PHP7在Centos 6(特别是6.5)上一起工作。 我已经尝试过ius包,但是当apache 2.4正常工作时,似乎php7仍然依赖于apache 2.2。 通过尝试自己编译php7,如果我通过用--with-apxs2标记来configuration构build,我得到的是:

 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) 

但不幸的是,我不能通过安装httpd24u支持任何apxs支持。 任何提示?

Remi-Repository中提供了PHP 7: http : //blog.remirepo.net/post/2015/03/25/PHP-7.0-as-Software-Collection

对于Apache 2.4,您可以使用软件集合(SCL)存储库https://www.softwarecollections.org/en/scls/rhscl/httpd24/

Wiki链接到SCL: https : //wiki.centos.org/AdditionalResources/Repositories/SCL