From owner-freebsd-questions@FreeBSD.ORG Wed Dec 29 16:05:03 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 9866816A4CE for ; Wed, 29 Dec 2004 16:05:03 +0000 (GMT) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 25EB743D4C for ; Wed, 29 Dec 2004 16:05:02 +0000 (GMT) (envelope-from nkinkade@fastmail.fm) Received: from frontend2.messagingengine.com (frontend2.internal [10.202.2.151]) by frontend1.messagingengine.com (Postfix) with ESMTP id 21E2CC47E9E; Wed, 29 Dec 2004 11:05:01 -0500 (EST) X-Sasl-enc: JnOuue6hp24UBR/w7MYfmg 1104336300 Received: from gentoo-npk.bmp.ub (unknown [206.27.244.136]) by www.fastmail.fm (Postfix) with ESMTP id 1FABA56FABA; Wed, 29 Dec 2004 11:04:58 -0500 (EST) Received: from nkinkade by gentoo-npk.bmp.ub with local (Exim 4.21) id 1CjgJm-0004ep-N0; Wed, 29 Dec 2004 10:04:58 -0600 Date: Wed, 29 Dec 2004 10:04:58 -0600 From: Nathan Kinkade To: freebsd-questions@FreeBSD.ORG Message-ID: <20041229160458.GF3644@gentoo-npk.bmp.ub> Mail-Followup-To: freebsd-questions@FreeBSD.ORG, Kiffin Gish References: <000001c4ed24$d08bb980$9900000a@ZGISH> <41D1DE58.1090604@vonostingroup.com> <20041228175429.O38542@pemaquid.safeport.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7cm2iqirTL37Ot+N" Content-Disposition: inline In-Reply-To: <20041228175429.O38542@pemaquid.safeport.com> User-Agent: Mutt/1.5.6i Sender: cc: Kiffin Gish Subject: Re: Looking for 'ideal' web-server partitions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Nathan Kinkade List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Dec 2004 16:05:03 -0000 --7cm2iqirTL37Ot+N Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > Kiffin Gish wrote: >=20 > 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? If I could make one quick suggestion, I would urge you to attempt to mount you various partitions in more standard locations. For example, instead of mounting your "db" partition at /db, why not mount it at /var/db? And instead of mounting your "www" partition at /www, how about at /var/www, or the FreeBSD standard of /usr/local/www? Having these specific directories represent a separate filesystem is fine, and perhaps desirable, but having them all mounted on root makes for a less standard filesystem layout, which in general is not a good thing. Nathan --7cm2iqirTL37Ot+N Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFB0tWqO0ZIEthSfkkRAlGNAJ91TRMAiE9fVNO4zcU70Geuo63CQACeL4ne tnpKGk0s+DmGdV+C5v5s5hY= =25bb -----END PGP SIGNATURE----- --7cm2iqirTL37Ot+N--