Today i found error after installing httpd on fresh machine, I dig a lot and found solution ;)
Starting httpd: httpd: apr_sockaddr_info_get() failed for
How to fix this:
1. First you need to check host entry is properly setup in /etc/hosts file
For example
# vim /etc/hosts
192.168.1.1 webserver.example.com webserver
2. If hosts entry is fine and still you are getting error while restarting then you should look
at /etc/nsswitch.conf. where you have to verify hosts order
hosts: files dns
3. If still you are facing then you need to check selinux it might be root is denying my selinux.
4. test first on your local webserver using elink if it works fine then check client browser it should work.
Starting httpd: httpd: apr_sockaddr_info_get() failed for
How to fix this:
1. First you need to check host entry is properly setup in /etc/hosts file
For example
# vim /etc/hosts
192.168.1.1 webserver.example.com webserver
2. If hosts entry is fine and still you are getting error while restarting then you should look
at /etc/nsswitch.conf. where you have to verify hosts order
hosts: files dns
3. If still you are facing then you need to check selinux it might be root is denying my selinux.
4. test first on your local webserver using elink if it works fine then check client browser it should work.
No comments:
Post a Comment