Re: cannot bind socket error!

From: Kevin Conover <kc@dont-contact.us>
Date: Thu, 3 Aug 2000 08:54:14 -0400 (EDT)

I'm jumping in a little late, sorry if you tried this already.

stop both apache and squid. Type:

lsof -i :80

and see if anyone is using port 80. Start apache and try lsof again.

note: if you don't have it:

    ********************************************************************
    | The latest release of lsof is always available via anonymous ftp |
    | from vic.cc.purdue.edu. Look in pub/tools/unix/lsof. |
    ********************************************************************

kc

Kevin Conover: kc@eclipse.net
(732) 981-1300 x666

The reason that every major university maintains a department of
mathematics is that it's cheaper than institutionalizing all those people.

On Wed, 2 Aug 2000, System Admin. wrote:

> Date: Wed, 2 Aug 2000 20:48:00 -0400 (EDT)
> From: System Admin. <pe@student.lssu.edu>
> To: Russell Mosemann <mose@ns.cune.edu>
> Cc: Squid Cache <squid-users@ircache.net>
> Subject: Re: cannot bind socket error!
>
> I did try that. Any other ideas?.
>
> TIA
>
> pe'
>
>
> - ----------------------------
> System / Network Administrator
> Samitivej Public Co., LTD.
> 133 Sukhumvit 49. Sukhumvit Rd.
> Klongton, Bangkok 10110.
> THAILAND.
> phone: 011-66-2-3920011 ext. 2533
> fax: 011-66-2-3813490
> - ----------------------------
> UNIX System Admin.
> Distributed Computing Services
> Lake Superior State University
> 650 W. Easterday Ave.
> Sault Ste. Marie. MI
> 49783 USA.
> - ----------------------------
> http://student.lssu.edu/~pe/index.html
> - ----------------------------
>
> On Wed, 2 Aug 2000, Russell Mosemann wrote:
>
> > Stop Apache and all squid processes. Then start squid. Then start
> > Apache. That will tell you if Apache is still trying to get at port 80.
> >
> > Russell Mosemann, Ph.D. * Computing Services * Concordia University, Nebraska
> >
> > On Wed, 2 Aug 2000, System Admin. wrote:
> >
> > > Date: Wed, 2 Aug 2000 05:58:30 -0400 (EDT)
> > > From: "System Admin." <pe@student.lssu.edu>
> > > To: Squid Cache <squid-users@ircache.net>
> > > Subject: cannot bind socket error!
> > > Resent-Date: Wed, 2 Aug 2000 03:23:53 -0700 (PDT)
> > > Resent-From: squid-users@ircache.net
> > >
> > > Hi all,
> > > I have some problem configure a new squid server. I tried to set
> > > it up as accelerated web for my webserver. Here is some of my config:
> > >
> > > http_port 80
> > > httpd_accel_host virtual
> > > httpd_accel_port 8000
> > > httpd_accel_with_proxy off
> > > acl accelPort port 8000
> > > http_access allow accelPort
> > >
> > > What I did was change my apache webserver port to 8000 along with its
> > > virtual hosts and restart it. Then start squid with squid -z and
> > > squid. and I got this error:
> > >
> > > 2000/08/02 16:44:13| commBind: Cannot bind socket FD 9 to
> > > *:80: (13) Permission
> > > denied
> > > FATAL: Cannot open HTTP Port
> > > Squid Cache (Version 2.3.STABLE4): Terminated abnormally.
> > > CPU Usage: 0.130 seconds = 0.070 user + 0.060 sys
> > >
> > > Then I thought it must run as root so I su root and run squid but it won't
> > > run. Then I tried squid -NCd1 it gave me this:
> > >
> > > FATAL: cannot create /home2/squid/logs/access.log:
> > > (13) Permission denied.
> > > The directory access.log is to reside in needs to be
> > > writeable by the user nobody, the cache_effective_user
> > > set in squid.conf.
> > >
> > > How can I fix this problem? Please help, I'm running Squid 2.3 stable4 on
> > > Solaris 7 x86.
> > >
> > > TIA
> > >
> > > pe'
> > >
> > >
> > > ------------------------------
> > > System / Network Administrator
> > > Samitivej Public Co., LTD.
> > > 133 Sukhumvit 49. Sukhumvit Rd.
> > > Klongton, Bangkok 10110.
> > > THAILAND.
> > > phone: 011-66-2-3920011 ext. 2533
> > > fax: 011-66-2-3813490
> > > ------------------------------
> > > UNIX System Admin.
> > > Distributed Computing Services
> > > Lake Superior State University
> > > 650 W. Easterday Ave.
> > > Sault Ste. Marie. MI
> > > 49783 USA.
> > > ------------------------------
> > > http://student.lssu.edu/~pe/index.html
> > > ------------------------------
> > >
> >
>
Received on Thu Aug 03 2000 - 06:58:50 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:54:42 MST