Skip to content
MtrXTools

(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80

Apache cannot listen on the port

Seen in Apache httpd start-up

Apache could not open its listening socket because the address and port are already taken or not permitted.

Common causes

  • nginx, another Apache instance or a container already listens on the port.
  • The same Listen directive appears twice (for example in ports.conf and a site file).
  • Permission denied (13) instead of 98: a non-standard port is blocked by SELinux or the process lacks privileges.

How to fix it

  1. Find the owner: sudo ss -ltnp 'sport = :80'.
  2. Stop the other service or move one of them to another port.
  3. Remove duplicate Listen lines; on SELinux, allow a custom port with semanage port -a -t http_port_t -p tcp 8081.

Got a different message? Paste it into the error explainer.

Related errors

All 19 Web servers & certificates errors