T
T
tincap2017-06-19 13:48:02
PHP
tincap, 2017-06-19 13:48:02

How to update PHP on Mac OS X?

Hello. I have Mac OS X 10.11.6 (latest)
The console shows (php -v) that I have an old version of PHP
I tried updating PHP with Homebrew, but nothing changed. (There was a download and compilation of the seventh version)
7b405d72b8c14ee6a4d7f1aae67a1a24.png
UPD: I found a way. You need to enter in the console

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

How now to make it so that this code does not have to be entered every time?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
donflash, 2017-06-19
@donflash

brew upgrade php55
?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question