Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
blog:apache_redhat_6_make_sock_bug [2014/05/30 03:28] – brett | blog:apache_redhat_6_make_sock_bug [2014/05/30 03:54] (current) – brett | ||
---|---|---|---|
Line 21: | Line 21: | ||
Doing an lsof, netstat, telnet or anything else you can think of 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 32: | 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: simply stated the trouble makers were found in /etc/hosts as follows | + | The solution. The trouble makers were found in /etc/hosts as follows |
< | < | ||
127.0.0.1 | 127.0.0.1 | ||
::1 | ::1 | ||
</ | </ | ||
- | 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:81 | ||
+ | </ | ||
{{tag> | {{tag> |