From owner-freebsd-questions@FreeBSD.ORG Wed Mar 9 18:30:53 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6122C1065670 for ; Wed, 9 Mar 2011 18:30:53 +0000 (UTC) (envelope-from leslie@eskk.nu) Received: from mx1.bjare.net (mx1.bjare.net [212.31.160.3]) by mx1.freebsd.org (Postfix) with ESMTP id D9D0A8FC17 for ; Wed, 9 Mar 2011 18:30:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mx1.bjare.net (Postfix) with ESMTP id 26A3D5E29E; Wed, 9 Mar 2011 19:30:40 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mx1.bjare.net X-Spam-Flag: NO X-Spam-Score: -2.411 X-Spam-Level: X-Spam-Status: No, score=-2.411 tagged_above=-999 required=5 tests=[AWL=0.189, BAYES_00=-2.599, SPF_PASS=-0.001] Received: from mx1.bjare.net ([127.0.0.1]) by localhost (mx1.bjare.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ovHLRiwzpJW7; Wed, 9 Mar 2011 19:30:37 +0100 (CET) X-BN-MX1: ja X-BN-MailInfo: BjareNet Received: from bljbsd01.no-ip.org (c-195-216-040-164.static.bjare.net [195.216.40.164]) by mx1.bjare.net (Postfix) with ESMTP id 8D64F5E05A; Wed, 9 Mar 2011 19:30:37 +0100 (CET) Message-ID: <4D77C784.1060809@eskk.nu> Date: Wed, 09 Mar 2011 19:31:32 +0100 From: Leslie Jensen User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; sv-SE; rv:1.9.2.15) Gecko/20110307 Thunderbird/3.1.9 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4D779C5F.3000301@eskk.nu> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Kevin Wilcox Subject: Re: Installing squid, where should the directories be? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Mar 2011 18:30:53 -0000 On 2011-03-09 17:06, Kevin Wilcox wrote: > On Wed, Mar 9, 2011 at 10:27, Leslie Jensen wrote: > >> I'm installing squid on a new 8.2-RELEASE machine. > > Me too. > >> I have /usr/local/squid as default directory and has made a separate mount >> point. > > Same here. As a general rule I like to give squid its own hard drive, > or its own RAID. Giving it a separate partition on a single drive is > useful if you're concerned about filling the disk but that *should* be > controlled by the squid configuration file. Still, it's a good idea. > >> When it comes to the cache and the logs directory I can see that the squid >> installation has created the /var/squid/cache directory. > > I've always seen /var/squid as being very "Linux-centric". > > /usr/local/squid or /usr/local/var/squid makes more sense to me. > >> When Googling this problem I see both the use of /var/squid and >> /usr/local/squid. > >> Where should it be? > > Yep, ultimately it doesn't matter as long as you know where it is, you > document where it is and your settings are correct in > /usr/local/etc/squid/squid.conf. > > By default squid will use /var/squid. I always change it on install. > >> When running the command squid -z to initialize the cache the cache >> directory must be there otherwise the command won't work. >> >> How should I set the permissions on /usr/local/squid and the directories >> below? > > I use 755, squid:squid. > >> I could not find any advise in the Handbook. I'll be happy to help making a >> squid chapter. > > I'm writing some internal documentation on deploying pf + squid 2.7.x > + SNMP on FreeBSD 8.2 routers/firewalls with cacti monitoring, I'll > contribute what I can. I doubt we'll see a section on squid as it's > really a niche area but it's always good to have something on the list > so folks doing a search can find something useful. If it's going to be > a few days before you get into the heavy lifting I'll try to send > something directly or maybe a link to this list this weekend. > > You said you had notes from doing a 2.x installation, are you > installing 3.x? . I'm sticking with 2.7.STABLE9 for storeurl support > in some places and considering 3.x in others. 3.2 introduced SMP > support but you can achieve pseudo-SMP support by running multiple > instances on the same machine...just remember each instance has its > own RAM and disk cache, which sort of kills the performance. > > kmw Thanks Kevin. I'm ok with the configuration. My new install is version 3.1 and I'll keep /usr/local/squid for now to avoid the need for reinstalling and to make /var/squid big enough and as a separate partiton. /Leslie