From owner-freebsd-questions@FreeBSD.ORG Tue Dec 28 22:29:11 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 6965716A4CE for ; Tue, 28 Dec 2004 22:29:11 +0000 (GMT) Received: from ritamari.vonostingroup.com (ip193-230.digitalrealm.net [216.144.193.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1618C43D39 for ; Tue, 28 Dec 2004 22:29:11 +0000 (GMT) (envelope-from laszlof@vonostingroup.com) Received: from pcp01939978pcs.waldlk01.mi.comcast.net ([68.32.91.145]) by ritamari.vonostingroup.com with esmtpa (Exim 4.43 (FreeBSD)) id 1CjPq7-000M3h-LC; Tue, 28 Dec 2004 17:29:15 -0500 Message-ID: <41D1DE58.1090604@vonostingroup.com> Date: Tue, 28 Dec 2004 17:29:44 -0500 From: "Frank J. Laszlo" User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kiffin Gish References: <000001c4ed24$d08bb980$9900000a@ZGISH> In-Reply-To: <000001c4ed24$d08bb980$9900000a@ZGISH> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ritamari.vonostingroup.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [26 6] X-AntiAbuse: Sender Address Domain - vonostingroup.com X-Source: X-Source-Args: X-Source-Dir: 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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Dec 2004 22:29:11 -0000 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? > > > I'm not even sure what exactly you would put on a /db partition, would this be like /var/db? and /usr/local/www/data is the default DocumentRoot for apache. This can all be changed. Here is my take of your configuration. A) / is WAY too big. I generally allocate about 200M for /, if you are planning on not separating /tmp. Make it slightly larger, say 500M. B) again, im not sure what you are trying to accomplish with /db C) 4G for /var is pretty generous. I run a medium size webserver, and my /var is only 2G. D) separating /www isnt really nescessary, though theres really no downside to this. Here would be my partitioning sceme. 1024M - SWAP 300M - / 2G - /var the rest - /usr linking /tmp to /usr/tmp is generally a good idea in my book. Hope this helps. Regards, Frank Laszlo