From owner-freebsd-questions@FreeBSD.ORG Tue Dec 28 23:25:31 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 87CF516A4CE for ; Tue, 28 Dec 2004 23:25:31 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 25DAE43D45 for ; Tue, 28 Dec 2004 23:25:31 +0000 (GMT) (envelope-from joshua.lokken@gmail.com) Received: by wproxy.gmail.com with SMTP id 58so59342wri for ; Tue, 28 Dec 2004 15:25:30 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=kMZY+BNl6JLlTShdud9LFYewKubzacEO1PavROF/pl9VGGDuaZ0b1zxGFxdZ0SxJNXwhsZ7wxknb32XPjQG1vOHWV+8RpKyb4Wx08VQIS3mx2RAiH/9ljCNY/k8XOM1QU+O+PShCl4GYxH/Gq4bh0nOamaOj2sY3zVV05cOH5Xo= Received: by 10.54.39.70 with SMTP id m70mr221582wrm; Tue, 28 Dec 2004 15:25:30 -0800 (PST) Received: by 10.54.11.33 with HTTP; Tue, 28 Dec 2004 15:25:30 -0800 (PST) Message-ID: Date: Tue, 28 Dec 2004 17:25:30 -0600 From: Joshua Lokken To: Kiffin Gish In-Reply-To: <000001c4ed24$d08bb980$9900000a@ZGISH> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <000001c4ed24$d08bb980$9900000a@ZGISH> cc: freebsd-questions@freebsd.org Subject: Re: Looking for 'ideal' web-server partitions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Joshua Lokken List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Dec 2004 23:25:31 -0000 On Tue, 28 Dec 2004 22:33:04 +0100, Kiffin Gish wrote: > I want to create a web server for a few personal web sites (virtual named > hosts) using Apache, Perl, PHP and MySQL. Maybe later using mod_perl and > ssl. > > No mail servers or other complicated stuff, just a plain-vanilla web server > for the general public and an average visitor traffic of below 1000 per day. > > I have 40G to use up on an AMD Sempron 1300+ with 512MB and was just > wondering what would be a good way to divvy up the partitions. I was > thinking something like this: > > SWAP 1024M > / 1057M > /db 6.3G > /usr 24G > /var 4.2G > /www 42G > > I've heard arguments for and against a separate /db and/or /tmp partition as > well as using a /home. Also I see that there is a /usr/local/www directory > already so perhaps the /www partition is not required. Is a separate /db > partition really needed? > > I'm pretty confused and would like to setup my web server the right way once > and for all. Are there any standard recipes and/or guides to figuring this > out or is it just a bunch of guess work? > > How does this look? A root partition of 128M ought to be just fine, though you may want to put /tmp on a slice of its own. It looks like you plan to put databases and htdocs on slices of their own as well, so /var can be much smaller; I generally use a 256M /var slice, and have had no problems with space for logging. 24GB is a nice, fat /usr slice. You could easily trim that back, since again, it appears you plan to store db and www on unique slices. Maybe something like: SWAP 1024M / 128M /tmp 256M /var 256M /usr 10G (?) /db whatever size you like /www whatever size you like HTH, -- Joshua Lokken Open Source Advocate