Posted 05 July 2008 - 10:53 AM
One of the answers to your initial questions about seperating your partitions is how you will set up your server with respect to users and virtual servers, if any. For example, if you would allow a few different web sites on this machine, say some each from each machine user, then it's simpler for them if you use virtual servers and set their server root to be in their ~/public_html directories.
You can have your web root in /var/www as apache installs by default, but you'll have to give some of your users scary permissions on the machine so they can manage their sites. If the server is only to be used by you, your sites, your box, then use the default /var/www. Some script that you find later and want to install through apt or aptitude will want to see defaults. My partiton scheme below would change to reflect using the default /var/www instead of user /home/uname/public_html directories. Adjust accordingly.
Setting up a LAMP server for your LAN or to serve sites to the world at large is very simple. A lot of people become frustrated when they don't set their server initially to be all the things they want ot to be later on. Virtual hosts, yes or no? How much ram to devote to the setup, users if necessary - processes? What remote access allowed? Role of the machine - strict web server for LAN or world? But fret not - one can always change their setup to accomodate changes in policy or ideology - or whatever reason.
How much RAM on the beast?
Yessir, seperate your stuff. I'd go further than you want though. On your 10GB drive, I'd set up a few primaries.
hda1 - 50MB /boot (set bootable flag)
hda2 - 3GB / (root)
hda3 - 5GB /var
hda4 - balance /tmp
On the other 40GB drive I'd do somethig like this:
hdb 1 - (how much RAM?) 2GB /swap (some folks like swap in the beginning, some the middle, some the end of a hdd)
hdb2 - 30GB /home
hdb3 - 8GB /vault (or, backup, or whatever)
Your /var partition holds your databases, logs - and can get pretty big. It's always a good idea to have a seperate /tmp partition of at least a GB.
Setting up LAMP is simple, sure. But there are a zillion variables. A zillion questions to answer so its setup can be efficient, secure, and robust. I can help with Debian and most can apply to Ubuntu. They are different, though, and I think Ubuntu might be a better choice for desktop than server. But work it and see.