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.
MIT License
961 stars 90 forks source link

apache config does not change #83

Closed eydun closed 1 year ago

eydun commented 2 years ago

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.

philcook commented 2 years ago

@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.

eydun commented 2 years ago

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/