Apache: AH00558: apache2: Could not reliably determine the server's fully qualified domain name
A harmless startup warning: Apache has no global ServerName, so it guessed one from the host’s IP.
Seen on:
Nginx
Meaning
The server still works. Set a global ServerName to silence it — but if Apache isn’t starting, the real error is on another line of the log/output.
Common causes
- No global ServerName directive
- Hostname not resolvable (/etc/hosts)
⚡ Quick fix
- Add ServerName localhost (or your domain) in a global config file
- Check the rest of the output for the real startup error
Detailed fix by platform
Apache
- apache
echo "ServerName localhost" | sudo tee /etc/apache2/conf-available/servername.conf sudo a2enconf servername && sudo apachectl configtest && sudo systemctl reload apache2
How to diagnose
- Config — apachectl configtest
- Startup — Other errors in journalctl -u apache2
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in Nginx / Apache
Other ways to find it
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
Was this page helpful?
Report a correction or suggest an improvement
Last updated 7 Oct 2026