Detailed instructions on getting apache set up or installed.
sudo apt-get install apache2
Check out the WAMP stack. WAMP stands for Windows, Apache, MySQL, PhpMyAdmin.
Apache 2.2 comes with CentOS6, whereas 2.4 comes with CentOS7, to install on either OS, run
yum -y install httpd
macOS comes with Apache pre-installed,however,can install Apache via Homebrew
If you already have the built-in Apache running, it will need to be shutdown first, and any auto-loading scripts removed.
$ sudo apachectl stop
$ sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist 2>/dev/null
$ brew install httpd24 --with-privileged-ports --with-http2