'enable PHP in apache mac m1
I try to install php on a mac m1 working with apache,
brew install php
It looks fine in CLI
php -version PHP 8.1.2 (cli) (built: Jan 21 2022 04:34:05) (NTS)
So i try to load the module in the /etc/apache2/httpd.conf file like this :
LoadModule php_module /opt/homebrew/opt/[email protected]/lib/httpd/modules/libphp.so
I try different paths but although I can reload apache without problem, I can't access an index.php page with php code in it, this is the only error messgae I ve got in error.log:
[pid 80745] AH00169: caught SIGTERM, shutting down
How can i fix this ?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
