D
D
Denis Bukreev2017-10-22 18:24:51
PHP
Denis Bukreev, 2017-10-22 18:24:51

PHP on OS X is not updated - what to do, how to update?

I enter the php update command (was 5.6.3)

curl -s http://php-osx.liip.ch/install.sh | bash -s 7.1

Everything is installed without errors, messages are issued at the end of the installation:
Restarting Apache
Syntax OK
Finished.

But when I enter php -v, I getPHP 5.6.30 (cli) (built: Feb 7 2017 16:18:37)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
zorca, 2017-10-22
@denisbookreev

https://vivasart.com/lab/sozdayom-okruzhenie-dlya-...
The current version does not overwrite the system binaries, but is installed in its own separate folder /usr/local/php5/bin/php. In order to connect it by default and in php -v the version we need is also displayed, you need to add the path to the Bash settings
3 seconds google search...

I
Ivan, 2017-10-22
@LiguidCool

Bet through Brew. For example here .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question