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 for ServerName
  • 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 '11 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. – frank tavares Nov 21 '11 at 11:51
  • @franktavares can you post this as an answer to the question? – Jorge Castro Nov 22 '11 at 22:49

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.