From owner-freebsd-questions@FreeBSD.ORG Fri Mar 14 15:48:33 2008 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 351C81065681 for ; Fri, 14 Mar 2008 15:48:33 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from mk-outboundfilter-1.mail.uk.tiscali.com (mk-outboundfilter-1.mail.uk.tiscali.com [212.74.114.37]) by mx1.freebsd.org (Postfix) with ESMTP id 901858FC2D for ; Fri, 14 Mar 2008 15:48:32 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) X-Trace: 63394245/mk-outboundfilter-1.mail.uk.tiscali.com/PIPEX/$INTERNET-ACCEPTED/None/62.31.10.181 X-SBRS: None X-RemoteIP: 62.31.10.181 X-IP-MAIL-FROM: xfb52@dial.pipex.com X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgABAEs72kc+Hwq1/2dsb2JhbAAIqVw X-IP-Direction: OUT Received: from 62-31-10-181.cable.ubr05.edin.blueyonder.co.uk (HELO [192.168.23.2]) ([62.31.10.181]) by smtp.pipex.tiscali.co.uk with ESMTP; 14 Mar 2008 15:48:30 +0000 Message-ID: <47DA9E42.4070702@dial.pipex.com> Date: Fri, 14 Mar 2008 15:48:18 +0000 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.13) Gecko/20061205 X-Accept-Language: en MIME-Version: 1.0 To: Modulok References: <64c038660803131829q36310d80k3d8a041569e61ff7@mail.gmail.com> <20080314152553.GD19851@gizmo.acns.msu.edu> In-Reply-To: <20080314152553.GD19851@gizmo.acns.msu.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: /usr/local/www a tradition? 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: Fri, 14 Mar 2008 15:48:33 -0000 On Thu, Mar 13, 2008 at 07:29:55PM -0600, Modulok wrote: > Is there a compelling reason for placing subversion and web-server > data in /usr/local and not somewhere else? I was thinking of keeping > all user accounts (human and daemon alike) in one place like, > /home/www and /home/svn and so forth. > > Before I break convention, I just thought I'd see if placing said > files in /usr/local was just a tradition or if there was another > reason for it. Break the convention! Where apache or any other web server looks for its "home" is down to *your* apache config. Different vhosts can look wherever they like for their own homes and you can put them wherever you like - no need for them to be in the same place at all. So one vhost could look in /home/project1 and another in /home/project2/Web, for example. You could keep the default server in /usr/local/www and then you get the files the port installs by default, but still control where *your* data goes. I don't know how tied subversion is to it's home in /usr/local but I would hope "not at all". /home/cvs has been the home of my CVS repositories for a long time and if I switched VCS I'd certainly want to follow a pattern like that (certainly for anything that follows a CVS-like model, which subversion does. Something like Hg might be another matter, but then I'd be looking at putting repositories in project-specific locations). I dislike the notion of putting project-specific data under /usr/local. Config files and the like are easy to control, but large trees should be able to live wherever I want them to live. One can usually work around any issue that arise, and if you hit trouble, just mail back here :-) --Alex PS You said "demons" and I'd certainly draw a line between a demon like, say, postfix or bind which has a system-role and ones like apache, subversion or a database which have a project-role. Not sure it's a very firm line though - plenty of grey area. For me, if it's manageable with a simple CVSed config file or ten, then it can stay in /usr/local. If it breeds data, then it belongs somewhere else.