1
1
1programmer2018-03-03 21:36:46
macOS
1programmer, 2018-03-03 21:36:46

How to upgrade to php 7 macos?

Hi all. Actually a subject. I have already tried everything, it is updated, but after restarting the terminal again version 5.

brew tap homebrew/dupes
brew tap homebrew/versions
brew tap homebrew/homebrew-php
brew install --with-openssl curl
brew install --with-homebrew-curl --with-apache php71
brew install php71-mcrypt php71-imagick
# 3 Follow these instructions to make Apache and php-cli use the newer php executable and make the change persist after reboot.
brew info php71
# restart apache
sudo apachectl restart
# apply PATH changes without relogging
source ~/.profile

Tried like this, but after the first command it displays
Error: homebrew/dupes was deprecated. This tap is now empty as all its formulae were migrated.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question