apache:troubleshooting:apr_sockaddr_info_get_failed
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
apache:troubleshooting:apr_sockaddr_info_get_failed [2023/07/17 10:10] – created peter | apache:troubleshooting:apr_sockaddr_info_get_failed [2023/07/17 10:16] (current) – [Fix] peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Apache - Troubleshooting - apr_sockaddr_info_get() failed ====== | ====== Apache - Troubleshooting - apr_sockaddr_info_get() failed ====== | ||
+ | |||
+ | ===== Error ===== | ||
+ | |||
+ | <code bash> | ||
+ | service apache2 restart | ||
+ | </ | ||
+ | |||
+ | returns: | ||
+ | |||
+ | < | ||
+ | AH00557: apache2: apr_sockaddr_info_get() failed for blogs | ||
+ | AH00558: apache2: Could not reliably determine the server' | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Fix ===== | ||
+ | |||
+ | This error is usually harmless. | ||
+ | |||
+ | |||
+ | A quick solution to this problem: | ||
+ | |||
+ | <code bash> | ||
+ | sudo vi / | ||
+ | </ | ||
+ | |||
+ | |||
+ | <file bash / | ||
+ | # Insert at the end of the file | ||
+ | ServerName localhost | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | <file bash / | ||
+ | 172.0.0.1 localhost.localdomain localhost | ||
+ | 127.0.1.1 blogs | ||
+ | </ | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Restart Apache ===== | ||
+ | |||
+ | <code bash> | ||
+ | service apache2 restart | ||
+ | * Restarting web server apache2 [ OK ] | ||
+ | </ | ||
apache/troubleshooting/apr_sockaddr_info_get_failed.1689588657.txt.gz · Last modified: 2023/07/17 10:10 by peter