8

After installing Xdebug I tried to restart or reload Apache and I received the following message:

$ sudo /etc/init.d/apache2 reload
 * Reloading web server config apache2
apache2: Could not reliably determine the server's fully qualified domain
name, using 127.0.0.1 for ServerName
3
  • 2
    And your question is ... ? If you think the notice should not be shown here are several answers: google.nl/… . And it is NOT an error but a notice it is using localhost as FQDN.
    – Rinzwind
    Nov 19, 2011 at 13:16
  • 1
    CLOSING OF THIS QUESTION. This problem of solved inserting the following line in the file apache2.conf:"ServerName localhost". It has taken some time because of search in the web. What would not happen if anybody could answer rapidly. Anyway thanks attention. Nov 21, 2011 at 11:51
  • @franktavares can you post this as an answer to the question? Nov 22, 2011 at 22:49

1 Answer 1

18

Good news! Apache is restarting successfully. Apache just isn't sure where you want serve from, so it's choosing your localhost by default. To prevent this message from appearing, clarify that you want to serve from localhost by adding the following line into your /etc/apache2/apache2.conf file:

ServerName localhost
0

Not the answer you're looking for? Browse other questions tagged .