How to solve warning AH00557: httpd: apr_sockaddr_info_get() failed for myserver-cloud
Some day, when i config my apache server, i get the warning AH00557: httpd: apr_sockaddr_info_get() failed for myserver-cloud, it's mean the htttpd cannot find the address of host myserver-cloud, it usually because we just change the server hostname without adding it to etc hosts file
[root@myserver-cloud httpd-2.4.36]# service httpd restart
Shutting down httpd: [FAILED]
Starting httpd:
...
...
AH00557: httpd: apr_sockaddr_info_get() failed for eperformance-cloud [ OK ]
[root@ myserver-cloud httpd-2.4.36]#
Open the hosts file, and add the new hostname with address loopback ip
[root@myserver-cloud httpd-2.4.36]# vi /etc/hosts
[root@myserver-cloud httpd-2.4.36]#
Restart the apache again
[root@myserver-cloud conf]# service httpd restart
Shutting down httpd: [ OK ]
Starting httpd: AH00558: httpd: 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
[ OK ]
[root@myserver-cloud conf]#
Tidak ada komentar :
Posting Komentar