A Web server has different partition requirements than a desktop or a file server. For a machine with 26 GB of hard disk space, spread out over two drives, here’s one possible configuration. Boot is always 100 MB, unless you’re so pressed for disk space that you need to reduce it further. /var/www is where Web server files go, so you’ll want a lot of room there. Swap is usually twice the amount of RAM.
hda (12 GB)
- boot 100 MB
- /var/www 11,000 MB
- swap 500 (assuming 256 MB of RAM)

Reserve a fair amount of space for /tmp and /var, which hold files like logs and working files. Putting each of these in its own partition means that, for example, a log file that runs out of control won’t crash the rest of the system. Reserve a fair amount of space for /home. And increase that if you’re going to have other people maintaining their own home directories on your Web server. The rest goes to the root partition.
hdb (14 GB)
- / 5000
- /tmp 2000
- /home 3000
- /var 2000

If you’re not using DHCP, you’re going to need to configure your network card manually. In the Network Configuration step, select the Edit button to the right of the Network Devices list box. You’ll uncheck the “Configure using HDCP” check box, and then enter the IP Address and Netmask for your Web server computer. Once back in the Network Configuration step, you’ll select the “Set the hostname” option button to “manually”, and enter the hostname for your Web server computer.

Finally, you’ll enter the IP address for your Web server’s gateway (often this is an IP associated with the router that the server is connecting to the Internet through), and the IP addresses for the DNS servers your Web server will be using. You can verify and modify these settings through the System Settings | Network dialog as shown inFigure 1. You’ll need to enter the root password in order to gain access to the dialog.

source: portal.dfpug.de
Download pdf The Ten Minute Guide to Setting Up a Linux Web Server