Posts Tagged ‘hostname’

apache2 could not reliably determine the server’s fully qualified domain name using 127.0.0.1

Monday, January 25th, 2010

When apache complains like this.

  • check that the virtualhosts so that ServerName is set to a FQDN
  • check /etc/hostname [should be a fqdn] (after you have updated this, run “/bin/hostname -F /etc/hostname”
  • check /etc/hosts
  • Hint: use “apache2ctl configtest” to see if it helps

sudo: unable to resolve host hostname

Thursday, January 21st, 2010

If using sudo gives the error message “unable to resolve host hostname” then one solution is to add the hostname in /etc/hosts

127.0.0.1	hostname.domain.com	hostname localhost