Skip to content

Instantly share code, notes, and snippets.

@JacobSanford
Last active June 26, 2017 15:11
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 JacobSanford/52ad35b83bcde5c113072d5591eb89bd to your computer and use it in GitHub Desktop.
Save JacobSanford/52ad35b83bcde5c113072d5591eb89bd to your computer and use it in GitHub Desktop.

Installing PHP7 on OSX

Full Instructions

Ensure you have OSX Sierra

EOM

Install PHP7

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

Symlink Minor version into php7 dir

sudo ln -s /usr/local/php5-7.1.4-20170506-100436 /usr/local/php7

Add PHP7 To Your Path

Fish Shell

set --universal fish_user_paths $fish_user_paths /usr/local/php7/bin

Also, you should probably add the path for Bash Shell (below).

Bash Shell

Add /usr/local/php7/bin to /etc/paths.

Set the proper timezone

Edit

/usr/local/php5/php.d/99-liip-developer.ini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment