Re: Use /var for storing webpages.. Why???

2004-12-17 Thread Eric Crist
On Dec 14, 2004, at 10:05 PM, Adam wrote:
Okay, I understand not using /usr, but why not use /home?  Does storing
webpages in /var give you a performance increase?  Or is it convention 
that
you would store webpages in /var?  I'm setting up a webserver at my 
house
where I'll serve several websites for my friends, should I have them 
store
webpages in /var/username or keep them in /home/username?

BTW, awesome book.  I love reading about the old RLL and MFM hard 
drives I
used to config when I was a kid.  Brings back a lot of memories.

Thanks
Adam
FWIW, I usually have an entirely separate file system, located at /www. 
 This allows me to keep all of my web content completely separate from 
the entire system, and in the even the system dies, I can simply mount 
it from a new system.

HTH
___
Eric F Crist  I am so smart, S.M.R.T!
Secure Computing Networks  -Homer J Simpson


PGP.sig
Description: This is a digitally signed message part


Re: Use /var for storing webpages.. Why???

2004-12-14 Thread Adam
On Tuesday, 14 December 2004 at 21:50:45 -0600, Adam wrote:
 In Greg Lehey's book The Complete FreeBSD 4th edition, he says,
 Do not have a separate /var file system unless you have a good idea
 how big it should be.  A good example might be a web server, where
 (contrary to FreeBSD's recommendations) it's a good idea to put the
 webpages on the /var file system. p.70

 Why is it a good idea to put webpages in the /var file system and
 not the /usr file system?

Because they're not part of the system.  Despite the name, /usr is
mainly for the operating system.  /var is for content that frequently
varies.

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipients.
For more information, see http://www.lemis.com/questions.html
See complete headers for address and phone numbers.

Okay, I understand not using /usr, but why not use /home?  Does storing
webpages in /var give you a performance increase?  Or is it convention that
you would store webpages in /var?  I'm setting up a webserver at my house
where I'll serve several websites for my friends, should I have them store
webpages in /var/username or keep them in /home/username?

BTW, awesome book.  I love reading about the old RLL and MFM hard drives I
used to config when I was a kid.  Brings back a lot of memories.

Thanks
Adam

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Use /var for storing webpages.. Why???

2004-12-14 Thread Greg 'groggy' Lehey
On Tuesday, 14 December 2004 at 22:05:20 -0600, Adam wrote:
 On Tuesday, 14 December 2004 at 21:50:45 -0600, Adam wrote:
 In Greg Lehey's book The Complete FreeBSD 4th edition, he says,
 Do not have a separate /var file system unless you have a good idea
 how big it should be.  A good example might be a web server, where
 (contrary to FreeBSD's recommendations) it's a good idea to put the
 webpages on the /var file system. p.70

 Why is it a good idea to put webpages in the /var file system and
 not the /usr file system?

 Because they're not part of the system.  Despite the name, /usr is
 mainly for the operating system.  /var is for content that frequently
 varies.

 Okay, I understand not using /usr, but why not use /home? 

/var is for content that frequently varies.  That's its purpose.
/home is for user home directories.

 Does storing webpages in /var give you a performance increase?

No.

 Or is it convention that you would store webpages in /var?

It's certainly a convention.

 I'm setting up a webserver at my house where I'll serve several
 websites for my friends, should I have them store webpages in
 /var/username or keep them in /home/username?

I suppose if you're in a multi-user environment where each user has
his own web pages, it's better to have the users' web pages in his
public_html directory.  You can do this in either direction with
symlinks.

It's easy to read too much into these recommendations.  I personally
don't follow them.  There are hysterical raisins behind that: I set up
my original web server before I thought about the issue, and I've been
too lazy to move.  I *would* follow them with a new installation.  My
personal web pages are in my home directory, and
http://.lemis.com/grog/ (count those s) is a symlink to
~grog/public_html.

My externally visible web server is a colocated system which I share
with a number of friends.  They store the main web files in /var/www,
but individuals have their web pages in a subdirectory of their home
directory that matches the web site name (in my case,
~grog/www.lemis.com/).

 BTW, awesome book.  I love reading about the old RLL and MFM hard
 drives I used to config when I was a kid.  Brings back a lot of
 memories.

Thanks

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipients.
For more information, see http://www.lemis.com/questions.html
See complete headers for address and phone numbers.


pgpb6V2daLB6D.pgp
Description: PGP signature


Re: Use /var for storing webpages.. Why???

2004-12-14 Thread Eric Kjeldergaard
  Does storing webpages in /var give you a performance increase?
 
 No.
 

Well, this is not necessarily true.  When designing a server and
optimising for performance, one thinks about which partitions will get
certain types of usage.  One that varies a lot you will want to have a
fast disk or the fast part of a disk.  When designing one that changes
very little, you would want to utilise the slower drives/parts of
drives.  In this way, if you page is variant data (changes a lot) and
you've designed your system such that frequently modified directories
(/var and /tmp, for isntance) get the fastest partitions, certainly it
would give a performance increase.

-- 
If I write a signature, my emails will appear more personalised.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Use /var for storing webpages.. Why???

2004-12-14 Thread Greg 'groggy' Lehey
[Format recovered--see http://www.lemis.com/email/email-format.html]

Single line paragraphs.

On Tuesday, 14 December 2004 at 21:50:45 -0600, Adam wrote:
 In Greg Lehey's book The Complete FreeBSD 4th edition, he says,
 Do not have a separate /var file system unless you have a good idea
 how big it should be.  A good example might be a web server, where
 (contrary to FreeBSD's recommendations) it's a good idea to put the
 webpages on the /var file system. p.70

 Why is it a good idea to put webpages in the /var file system and
 not the /usr file system?

Because they're not part of the system.  Despite the name, /usr is
mainly for the operating system.  /var is for content that frequently
varies.

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipients.
For more information, see http://www.lemis.com/questions.html
See complete headers for address and phone numbers.


pgpl8j2owUWp1.pgp
Description: PGP signature


Use /var for storing webpages.. Why???

2004-12-14 Thread Adam
In Greg Lehey's book The Complete FreeBSD 4th edition, he says, Do not have 
a separate /var file system unless you have a good idea how big it should be.  
A good example might be a web server, where (contrary to FreeBSD's 
recommendations) it's a good idea to put the webpages on the /var file system. 
p.70

Why is it a good idea to put webpages in the /var file system and not the /usr 
file system?
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]