I am using CentOS. When I try to start httpd I receive the following error:

> sudo httpd

httpd: apr_sockaddr_info_get() failed for ccrhwp01948
httpd: Could not reliably determine the server's fully qualified domain name, using for ServerName

Here is the hostname information:

> hostname


There is no domain associated with this server. Simply an IP address. Here is the host information:

> nano /etc/hosts   localhost localhost.localdomain  localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

Does anyone know how to properly fix this problem?


migrated from stackoverflow.com Dec 27 '12 at 23:20

This question came from our site for professional and enthusiast programmers.

  • try issuing command "hostname samp-serv3" – Ashish Mahamuni Dec 27 '12 at 19:10

set FQDN hostname

echo HOST.DOMAIN.com > /etc/hostname
/bin/hostname -F /etc/hostname
/etc/init.d/httpd restart
  • Should I do samp-serv3.IPHERE? There is no specific domain associated with the IP. – Austin K Dec 28 '12 at 15:40

@Austin K - No, you need FQDN hostname like samp-serv3.example.com and put that entry in /etc/hosts file related to your IP address.

  • I do not have a domain associated with the IP address though. What should I do? – Austin K Dec 28 '12 at 18:39
  • Then associate with just put that entry in /etc/hosts file and add hostname in /etc/hostname file – user156944 Dec 28 '12 at 19:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.