Apache do not load libphp7.so module

Saw Yu Nwe picture Saw Yu Nwe · Mar 14, 2017 · Viewed 19.3k times · Source

I installed php7.1 using brew install php71 --with-httpd24 and unlinked httpd24. I got working version of php7.1 together with libphp7.so.
php7.1 running

But when I add LoadModule php7_module /usr/local/opt/php71/libexec/apache2/libphp7.so to httpd.conf file, php files stop working. When I uncommented back LoadModule php5_module libexec/apache2/libphp5.so everything works fine. Any Idea?

PS.OS Version: 10.12.2

Answer

Maxim Strutinskiy picture Maxim Strutinskiy · Oct 31, 2017

[Ubuntu 16.04] - Check next file: /etc/apache2/mods-available/php7.1.load

LoadModule php7_module /usr/lib/apache2/modules/libphp7.1.so