Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


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

Rep: Reputation: 0
Web Server Partitioning


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?



Last edited by toneee; 02-01-2005 at 11:34 AM.
Old 02-01-2005, 11:35 AM   #2
LQ Guru
Registered: Mar 2004
Distribution: Slackware
Posts: 5,395

Rep: Reputation: 409Reputation: 409Reputation: 409Reputation: 409Reputation: 409
For my part for the web server, I would create these partitions :
/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 {
/usr/sbin/apachectl graceful 2>/dev/null || true
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, 11:53 AM   #3
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, 12:04 PM   #4
LQ Guru
Registered: Mar 2004
Distribution: Slackware
Posts: 5,395

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

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

Rep: Reputation: 30
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.


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 05:32 PM
can we configure a Linux server with mail server,file server and web server kumarx Linux - Newbie 5 09-09-2004 07:21 AM
adding more web servers to make web server farm linuxboy69 Linux - Networking 5 07-09-2004 10:50 AM
setting up password protected web forms on an apache web server AZDAVE Linux - Security 3 07-07-2004 01:03 PM
Can't access Linux web server web pages from LAN client jaydave Linux - Networking 4 03-16-2003 03:38 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:15 AM.

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