Skip to content
MtrXTools

AH00558: Could not reliably determine the server's fully qualified domain name

Apache has no global ServerName

Seen in Apache httpd start-up, apachectl configtest

Apache could not work out its own hostname and fell back to an IP address; this is a warning, not a failure.

Common causes

  • No ServerName directive is set at the global level.
  • The machine's hostname does not resolve to a fully qualified name.

How to fix it

  1. Add ServerName example.com to the main config (apache2.conf or httpd.conf).
  2. On Debian and Ubuntu: put it in /etc/apache2/conf-available/servername.conf, run a2enconf servername, then reload.
  3. If Apache still fails to start, the real error is elsewhere in the output.

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

Related errors

All 19 Web servers & certificates errors