Friday, December 21, 2012

httpd: apr_sockaddr_info_get() failed for node1



1.     Check short name
       
        # hostname -s
                 node1

2.     Check FQDN name

        # hostname -f
                    hostname: Host name lookup failure

3.     Edit /etc/hosts and add FQDN name:

        # cat /etc/hosts
       x.x.x.x node1.test.com node1

4.     Restart httpd service

httpd: Could not reliably determine the server's fully qualified domain name, using x.x.x.x for ServerName



1      Edit /etc/hosts and add FQDN name:
        
         # cat /etc/hosts
    x.x.x.x node1.test.com node1

2.     Restart httpd service