Fully Qualified Server Name

February 2nd, 2010
Tags: , , , , ,
Categories: General, Linux

If you are trying to restart an Apache server running on Ubuntu, Linux Mint or any other Ubuntu derived distro, you will get an warning message that your Apache server does not contain a fully qualified domain name.

Restarting Apache
# sudo /etc/init.d/apache2 restart

Warning Message
* Restarting web server apache2
apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName … waiting apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName [ OK ]

To fix this annoying message, you need to set the hostname:

Set Hostname
# sudo hostname computername.domain.com

So, the next time you restart the Apache server:

Restart Apache
# sudo /etc/init.d/apache2 restart

There are no more warning messages.

No More Messages
* Restarting web server apache2
… waiting                                                              [ OK ]

  • Twitter
  • Facebook
  • Digg
  • del.icio.us
  • Google Bookmarks
  • StumbleUpon
  • LinkedIn
  • Technorati
  • FriendFeed
  • Live
  • MySpace
  • Ping.fm
  • Posterous
  • Reddit
  • Slashdot
  • Suggest to Techmeme via Twitter
  • Yahoo! Bookmarks
  • Yahoo! Buzz
  • Print
  • email
  • PDF
  • RSS

Leave a Reply