You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I posted several talks about compiling PHP from source, but everyone was trying to convince me that a package manager like [Homebrew](https://brew.sh) was a more convenient way to install.
The purpose of [Homebrew](https://brew.sh) is simple: a package manager for macOS that will allow you to set up and install common packages easily and allows you to update frequently using simple commands.
I used a clean installation of [macOS Sierra](https://www.apple.com/macos/sierra/) to ensure all steps could be recorded and tested. In most cases you already have done work on your Mac, so chances are you can skip a few steps in this tutorial.
# Apache and PHP with homebrew
I’ve made this according to the installation instructions given on [GetGrav](https://getgrav.org/blog/macos-sierra-apache-multiple-php-versions).
## The installation procedures
Install Xcode command line tools
These installation procedures will set up your [macOS Sierra](https://www.apple.com/macos/sierra/) with PHP 7.1 and Apache 2.4.
### Install Xcode command line tools (if not done yet)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters