how to start apache server on mac code example
Example 1: apache restart mac os
sudo apachectl restart
Example 2: install apache on mac
# update Homebrew
brew update
#install apache using Homebrew
brew install httpd
sudo apachectl restart
# update Homebrew
brew update
#install apache using Homebrew
brew install httpd