I
I
imdeveloper2018-07-05 11:39:59
PHP
imdeveloper, 2018-07-05 11:39:59

How to change PHP version on Mac?

Hello! I've been trying to change the PHP version on Mac OS High Sierra for a day now.
php -v now outputs:
5b3dd88341f74033402369.png
Then I run the command:

export PATH="$(brew --prefix homebrew/php/php70)/bin:$PATH"

then : which php
gives this:
5b3dd9308f160597422900.png
I check the PHP version again and everything is the same
5b3dd88341f74033402369.png
Help how to fix the problem. Thanks

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
doublench21, 2018-07-05
@doublench21

Show your~/.bash_profile

N
Nikolay, 2018-07-05
@iNickolay

brew update
brew upgrade

See also
If it doesn't help, try reinstalling
brew unlink [email protected]
brew install [email protected]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question