ubuntu apache2: apr_sockaddr_info_get() failed

How did “people you might know” find you on social software>>>

Today, when deploying the environment, an error occurred when restarting Apache

root@spwh :/mnt# service apache2 restart
* Restarting web server apache2 AH00557: apache2: apr_ sockaddr_ info_ get() failed for spwh
AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using Set the ‘ServerName’ directive globally to suppress this message
[ OK ]

Although it does not affect the use, but obsessive-compulsive disorder, uncomfortable



Checked the configuration file for the domain name


Finally, the problem was found out

vi /etc/apache2/apache2.conf

Add a line to the document

Servername IPAddress (own IP address)

Save, exit and restart Apache

It’s normal

Similar Posts: