I installed Apache 2.4.27 and PHP 7.1.7 from source, but I don't find a tip about how to install libapache2-mod-php7.1 or the required module.
How can I install libapache2-mod-php7.1 (or similar) to Apache 2 located under /user/local/apache2?
I have to install it on Debian 8.8 Jessie.
Basically it should be installed during installation of PHP:
So first check if it is already installed:
In case it is not installed the following command should work fine:
If it will fail check if it is available in repo:
I used
deb.sury.org
for php 7.1: