Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where is apache conf switched? #11

Open
alxvallejo opened this issue Nov 5, 2015 · 5 comments
Open

Where is apache conf switched? #11

alxvallejo opened this issue Nov 5, 2015 · 5 comments
Labels

Comments

@alxvallejo
Copy link

I have to manually load the php module every time i switch, there's no error reported when i switch.

@philcook
Copy link
Owner

philcook commented Nov 6, 2015

Hi @alxvallejo, thanks for getting in touch.

I presume from your message this is a problem with apache and not the CLI.

If you do a phpinfo(); and load this in a browser so its going through apache what php version is shown?

Are you using OSX built in apache or another alternative like nginx?
Only reason I ask is brew php switcher currently only works with OSX version of apache and modifies the /etc/apache2/httpd.conf.

Let me know on the above and I will try and help more if I can.
Cheers

@galdiolo
Copy link
Contributor

Hi @philcook, I had the same issue.
In my case I was using homebrew-apache instead of the OSX built in Apache.
I fixed it with this pull-request and now is working fine.
Thank you so much for brew-php-switcher!

@philcook
Copy link
Owner

Hi @galdiolo thanks for the feedback.

I was pretty sure it would be another build over the default OSX apache. Thanks for your PR as well, I just need to test it my end so that means setting up a install of apache via brew for me. Once I have verified it I will merge as the code looks sounds to me.

@philcook philcook added the bug label Nov 24, 2015
@vcraescu
Copy link

I'm having same issue here. I have to switch the modules by hand.

@hluchas
Copy link

hluchas commented May 2, 2017

Ty to instal php with --with-http24 argument and the proper configuration file is in path /usr/local/etc/apache2/2.4/httpd.conf.

In this way of installation is not used apache version from OSX installation (Sierra)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants