title: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
body: <p>I tried to restart my Apache server on CentOS 5.0 and got this message:</p>
  
  <blockquote>
    <p>httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName</p>
  </blockquote>
  
  <p>Here is the <code>/etc/hosts</code> file:</p>
  
  <pre><code>127.0.0.1    server4-245    server4-245.com    localhost.localdomain localhost
  ::1        localhost6.localdomain6 localhost6
  </code></pre>
  
  <p>Here is the <code>/etc/sysconfig/network</code> file:</p>
  
  <pre><code>NETWORKING=yes
  NETWORKING_IPV6=no
  HOSTNAME=server4-245
  </code></pre>
  
  <p>I also have this in the Apache httpd.conf file:</p>
  
  <pre><code>ServerName localhost
  </code></pre>
  
  <p>However, I still get the first error message when I restart Apache.</p>