I was wondering if anyone can give me some guidelines on how I should partition my hard drive.
My server is a Dell PowerEdge 1650. ITs a Pentium 1266Mhz processor with 256MB RAM (do I need more??
) and 20GB HD. It will be used as a web server. I will be hosting one website from this machine, and I am not storing any data. I don't really require home directories...
When I choose the automatic partition I get:
Device Start End Size(MB) Type Mount Point
--/dev/sda1 1 6 47 ext3 /boot
--/dev/sda2 7 2148 16802 ext3 /
--/dev/sda3 2149 2213 510 swap
Is this sufficient and / or safe?? Basically I have the following needs of the web server:
1. Serve approx 100 static html pages with Apache
2. Serve approx 5 pages that run an OLDP transaction with our backend UNIX system.
3. Serve approx 10 JSP and run approx 10 Java programs with Tomcat
The website will be accepting payment for a service, and send data off to a processor. As I mentioned, I am not using any type of database to store any data (not storing cardholder data). The traffic won't be that heavy in the beginning. Later, we will be added an IVR system that will also use my web server to process credit card transactions.
Should I have my web app on a separate partition than everything else? (I'm not even sure if this is possible)
For example, have:
4)webapps partition (has all apache and tomcat config files, and pages/programs to be served)
I am not completely clear on the purpose of the partitions other than keeping data separated. I'm not sure if separating things on partitions help to make a more secure server? For example if my website gets hacked, and I have the webapp on a separate partition, can I prevent the rest of my server from being touched?
Thanks for the help.