apache2 install mac code example Example: install apache on mac # update Homebrew brew update #install apache using Homebrew brew install httpd