Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 Jan 2000 14:20:10 -0200
From:      Mauricio Westendorff Pegoraro <mwp@pucrs.br>
To:        Dan Nelson <dnelson@emsphone.com>
Cc:        Nils Holland <ncptiddische@compuserve.com>, FreeBSD-Questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: SQUID under FreeBSD
Message-ID:  <38721DBA.51EF2E7A@pucrs.br>
References:  <200001031415_MC2-932E-3E4C@compuserve.com> <20000103133336.A6781@dan.emsphone.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Dan Nelson wrote:

> In the last episode (Jan 03), Nils Holland said:
> > Hi folks,
> > today I wanted to install the SQUID HTTP-Proxy on my FreeBSD machine. So I
> > used the PORTS-system in order to get SQUID22-STABLE. It installed
> > correctly and does now start at system-boot.
> >
> > The problem is that it gives me an error message that it cannot
> > access its logfile access.log unter /usr/local/squid/logs. I had a
> > look at that directory and it's empty. As far as I know SQUID will
> > create the access.log file as well as some other logfiles there when
> > it's started for the first time. Since it failed to do so, I think
> > the permissions for that directory must be set wrong. After having a
> > look at that I saw the following permissions for /usr/local/squid:
> >
> > OWNER: root
> > GROUP: Wheel
> > READ ACCESS: everybody
> > WRITE ACCESS: owner
> > EXEC. ACCESS: everybody
>
> Squid runs as user 'nobody', so it can't create the logfiles.  Just do
> a "chown -R nobody /usr/local/squid" and you should be all set.  Sort
> of odd that the port didn't do this.
>
> --
>         Dan Nelson
>         dnelson@emsphone.com

After setting the permissions as said, you also have to use squid with the
option "-z" (squid -z) in the very first time you run it. It'll create the swap
directories.
You also must have the loopback well configured so squid can start without
errors. I'm saying that because I had problems for not having the interface lo0
well configured. There's a bug in FreeBSD 3.3 and lo0 doens't configure
automatically at system start.

MauricioWP
mwp@pucrs.br




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38721DBA.51EF2E7A>