Apache2を再起動した際に、
/etc/hostsファイルに
と記載されている場合には、
/etc/apache2/apache2.confの先頭辺りにServerNameの設定をします。
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerNameというエラーが出る場合があるんですが、これはApacheにサーバー名が定義されていないことが原因です。というのは/etc/hostsファイルで定義したドメインが引けていないというのが原因です。
(ServerNameに127.0.0.1を使用した、FQDN(完全に適切なドメイン名)が確定できません)
/etc/hostsファイルに
127.0.0.1 example.com localhost.localdomain localhost
と記載されている場合には、
/etc/apache2/apache2.confの先頭辺りにServerNameの設定をします。
ServerName example.com:80これでreloadするとエラーはなくなります。
#
# Based upon the NCSA server configuration files originally by Rob McCool.
#
# This is the main Apache server configuration file. It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs/2.2/ for detailed information about
# the directives.
# ...



