Homebrew is ”The Missing Package Manager for macOS (or Linux)“ – Here we are going to install it in macOS.
Here we show you how to install a fresh version (7.4.12 version released on Oct 29, 2020 on macOS.
Mac OS X 10.14 Mojave comes with Apache pre-installed. However, instead of using the delivered version, we’re going to install Apache via Homebrew and then configure it to run on port 80.
Here, we are going to disable the distributed (pre-installed) version of Apache and use a setup entirely from Homebrew.
If you have already installed Apache server on you macOS, this is how to setup a brand new WordPress site as a (new) virtual host.