From owner-freebsd-questions@FreeBSD.ORG Wed Mar 9 16:06:06 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 5D0591065677 for ; Wed, 9 Mar 2011 16:06:06 +0000 (UTC) (envelope-from kevin.wilcox@gmail.com) Received: from mail-yi0-f54.google.com (mail-yi0-f54.google.com [209.85.218.54]) by mx1.freebsd.org (Postfix) with ESMTP id 1948B8FC13 for ; Wed, 9 Mar 2011 16:06:05 +0000 (UTC) Received: by yie12 with SMTP id 12so297614yie.13 for ; Wed, 09 Mar 2011 08:06:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=Ly5Rzua+bVRpuz6AFWMj730Y8O0sdXOm9mWZWKQRa+0=; b=X2wUEOmBColNpRGpeXN3g0V06BXeV8QpB/KMpYU3qa2Umua9tWvJqfr0QVPbhOicDx d2+k8oAQYBKn4HP1OvpKwwSqrVOUCUb5QnJ6q6udJ8fy9s+eahA03VT+jhdQG0somIoJ QVanM8f2YrE4AJrrj4aqkR1EaIMiXJF+u0e0U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=kHM975jwjw7K0VGIUA3TawNqaGsZhouGh1C5QDHCcaN/adpPeEP1nrOkZZRet5GPsi CXFLqRkaWIcLckL9awmgx/Kj+EsEHTrQXzp9dijcucI/5XdNg1+la4DdywlIuQehTDKi vkQjEUJlikiWHvsC0FH0Y+iXvubffHWU+xDww= MIME-Version: 1.0 Received: by 10.151.124.6 with SMTP id b6mr7889414ybn.267.1299686765196; Wed, 09 Mar 2011 08:06:05 -0800 (PST) Received: by 10.91.206.19 with HTTP; Wed, 9 Mar 2011 08:06:05 -0800 (PST) In-Reply-To: <4D779C5F.3000301@eskk.nu> References: <4D779C5F.3000301@eskk.nu> Date: Wed, 9 Mar 2011 11:06:05 -0500 Message-ID: From: Kevin Wilcox To: Leslie Jensen Content-Type: text/plain; charset=UTF-8 Cc: freebsd-questions@freebsd.org 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 16:06:06 -0000 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