install apache and php on mac code example
Example 1: install apache on mac
# update Homebrew
brew update
#install apache using Homebrew
brew install httpd
Example 2: php apache install macbook
vi httpd.conf
# update Homebrew
brew update
#install apache using Homebrew
brew install httpd
vi httpd.conf