From owner-freebsd-questions Tue Jan 4 11:40:58 2000 Delivered-To: freebsd-questions@freebsd.org Received: from quasar.pucrs.br (quasar.pucrs.br [200.132.10.5]) by hub.freebsd.org (Postfix) with ESMTP id 1DF1914CA0 for ; Tue, 4 Jan 2000 11:37:52 -0800 (PST) (envelope-from mwp@pucrs.br) Received: from pucrs.br (clapton.pucrs.br [200.132.13.11]) by quasar.pucrs.br (8.9.1a/8.9.1) with ESMTP id OAA17806; Tue, 4 Jan 2000 14:17:03 -0300 Message-ID: <38721DBA.51EF2E7A@pucrs.br> Date: Tue, 04 Jan 2000 14:20:10 -0200 From: Mauricio Westendorff Pegoraro X-Mailer: Mozilla 4.5 [en] (X11; I; SunOS 5.7 sun4m) X-Accept-Language: en MIME-Version: 1.0 To: Dan Nelson Cc: Nils Holland , FreeBSD-Questions Subject: Re: SQUID under FreeBSD References: <200001031415_MC2-932E-3E4C@compuserve.com> <20000103133336.A6781@dan.emsphone.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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