Apache stops working after installing Homebrew PHP (which is missing on Monterey)
1
vote
0
answers
1154
views
Hello I have followed these instructions to configure builtin Apache web server on Macos 12.1, although I have realised that PHP was removed by Apple on Monterey.
As such, I have installed homebrew and installed PHP from there, however, now Apache won't work, since the instructions below are not commented in
httpd.conf
:
LoadModule php_module /opt/homebrew/opt/php/lib/httpd/modules/libphp.so
SetHandler application/x-httpd-php
Attempting to open localhost through Chrome, will throw:
This site can’t be reached127.0.0.1 refused to connect.
Try:
Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED
Asked by Riccardo
(283 rep)
Dec 15, 2021, 02:19 PM
Last activity: Sep 24, 2022, 09:01 AM
Last activity: Sep 24, 2022, 09:01 AM