blog:apache_redhat_6_make_sock_bug

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revisionBoth sides next revision
blog:apache_redhat_6_make_sock_bug [2014/05/30 03:28] brettblog:apache_redhat_6_make_sock_bug [2014/05/30 03:50] 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.  OK so why the error message ! Doing an lsof, netstat, telnet or anything else you can think of on port 81 tells you nothing is listening.  OK so why the error message !
  
-Apache throws this in the STRACE saying it can't startup and the strace doesn't give you much clue.+Apache throws this in the STRACE saying it can't startup.  The strace is telling its trying to bind TWICE to the same port !?  WTF.
 <code> <code>
 32709 setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0 32709 setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
Line 44: Line 44:
 </code> </code>
 Once we had removed 'localhost' and 'localhost.localdomain' from the ::1 definition line, apache/httpd could start successfully.  It boils down to being some sort of IPV6 issue. Once we had removed 'localhost' and 'localhost.localdomain' from the ::1 definition line, apache/httpd could start successfully.  It boils down to being some sort of IPV6 issue.
 +
 +UPDATE: In light of https://issues.apache.org/bugzilla/show_bug.cgi?id=52884
 +
 +In my configuration I had this
 +<code>
 +Listen localhost:81
 +</code>
 +So I change it to this
 +<code>
 +Listen 127.0.0.1:81
 +</code>
 +And the problem also went away -- very curious indeed.
  
 {{tag>apache}} {{tag>apache}}
  • blog/apache_redhat_6_make_sock_bug.txt
  • Last modified: 2014/05/30 03:54
  • by brett