D
D
Dmitry2017-02-25 12:01:37
PHP
Dmitry, 2017-02-25 12:01:37

Why is php7 not working?

Hello!
I installed php7 through brew, I enter the command: php -v
As a result, I see the answer:

-bash: /usr/local/opt/php71/bin/php: No such file or directory

It is logical that php is not found in the /usr/local/Cellar/php70 folder
How to set the correct directory?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2017-02-25
@muldy

Answer to be added:

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

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question