SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.