Apr_sockaddr_info_get() Failed

RegisterLogin
Apr_sockaddr_info_get() Failed
Post Description: Im Getting This Error Apr_sockaddr_info_get() Failed When I Try To Start My Httpd Apache Server
Tags: Apr_sockaddr_info_get(), Failed
This Post Was Posted On Nov 28, 2009 By Leonard #2811
hi, i wanted to help anyone who is also having a problem with their dedicated server from webune.

i have a linux dedicated server and once i go this error when i tried to start my apache server in linux:

ERROR:
starting httpd: httpd: apr_sockaddr_info_get() failed for hostname.domain

httpd: could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for servername


so this is what i did to resolve this:

login to your server as superuser:
then send these commands:

SHELL COMMAND:
echo HOST.DOMAIN.com > /etc/hostname


HOST = Your host name
DOMAIN = Your Domain Name

Now execute the next command in the shell:

SHELL COMMAND:
/bin/hostname -F /etc/hostname



Now that your server has a hostname and a domain name, restart your server with the following command:

SHELL COMMAND:
/etc/init.d/httpd restart



After you have restarted your server, you shouldn't see the error.

NOTE: i tried this on fedora so it might also work on redhat and CentOS, not sure if it will work on debian, ubuntu, caldera or other distributions.

you can help me if you can reply with your comments about your distribution and i can test it to see how i can fix it on your distribution.

thanks
Leave Your Comments
sal
#9372 1
name lookup failure
not worked
any suggests...
Jan 17, 2012 Reply Report abuse
©2012 Webune Forums - Wed Jan 18, 2012 3:57 am
Powered by: Webune Forums V3