macOS に Homebrew で Apache をインストール
brew install httpd
macOS に標準で入っている Apache を止める
# サービスの停止 sudo launchctl stop /System/Library/LaunchDaemons/org.apache.httpd.plist # 自動起動の停止 sudo launchctl stop /System/Library/LaunchDaemons/org.apache.httpd.plist
設定ファイル
/usr/local/etc/httpd/httpd.conf
起動・停止コマンド
# /usr/local/bin/apachectl apachectl start apachectl graceful apachectl restart apachectl stop