Always worked with linux and there were no problems with it, but now I started working on Mac OS X EL Capitan and the problem is as follows: php55 and php56 via homebrew and the problem is what I do in the php -v console php -v gives PHP 5.6.29 , and phpinfo() shows:

enter image description here

That is, the console version and the version for apache different!

Please help me change the version for apache to a newer version! I can not understand !

How to do it ?

  • What apache is used? Which bundled with OS X was going? If so, it uses php from / usr / bin or rather the one that showed up in the paths in the PATH environment variable, and homebrew puts software on alternative paths, like macports, which they usually add to the user environment. Therefore, you see one version in cli, and another in a doctor. - fens