sudo apachectl startsudo apachectl stopsudo apachectl restartsudo apachectl configtestps aux | grep httpdsudo lsof -i :80※ 標準 Apache は root 権限で動作するため sudo が必要です。
設定ファイル /etc/apache2/httpd.conf を確認します。
DocumentRoot "/Library/WebServer/Documents"
AllowOverride All
Require all granted
ブラウザからアクセス可能な URL 例:
http://localhost/Library.html
ps aux | grep httpd
sudo lsof -i :80sudo apachectl configtestsudo tail -f /var/log/apache2/error_logbrew services stop httpd
sudo pkill -9 -f /opt/homebrew/opt/httpd/bin/httpd