httpd

Install command:
brew install httpd

Also known as: apache-httpd, apache2

Apache HTTP server

https://httpd.apache.org/

License: Apache-2.0

Development: Pull requests

Formula JSON API: /api/formula/httpd.json

Formula code: httpd.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
golden gate ✅
tahoe ✅
sequoia ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 2.4.70

Depends on:

apr 1.7.6 Apache Portable Runtime library
apr-util 1.6.6 Companion library to apr, the Apache Portable Runtime library
brotli 1.2.1 Generic-purpose lossless compression algorithm by Google
libnghttp2 1.71.0 HTTP/2 C Library
openssl@4 4.1.0 Cryptography and SSL/TLS Toolkit
pcre2 10.49 Perl compatible regular expressions library with a new API

Uses from macOS: libxcrypt, libxml2

Binaries: ab, apachectl, apxs, checkgid, dbmmanage, fcgistarter, htcacheclean, htdbm, htdigest, htpasswd, httpd, httxt2dbm, logresolve, rotatelogs, suexec

Service:

Start now and at login: brew services start httpd
Run directly: $HOMEBREW_PREFIX/opt/httpd/bin/httpd -D FOREGROUND
DocumentRoot is $HOMEBREW_PREFIX/var/www.

The default ports have been set in $HOMEBREW_PREFIX/etc/httpd/httpd.conf to 8080 and in
$HOMEBREW_PREFIX/etc/httpd/extra/httpd-ssl.conf to 8443 so that httpd can run without sudo.

GitHub Packages downloads:

Last 30 days28,805
Downloads3,251,146
Analytics install events (30 days)10,250
Downloads / install events (30 days)2.8×

Source: GitHub Packages, fetched 2026-11-08T00:53:17Z. Analytics dates: 2026-10-09 to 2026-11-08. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.

Analytics:

30 days90 days365 days
Installs10,24218,77762,018
Installs (--HEAD)81559
Installs on Request4,6688,29736,756
Installs on Request (--HEAD)81559
Build Errors315