philcook / brew-php-switcher

Brew PHP switcher is a simple shell script to switch your apache and CLI quickly between major versions of PHP. If you support multiple products/projects that are built using either brand new or old legacy PHP functionality. For users of Homebrew (or brew for short) currently only.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

apache config does not change

eydun opened this issue · comments

commented

Thanks for building this great brew package.

I have used it for switching between php 7.4 and php 8.1 in the terminal. It works great.

But it does not modify the apache httpd config file for the chosen php version.

I am on Mac (M1 Max).

Please advice.

@eydun can I ask how you have installed apache? Is it the native or via Homebrew?
Also what version on MacOs are you running as they might have changed something in a later version that I need to test and update the code.

commented

Thank you for the prompt reply.

Also what version on MacOs are you running

It is Monterey ver 12.3.

how you have installed apache? Is it the native or via Homebrew?

It is via Homebrew. The location of httpd.conf is /opt/homebrew/etc/httpd/