Home » Linux, Web Development » Fix "Could not reliably determine the server's fully qualified domain name" when starting Apache server on Ubuntu

Fix "Could not reliably determine the server's fully qualified domain name" when starting Apache server on Ubuntu

October 28th, 2012 Leave a comment Go to comments

Apache logoUsing Apache 2 development environment on your Ubuntu machine most likely involves looking at "Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName" message each time your machine boots. Here's how to make this irritating message disappear when starting Apache 2 server by specifying ServerName inside Apache 2 configuration files.

This error happens because your server doesn't have ServerName Apache 2 variable defined and reverse lookup on your IP address returns nothing. We can specify ServerName as 127.0.0.1 to make this message disappear. Just open your favorite terminal emulator and paste:

echo "ServerName 127.0.0.1" | sudo tee -a /etc/apache2/conf.d/server_name

Now you can restart your apache 2 server:

sudo service apache2 restart

You shouldn't have that message displayed ever again.

Categories: LinuxWeb Development
Tags:
Comments
  • hemorroides April 25, 2013 at 18:16:31

    Its such as you learn my thoughts! You seem to grasp a lot about
    this, like you wrote the e-book in it or something.
    I think that you just can do with some % to power the message home a little bit, however other than that, that is fantastic blog. A fantastic read. I will certainly be back.

  • Chara March 13, 2013 at 05:00:31

    The other day, while I was at work, my sister stole my iPad and tested to see if it can
    survive a forty foot drop, just so she can be a youtube sensation.
    My apple ipad is now broken and she has 83 views. I know this
    is entirely off topic but I had to share it with someone!

  • prestamos rapidos March 1, 2013 at 11:55:07

    Hi there, all is going fine here and ofcourse every one is sharing facts, that’s actually excellent, keep up writing.

  • Sagir March 1, 2013 at 08:12:31

    THANK YOU SO MUCH! I’ve been looking for hours and this solved everything :)

  • reverseosmosisusa.com January 18, 2013 at 22:59:39

    Heya i’m for the first time here. I came across this board and I to find It truly helpful & it helped me out much. I am hoping to provide something back and help others like you helped me.

  • Miguel January 15, 2013 at 12:23:27

    It is the best time to make some plans for the future and
    it is time to be happy. I’ve read this post and if I could I desire to suggest you few interesting things or tips. Perhaps you can write next articles referring to this article. I want to read even more things about it!

  • water damage insurance claim January 15, 2013 at 06:13:19

    There is certainly a lot to find out about this issue.

    I love all the points you made.