User Tools

Site Tools


apache:troubleshooting:apr_sockaddr_info_get_failed

Apache - Troubleshooting - apr_sockaddr_info_get() failed

Error

service apache2 restart

returns:

AH00557: apache2: apr_sockaddr_info_get() failed for blogs
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message

Fix

This error is usually harmless.

A quick solution to this problem:

sudo vi /etc/apache2/apache2.conf
/etc/apache2/apache2.conf
# Insert at the end of the file
ServerName localhost

NOTE: Sometimes a complex /etc/hosts file is required that includes all your virtual hosts.

/etc/hosts
172.0.0.1 localhost.localdomain localhost
127.0.1.1 blogs

Restart Apache

service apache2 restart
 * Restarting web server apache2 [ OK ]
apache/troubleshooting/apr_sockaddr_info_get_failed.txt · Last modified: 2023/07/17 11:16 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki