Home arrow Debugging Tips arrow Apache will not start, Could not reliably determine the server's fully qualified domain name
Apache will not start, Could not reliably determine the server's fully qualified domain name PDF
Sunday, 09 October 2011
If you've just installed Apache Web Server on FreeBSD and Apache is not starting or you get the following warnings:

Apache error
Performing sanity check on apache22 configuration:
httpd: apr_sockaddr_info_get() failed for www.example.org
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
Syntax OK
Starting apache22.
httpd: apr_sockaddr_info_get() failed for www.example.org
httpd: Could not reliably determine the server'
s fully qualified domain name, using 127.0.0.1 for ServerName
/usr/local/etc/rc.d/apache22: WARNING: failed to start apache22

then, edit /etc/hosts and add there:

192.168.1.5            www.example.org www

where 192.168.1.5 is your server IP (this is just an example, in your case use your server's IP).

If you still get the following error:

Apache warning
Performing sanity check on apache22 configuration:
httpd: Could not reliably determine the server's fully qualified domain name, using www.example.org for ServerName
Syntax OK
Starting apache22.
httpd: Could not reliably determine the server'
s fully qualified domain name, using www.example.org for ServerName

then modify localhost line so instead of:

127.0.0.1               localhost localhost.my.domain

the line should be:

127.0.0.1               localhost.my.domain localhost

Note! Your hostname from /etc/hosts must match hostname value from /etc/rc.conf, which can also be found by running  the following command:

  hostname

Last Updated ( Monday, 23 January 2012 )
 
< Prev   Next >

Other BSD Systems

OpenBSD

Misc

Solaris

Polls

Best BSD firewall?