Summary (2): Port in Use

From: <simon.millard_at_barclays.co.uk>
Date: Wed, 19 Jan 2000 15:48:18 +0000

Many thanks to Frank who suggested using lsof to see who is using what
port - works like a charm.

SImon



If you have the freeware "lsof" utility, you can use it to see who has
port
80 open:

    lsof -i :80

Isof is available from ftp://vic.cc.purdue.edu/pub/tools/unix/lsof. I
strongly recommend obtaining it, since it offers useful diagnostic
capabilities not easily obtainable from combinations of other programs.

If not, then you'll have to do some deduction. Look in /sbin/rc3.d to
see
if any script there starts any program that could be another web server.
Check the output of "ps" to make sure that nothing unusual is running.

If you get the message when stopping and starting Apache, try to make
sure
that you are waiting long enough for a running Apache server to actually
halt before trying to start a new one.

Make sure that your configuration file (httpd.conf) makes sense. Don't
try
to bind multiple virtual hosts to exactly the same combination of IP
address
and port. For each virtual host, one of IP address or port must
differ.

Good luck! I hope you find at least one of these hints useful.

Frank


Internet communications are not secure and therefore the Barclays Group does
not accept legal responsibility for the contents of this message. Any views
or opinions presented are solely those of the author and do not necessarily
represent those of the Barclays Group.
Received on Wed Jan 19 2000 - 15:55:40 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:40 NZDT