From owner-freebsd-chat@FreeBSD.ORG Thu Jun 5 13:25:53 2008 Return-Path: Delivered-To: freebsd-chat@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 37EA91065684 for ; Thu, 5 Jun 2008 13:25:53 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (unknown [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id A46198FC2B for ; Thu, 5 Jun 2008 13:25:52 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.1/8.14.1) with ESMTP id m55DPpC4040973; Thu, 5 Jun 2008 15:25:51 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.1/8.14.1/Submit) id m55DPoGm040972; Thu, 5 Jun 2008 15:25:50 +0200 (CEST) (envelope-from olli) Date: Thu, 5 Jun 2008 15:25:50 +0200 (CEST) Message-Id: <200806051325.m55DPoGm040972@lurza.secnetix.de> From: Oliver Fromme To: freebsd-chat@FreeBSD.ORG, a.j.werven@student.utwente.nl In-Reply-To: <48470120.8090404@student.utwente.nl> X-Newsgroups: list.freebsd-chat User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.2-STABLE-20070808 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Thu, 05 Jun 2008 15:25:51 +0200 (CEST) Cc: Subject: Re: [style] Where to put server dirs X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-chat@FreeBSD.ORG, a.j.werven@student.utwente.nl List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jun 2008 13:25:53 -0000 Alphons "Fonz" van Werven wrote: > Just wondering: where would you put server directories, such as the httpd > root dir, the anonymous ftp root dir, the CVS repository, that stuff. Put > it in /usr/local (e.g. /usr/local/cvsroot or /usr/local/httpd), in /var > (e.g. /var/cvs or /var/www), in / (e.g. /cvs or /www), or somewhere else? > > They will be seperate partitions, I'm just curious where people like to > mount them. The answer is "it depends". :-) There is usually a default location. For Apache, the default document root under FreeBSD is /usr/local/www/data or something like that. For anonymous FTP it is the home directory of the "ftp" user, i.e. /home/ftp. Of course those are just the defaults; you can change them whatever you like. I think /var is a bad idea. The /var file system is for data that changes often (i.e. it gets written to often), such as log files, lock files, PID files, spool and queue directories etc. (that's the reason why /var should always be different from the root directory). The write pattern on server directories is usually different. Some people put services alongside the user directories, i.e. there is /home/www, /home/cvs and so on. Another possibility is to create a special top-level directory such as /opt or /srv, and put the services there. If it's a separate file system anyway, it doesn't really matter that much how you call the mount point. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "anyone new to programming should be kept as far from C++ as possible; actually showing the stuff should be considered a criminal offence" -- Jacek Generowicz