CentOS 5.0
I tried to restart my apache server and got this messeage
here is /etc/host file
here is /etc/sysconfig/network file
I also have this in apache httpd.conf file
However, I still get the first error messeage when I restart the apache.
| ||
56
|
Your hosts file does not include a valid FQDN, nor is
localhost an FQDN. An FQDN must include a hostname part, as well as a domain name part. For example, the following is a valid FQDN:
Choose an FQDN and include it both in your
/etc/hosts file on both the IPv4 and IPv6 addresses you are using (in your case, localhost or 127.0.0.1 ), and change your ServerName in your httpd configuration to match.
/etc/hosts:
httpd.conf:
| ||||||||||||||||||||
|
168
|
if you don't have httpd.conf under /etc/apache2, you should have apache2.conf - simply add
then restart apache2 service
| ||||||||||||||||||||
|
httpd.conf
. UsuallyServerName xy
is just fine. – KingCrunch Mar 2 '12 at 22:53