PHP on Macosx Yosemite

Asked

Viewed 64 times

6

Hello, when running 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 would like to make it default when using the php command on the terminal, how should I do? If possible delete version 5.5. I use fish as Shel. I have tried inserting:

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

But when I use the terminal via Phpstorm this configuration no longer works.

1 answer

2


Well guys, I solved my problem by setando:

set PATH $PATH /usr/local/php5

in the fish configuration file instead of

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

Browser other questions tagged

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