DEV Community

Discussion on: Switching between PHP versions with Homebrew

Collapse
 
mike_hasarms profile image
Mike Healy

Thanks.
Does this effect the CLI PHP only? Meaning, would I still need to reconfigure php-fpm or my local web server config to use the different versions?

Collapse
 
dcblog profile image
David Carr

I have this in my bash profile:

export PATH=$HOME/bin:/usr/local/bin:$PATH

Which takes care of linking to the PHP version I believe so it should work for both. I tend to use PHP's built in web server locally so the command line version works fine.