Installed Apache 2.4 (httpd) using Home Brew, can I get it to use macOS' php7?
Just install php with brew (and leave Apple's PHP alone):


brew install php (requires a lot of additional packets)
Modify /usr/local/etc/httpd/httpd.conf at the end of the LoadModule section (~ line 182) and add

LoadModule php7_module /usr/local/opt/php/lib/httpd/modules/libphp7.so

&lt;FilesMatch \.php$&gt;
    SetHandler application/x-httpd-php
&lt;/FilesMatch&gt;


Check that DirectoryIndex (~line 286) includes index.php

DirectoryIndex index.php index.html

Start php:

brew services start php

Restart apache