Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
blog:apache_redhat_6_make_sock_bug [2014/05/30 03:23] – brett | blog:apache_redhat_6_make_sock_bug [2014/05/30 03:54] (current) – brett | ||
---|---|---|---|
Line 2: | Line 2: | ||
This is a fucker of a defect that affected RedHat 6.3, 6.4, 6.5 - which I've verified. | This is a fucker of a defect that affected RedHat 6.3, 6.4, 6.5 - which I've verified. | ||
+ | I found this: https:// | ||
+ | < | ||
+ | # httpd -version | ||
+ | Server version: Apache/ | ||
+ | Server built: | ||
+ | </ | ||
+ | |||
+ | Here is the output that you are confronted with | ||
< | < | ||
[Thu Sep 19 14:11:13 2013] [warn] VirtualHost localhost: | [Thu Sep 19 14:11:13 2013] [warn] VirtualHost localhost: | ||
Line 11: | Line 19: | ||
</ | </ | ||
- | Doing an lsof on port 81 tells you nothing is listening. | + | Doing an lsof, netstat, telnet or anything else you can think of on port 81 tells you nothing is listening. |
- | Apache throws this in the STRACE saying it can't startup and the strace doesn' | + | The strace is telling its trying to bind TWICE to the same port! WTF. |
< | < | ||
32709 setsockopt(3, | 32709 setsockopt(3, | ||
Line 24: | Line 32: | ||
32709 setsockopt(4, | 32709 setsockopt(4, | ||
32709 bind(4, {sa_family=AF_INET, | 32709 bind(4, {sa_family=AF_INET, | ||
- | 32709 write(2, "" | ||
- | 32709 close(4) | ||
- | 32709 write(2, "" | ||
- | 32709 write(2, "" | ||
</ | </ | ||
- | + | The solution. The trouble makers were found in /etc/hosts as follows | |
- | The solution: simply stated the trouble makers were found in /etc/hosts as follows: | + | |
< | < | ||
127.0.0.1 | 127.0.0.1 | ||
Line 37: | Line 40: | ||
</ | </ | ||
Once we had removed ' | Once we had removed ' | ||
+ | |||
+ | UPDATE: In light of https:// | ||
+ | |||
+ | In my configuration I had this | ||
+ | < | ||
+ | Listen localhost: | ||
+ | </ | ||
+ | If I had change it to this it would have also made the problem go away. | ||
+ | < | ||
+ | Listen 127.0.0.1: | ||
+ | </ | ||
{{tag> | {{tag> |