PHP at MacOsx Yosemite

6

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
end

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

    
asked by anonymous 23.10.2014 / 23:14

1 answer

2

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
end
    
24.10.2014 / 03:28