RHEL 7 includes rh-php70-php
in the official repository. However, this module does not install mod_php.
I have tried all of the approaches for installing rh-php70-* and none of them installs and registers the appropriate php module. How does one do it?
The package
rh-php70-php
contains the following files:These files enable use of
mod_php
version 7 with Apache 2.4. However, you should first enable the scl for the session, then run apache. For example:For information on how to make the scl active at boot time, give a look here
However, I strongly suggest you to use php7 via fpm, using the relevant
systemctl
service.