Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?


share|improve this question

migrated from 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 > /etc/hostname
/bin/hostname -F /etc/hostname
/etc/init.d/httpd restart
share|improve this answer
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 and put that entry in /etc/hosts file related to your IP address.

share|improve this answer
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 posting your answer, you agree to the privacy policy and terms of service.

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