PDA

View Full Version : apache domain name error


signature16
2006-03-26, 04:40 PM CST
When I start apache I get this error. Why???

[root@linuxtest sysconfig]# /etc/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: httpd: apr_sockaddr_info_get() failed for linuxtest
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[ OK ]
[root@linuxtest sysconfig]#


how do i fix this domain name error?

Jman
2006-03-27, 10:08 PM CST
For the second error, probably Apache's ServerName directive (http://httpd.apache.org/docs/2.0/mod/core.html#servername) doesn't match your host name of linuxtest. Try changing it to linuxtest.

For the first, linuxtest probably does'nt resolve. (run "host linuxtest" to check) To fix that put linuxtest at the end of the line in /etc/hosts that has 127.0.0.1, which is your localhost address.