LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-01-2005, 09:18 AM   #1
toneee
LQ Newbie
 
Registered: Feb 2005
Posts: 2

Rep: Reputation: 0
Web Server Partitioning


Hi,

I want to install Slackware as a web server, but i am stuck at partitioning the hard drive down.

Infact i have 2 boxes, with 20 gb drives in them.

1 is going to be a mail server and the other one is a web server.

Can anyone tell me what partitions i will need for both installs?

Cheers.

Tony

Last edited by toneee; 02-01-2005 at 10:34 AM.
 
Old 02-01-2005, 10:35 AM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
For my part for the web server, I would create these partitions :
/boot
/
/var
/home # I would put htdocs here

And add a file named "apache" in /etc/logrotate.d with the content as follow :
/var/log/apache/access_log /var/log/apache/error_log {
missingok
sharedscripts
postrotate
/usr/sbin/apachectl graceful 2>/dev/null || true
endscript
weekly
compress
}
So apache log are rotated weekly
I pay attention to these /var/log/apache logs because their size grow very much
in a little period of time
 
Old 02-01-2005, 10:53 AM   #3
toneee
LQ Newbie
 
Registered: Feb 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for the reply.

does that mean you wouldnt create a swap partition?

Also how large does each partition have to be?

I have a 20gb disk at the moment.
 
Old 02-01-2005, 11:04 AM   #4
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
My bad, I forgot the swap

/boot : 200 MB
swap : 1000 MB
/ : 4000 MB
/var : 2000 MB
/home : 12800 MB
 
Old 02-01-2005, 07:51 PM   #5
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 31
Yeah. If I was doing it in two boxes, that's how I'd set up the partitioning. Maybe vary the swap size depending on system memory, too. If you can, set up redundant drives, too. Unless you're running a mail server which is expecting heavy or rare use or is going to be running IMAP (I'm running an IMAP server myself, and you'd be surprised at how much mail storage a packrat will use up. I've got a 110mb mailbox, and one of my users is using 190mb at last count), you probably won't be filling up that 20GB hard drive any time soon, and it might be a good idea to set up a different partition where you can periodically back up the mail directories, especially if you're running an IMAP server. For mine, the backup is actually to an NFS-mounted share running on a diffrent computer.

It's probably worth asking how much use you're expecting to see, too. Both my web and mail servers are running off the same box, and the load has never reached anywhere near enough that I would actually need to split them off to separate servers. For reference, I see about a thousand hits a day on the web server, mostly remote-linked pictures from assorted messageboards I visit, and it's a PII-350 w/ 196MB of RAM, and /home is on an 80gb drive. You might find it's more worth your while to set up a single system with a 40GB hard drive (say using JBOD or some other spanning method), rather than two systems with smaller drives.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Optimum Partitioning for WEB SERVERs Fr33B5D Linux - Networking 3 08-29-2005 04:32 PM
can we configure a Linux server with mail server,file server and web server kumarx Linux - Newbie 5 09-09-2004 06:21 AM
adding more web servers to make web server farm linuxboy69 Linux - Networking 5 07-09-2004 09:50 AM
setting up password protected web forms on an apache web server AZDAVE Linux - Security 3 07-07-2004 12:03 PM
Can't access Linux web server web pages from LAN client jaydave Linux - Networking 4 03-16-2003 02:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration