Skip to content

Instantly share code, notes, and snippets.

@noncototient
Forked from pixeline/php_upgrade_to_71.sh
Created June 29, 2018 04:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noncototient/5117646e095c858875359fa9a8f1aee6 to your computer and use it in GitHub Desktop.
Save noncototient/5117646e095c858875359fa9a8f1aee6 to your computer and use it in GitHub Desktop.
Update Mac Os X's php version to php 7.1 using homebrew. Includes curl and mcrypt
# 1. Install brew --> http://brew.sh/
# 2. run the following commands in your Terminal
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment