I’m using a local apache2 instance on my notebook. Having that error message all the time during startup:
[Tue Sep 03 17:24:04.175459 2013] [mpm_prefork:notice] [pid 2594] AH00171: Graceful restart requested, doing restart AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Google and other search engines unveil a lot of common techniques to finally “fix” (or “suppress”) the error in a very pleasant way of setting the ServerName directive within apache2 configuration.
While it totally makes sense to insert it into apache2, it’s different on Apache 2.4 on Debian Testing now having conf-available/conf-enabled/a2enconf around now.
# echo ServerName $HOSTNAME > /etc/apache2/conf-available/fqdn.conf # a2enconf fqdn # service apache2 restart [ ok ] Restarting web server: apache2. #
That way you can easily disable the configuration using “a2disconf fqdn” in case of errors without deleting or editing any file at runtime. Well and for the original problem – creating proper virtual host configuration listening on the proper ip addresses is left as home exercise for those requiring it – mine is to have /icinga and /icinga-web being tested all the time with the default apache2 configuration installation task.