- Linux Hosting
- Getting Error Staring Apache Apr_sockaddr_info_get() Failed
Im Getting This Error Apr_sockaddr_info_get() Failed When I Try To Start My Httpd Apache Server , Last Updated: Sun Jul 05, 2020
Sat Nov 28, 2009
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:
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:
echo HOST.DOMAIN.com > /etc/hostname
HOST = Your host name
DOMAIN = Your Domain Name
Now execute the next command in the shell:
/bin/hostname -F /etc/hostname
Now that your server has a hostname and a domain name, restart your server with the following command:
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.