httpd: apr_sockaddr_info_get() failed on starting Apache

When I start apache I am getting following error

[root@webs ~]# service httpd start
Starting httpd: httpd: apr_sockaddr_info_get() failed for webs
httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
[  OK  ]

Solution:
Locate the httpd.conf file

Add the line:

ServerName localhost

Save and quit and restart Apache

Leave a Reply

Your email address will not be published. Required fields are marked *

*