This error can be fixed by adding the IP address and hostname in, etc/has a record.
We oftentimes get requests regarding Apache errors, as a piece of our Server Management Services.
Today, “httpd apr_sockaddr_info_get failed”, we have to see how our Expert planners fix this Apache error for our customers.
Why does this error ah00557 appear?
This error shows up transcendently when Apache is as of late presented and no course of action has been done. The apache arrangement record will be clear as is normally done.
Besides, when we start or stop an Apache organization we will get a counsel message ‘ah00557 httpd apr_sockaddr_info_get () failed’
Along these lines, “httpd apr_sockaddr_info_get failed”, for fixing that we add the going with a line in, etc/apache2/httpd.conf.
Now and again, this doesn’t fix the issue. In such cases, our Experts will do a significant tunnel on the issue until they find a reply.
Today, “httpd apr_sockaddr_info_get failed”, we should see different circumstances in which this notification appears and how our experts fix it for our customers.
How we fix ah00557 httpd apr_sockaddr_info_get () failed?
Lately, one of our customers pushed toward us saying that he is getting a bungle as the one showed underneath when he was endeavoring to restart the apache organization.
We checked comprehensively and added the IP address and hostname in, etc/has reported.
Also, “httpd apr_sockaddr_info_get failed”, a short time later restarted Apache.
This good the issue and the apache restarted with close to no misstep message.
Also, we dealt with a situation where the customer pushed toward us with a comparable notification. He referred to that he is getting this goof while presenting Nagios.
“httpd apr_sockaddr_info_get failed”, Exactly when we checked comprehensively we found that the port was not open.
So we added the going within, etc/sysconfig/iptables
An INPUT - p TCP - M state – state NEW - m TCP – port 80 - j ACCEPT
Finally, “httpd apr_sockaddr_info_get failed”, a nice issue.
Directions to Fix AH00558 and AH00557 httpd apr_sockaddr_info_get () Error Message
Exactly when you are starting Apache server, “httpd apr_sockaddr_info_get failed”, you might get the AH00557 and AH00558 forewarning message as shown underneath.
#/usr/neighborhood/apache2/compartment/apachectl start
AH00557: httpd: apr_sockaddr_info_get () failed for dev-server
AH00558: httpd: Could not reliably choose the server's qualified domain name, using 127.0.0.1. Set the 'Server
Name' request universally to smother this message
Apache/2.4.2 modest (Pass Phrase Dialog)
A part of your private key records is encoded for security reasons.
To examine them you need to give the passphrases.
Server www.example.com:443 (RSA)
Enter pass state:
Okay: Pass Phrase Dialog productive.
You’ll in like manner get a comparable reprobation message regardless, “httpd apr_sockaddr_info_get failed”, when you stop the Apache HTTPD server as shown under.
#/usr/close by/apache2/compartment/apachectl stop
AH00557: httpd: apr_sockaddr_info_get () failed for dev-server
AH00558: httpd: Could not reliably choose the server's qualified space name, using 127.0.0.1. Set the 'Server
Name' command from one side of the planet to the other to cover this message
If you are using organization httpd to respite and start, “httpd apr_sockaddr_info_get failed”, you’ll get the relative caution message.
# organization httpd start
Starting httpd: httpd: apr_sockaddr_info_get () failed for dev-server
httpd: Could not reliably choose the server's totally qualified domain name, using 127.0.0.1 for Server Name
To fix the above notice message, “httpd apr_sockaddr_info_get failed”, add the “Server Name” request to the httpd. conf archive properly.
# vi/usr/neighborhood/apache2/conf/httpd.conf
Server Name 192.168.1.2
Depending on how you are needing to course of action the Apache, the above Server Name command can either be a hostname, or IP-address, or qualified domain name. “httpd apr_sockaddr_info_get failed”, On the off chance that you are essentially running the Apache for an inside testing reason, you can fundamentally set it to the IP-address of the server.
Expecting you need to use the hostname in the httpd. conf archive, “httpd apr_sockaddr_info_get failed”, guarantee you in like manner have a looking at the segment in the, etc/has recorded for that hostname as shown under.
# vi/usr/neighborhood/apache2/conf/httpd.conf
Server Name dev-server
# vi, etc/has
0.0.1 dev-server localhost. local domain localhost
By and by when you start the apache again, “httpd apr_sockaddr_info_get failed”, you’ll not get the caution message anymore.
# organization httpd stop
Stopping httpd: [OK]
Conclusion
To lay it out simply, we inspected comprehensively on ‘ah00557 httpd apr_sockaddr_info_get () failed’ and saw how our Expert planners find a fix for this bungle in different circumstances, “httpd apr_sockaddr_info_get failed”.