Quote:
Originally Posted by satimis
Hi folks,
I'm planning to build a web server on following PC;
CPU Athlon 64 3000+
RAM 1024M
HD SATA II 160G
OS Ubuntu on the server
http://www.ubuntu.com/server
|
If I were you, I'd install some virtualization server and set up the webserver on several distributions since you want to learn.
The hardware is solid for any kind of webserver so you're set on that.
Quote:
Please advise what will be the best arrangement on the size of each of following partitions;
/dev/sda1 /boot
/dev/sda2 /
/dev/vg/home
/dev/vg/usr
/dev/vg/var
/dev/vg/tmp
/dev/sda4 swap
Any suggestion on above LVM order? In following order?
/usr
/home
/var
/tmp
|
It's important to know the use of the webserver since it'll determine the best partitioning scheme. I think you're making a -lot- of partitions which can over-complicate things.
For example, if the server's going to be used to serve individual user pages for lots of users, you'll want your home partition to be the biggest of the bunch. It'll need to host all of the users files plus their webpages. You'll also want to use quotas.
If you're serving hosted pages, then you might want to create a new /www directory and change the server document root. I'd do that for simplicity, rather than /var/httpd/www.
I agree about having /tmp on a separate partition since it's world writeable and you don't want some malicious script or process filling up your hard drive

The boot partition... I'd skip over creating one if you're using ext3 as your filesystem. This will allow you to have several kernels without running into space problems.
About the swap, the old 2xRAM rule is dead (even moreso with your hardware). The reason is pretty simple, the server will almost never swap with 1gb and if it does, you just buy more RAM. Swapping is -slow- and you don't want it on production boxes.
My proposed scheme would be:
/: 8-10Gb
tmp: 2Gb
swap: 512mb
home or webserver pages: the rest
Quote:
Is "Ubuntu on the server" easy to configure?
|
It's based on Debian so it's very easy to add/remove software and it's all well documented.
Quote:
Apache, MySQL and PHP come with "Ubuntu on the server" as default. What will be your opinion on MySQL vs PostgreSQL?
|
I'd go with MySQL since it's faster and now version 5 supports stored procedures, triggers, views, etc.
Quote:
If allowing visitors sending webmail direct on the server what package will you recommend.
TIA
B.R.
satimis
|
I haven't fiddled around much with webmail (in fact I don't recognize any of those packages

) but you'll want to take the mail factor into account when partitioning also.
You'll want SMTP and POP3/IMAP servers also.