Can't bind to port 80

Patrick Rhodes Patrick.Rhodes@asu.edu
Wed, 01 Mar 2000 18:10:20 -0700


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01BF83E4.10A020D8
Content-Type: text/plain;
	charset="iso-8859-1"

Well, we have found a solution - sort of.

If you start the httpd FIRST, then start the INET daemon second, then it'll
work correctly.  Do it in reverse order, and you can't bind to port 80 with
the httpd daemon.  Any ideas why?

and YES, we only have ONE "Port 80" directive.  :-)

Patrick


-----Original Message-----
From: D. Taylor [mailto:dtaylor@www.dssolutions.com]
Sent: Wednesday, March 01, 2000 5:42 PM
To: 'PLUG'
Subject: Re: Can't bind to port 80



netstat
lsof

Have you touched apache.conf?  You do have just ONE "Port 80"
and ONE "Listen 80" directive, right?  Have you been playing
with virtual hosts again?


D

On Wed, 1 Mar 2000, Patrick Rhodes wrote:

> Date: Wed, 01 Mar 2000 16:34:16 -0700
> From: Patrick Rhodes <Patrick.Rhodes@asu.edu>
> Reply-To: plug-discuss@lists.PLUG.phoenix.az.us
> To: 'PLUG' <plug-discuss@lists.PLUG.phoenix.az.us>
> Subject: Can't bind to port 80
> 
> Our Apache server has been running for months on a RedHat 6.0 Linux server
> (on port 80).  Today, it seemed to have crashed (still investigating why).
> Now we can't get it to come back up on port 80, but it'll work just fine
on
> port 81.  The logs say it can't bind to port 80.
> 
> 2 things:
> 1) Is there a way to see what ports are available and/or being used?
> 
> 2) Any suggestions on how to fix this?
> 
> Thanks for any and all help - we've been beating our brains trying to fix
> it.  We also tried upgrading to RedHat 6.1, so now we are on Apache 1.3.9,
> but the same problem is there.  We have rebuilt the binary a couple of
> times, rebooted the server, stop and started various daemons countless
times
> to no avail.
> 
> If you have apache set to port 80 in it's .conf file, when you execute
httpd
> it'll start and stop right away - that's when you look in the logs and see
> that it has the binding problem.
> 
> Patrick
> 


_______________________________________________
Plug-discuss mailing list  -  Plug-discuss@lists.PLUG.phoenix.az.us
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss

------_=_NextPart_001_01BF83E4.10A020D8
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2650.12">
<TITLE>RE: Can't bind to port 80</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>Well, we have found a solution - sort of.</FONT>
</P>

<P><FONT SIZE=3D2>If you start the httpd FIRST, then start the INET =
daemon second, then it'll work correctly.&nbsp; Do it in reverse order, =
and you can't bind to port 80 with the httpd daemon.&nbsp; Any ideas =
why?</FONT></P>

<P><FONT SIZE=3D2>and YES, we only have ONE &quot;Port 80&quot; =
directive.&nbsp; :-)</FONT>
</P>

<P><FONT SIZE=3D2>Patrick</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: D. Taylor [<A =
HREF=3D"mailto:dtaylor@www.dssolutions.com">mailto:dtaylor@www.dssolutio=
ns.com</A>]</FONT>
<BR><FONT SIZE=3D2>Sent: Wednesday, March 01, 2000 5:42 PM</FONT>
<BR><FONT SIZE=3D2>To: 'PLUG'</FONT>
<BR><FONT SIZE=3D2>Subject: Re: Can't bind to port 80</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=3D2>netstat</FONT>
<BR><FONT SIZE=3D2>lsof</FONT>
</P>

<P><FONT SIZE=3D2>Have you touched apache.conf?&nbsp; You do have just =
ONE &quot;Port 80&quot;</FONT>
<BR><FONT SIZE=3D2>and ONE &quot;Listen 80&quot; directive, =
right?&nbsp; Have you been playing</FONT>
<BR><FONT SIZE=3D2>with virtual hosts again?</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>D</FONT>
</P>

<P><FONT SIZE=3D2>On Wed, 1 Mar 2000, Patrick Rhodes wrote:</FONT>
</P>

<P><FONT SIZE=3D2>&gt; Date: Wed, 01 Mar 2000 16:34:16 -0700</FONT>
<BR><FONT SIZE=3D2>&gt; From: Patrick Rhodes =
&lt;Patrick.Rhodes@asu.edu&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; Reply-To: =
plug-discuss@lists.PLUG.phoenix.az.us</FONT>
<BR><FONT SIZE=3D2>&gt; To: 'PLUG' =
&lt;plug-discuss@lists.PLUG.phoenix.az.us&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; Subject: Can't bind to port 80</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Our Apache server has been running for months =
on a RedHat 6.0 Linux server</FONT>
<BR><FONT SIZE=3D2>&gt; (on port 80).&nbsp; Today, it seemed to have =
crashed (still investigating why).</FONT>
<BR><FONT SIZE=3D2>&gt; Now we can't get it to come back up on port 80, =
but it'll work just fine on</FONT>
<BR><FONT SIZE=3D2>&gt; port 81.&nbsp; The logs say it can't bind to =
port 80.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; 2 things:</FONT>
<BR><FONT SIZE=3D2>&gt; 1) Is there a way to see what ports are =
available and/or being used?</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; 2) Any suggestions on how to fix this?</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Thanks for any and all help - we've been =
beating our brains trying to fix</FONT>
<BR><FONT SIZE=3D2>&gt; it.&nbsp; We also tried upgrading to RedHat =
6.1, so now we are on Apache 1.3.9,</FONT>
<BR><FONT SIZE=3D2>&gt; but the same problem is there.&nbsp; We have =
rebuilt the binary a couple of</FONT>
<BR><FONT SIZE=3D2>&gt; times, rebooted the server, stop and started =
various daemons countless times</FONT>
<BR><FONT SIZE=3D2>&gt; to no avail.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; If you have apache set to port 80 in it's .conf =
file, when you execute httpd</FONT>
<BR><FONT SIZE=3D2>&gt; it'll start and stop right away - that's when =
you look in the logs and see</FONT>
<BR><FONT SIZE=3D2>&gt; that it has the binding problem.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Patrick</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
</P>
<BR>

<P><FONT =
SIZE=3D2>_______________________________________________</FONT>
<BR><FONT SIZE=3D2>Plug-discuss mailing list&nbsp; -&nbsp; =
Plug-discuss@lists.PLUG.phoenix.az.us</FONT>
<BR><FONT SIZE=3D2><A =
HREF=3D"http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss" =
TARGET=3D"_blank">http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-=
discuss</A></FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01BF83E4.10A020D8--