Running FreeBSD 11, I am having trouble getting Apache 2.4 to work with PHP 7.1.
- Built apache24 from ports
- Built php71 from ports
Added index.php to DirectoryIndex (httpd.conf):
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>Added the following to the end of httpd.conf:
<FilesMatch .php$>
SetHandler None
ForceType text/plain
</FilesMatch>
<FilesMatch .phps$>
SetHandler application/x-httpd-php-source
</FilesMatch>
index.php output
PHP does not execute, still, and I am having trouble finding details and resources to figure this out, so I am hoping someone here can offer a bit of insight.