How do I switch from a native php version to a version installed by Brew on Maverick?

Asked

Viewed 136 times

3

I’ve been updating by Brew with the php but when I use phpinfo() is still in the version of php system, how to toggle or change?

  • Just one question: To avoid this sort of thing, wouldn’t it be more interesting if you started working with Vagrant? Even today I had this kind of problem and using Vagrant things became much easier.

1 answer

1

See which folder the php you installed by Brew is in and modify the web server configuration file to use the modules there.

If you want to delete by command line if you have entered in /usr/bin/php and make a symbolic link of the version you installed by Brew

Browser other questions tagged

You are not signed in. Login or sign up in order to post.