php 7 - Add PHP to apache on mac os? -
i tried upgrade php 5.6 php 7, caused there error trying of method: https://coolestguidesontheplanet.com/upgrade-php-on-osx/
uninstalled , tried install php 7 on brew, works still not added apache, in browser see still pure php code.
i tried add line httpd.conf no changes:
loadmodule php7_module /usr/local/opt/php70/libexec/apache2/libphp7.so
the path correct, knows how can solve this?
you may need add following declaration httpd.conf apache parse php files via php7_module:
addtype application/x-httpd-php .php
restarting of apache may required new settings take effect.
Comments
Post a Comment