PHP at MacOsx Yosemite

Posted on

Coding Problem :

Hello, when I run php –version:

PHP 5.5.14 (cli) (built: Sep  9 2014 19:09:25) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies

But I have another version of php in the / usr / local / php5 folder that I would like to make it default when using the php command in the terminal, how should I do it? If possible delete version 5.5. I use the fish as shel. Already tried to insert:

if status --is-login
    set PATH $PATH /usr/local/php5

But when I use the terminal via PHPStorm this setting no longer works.


asked by anonymous 23.10.2014 / 23:14

Answer :

Answer 1 :

Well folks, I solved my problem by setting:

set PATH $PATH /usr/local/php5

in the fish configuration file instead of

if status --is-login
  set PATH $PATH /usr/local/php5


Answer 2 :

Answer 3 :

Answer 4 :

Answer 5 :

Answer 6 :

Answer 7 :

Answer 8 :

Answer 9 :

Leave a Reply

Your email address will not be published. Required fields are marked *