Skip to main content


Showing posts with the label apr_sockaddr_info_get() failed

Apache Startup Failures and Hostname Resolution

Upon restarting Apache, you may receive errors like this: # service httpd restart Stopping httpd: [FAILED] Starting httpd: httpd: apr_sockaddr_info_get() failed for webserver-sb-1 httpd: Could not reliably determine the server's fully qualified domain name, using for ServerName In order to resolve this issue and successfully start Apache, you will need to ensure that there is a resolvable hostname assigned to your server. This hostname does not need to be a fully qualified domain name (FQDN), it just needs to resolve. Here is how to get around it.  #echo yourhostname.extension > /etc/hostname #/bin/hostname -F /etc/hostname Finally, confirm that the assigned domain name is resolvable using the host command #host yourhostname.extension localhost If not, check the following settings: -does /etc/resolv.conf have the correct DNS servers listed to allow for resolution? -If your hostname is not an FQDN, lis