The Perfect Server - Mandriva 2009.0 Free (x86_64)

Version 1.0
Author: Falko Timme
Last edited 10/10/2008

This is a detailed description about how to set up a Mandriva 2009.0 Free server that offers all services needed by ISPs and hosters: Apache web server (SSL-capable), Postfix mail server with SMTP-AUTH and TLS, BIND DNS server, Proftpd FTP server, MySQL server, Dovecot POP3/IMAP, Quota, Firewall, etc. This tutorial is written for the 64-bit version of Mandriva 2009.0.

I will use the following software:

  • Web Server: Apache 2 (with PHP5, Ruby, and Python)
  • Mail Server: Postfix
  • DNS Server: BIND9
  • FTP Server: proftpd
  • POP3/IMAP server: Dovecot
  • Webalizer for web site statistics

In the end you should have a system that works reliably and is ready for the free webhosting control panel ISPConfig (i.e., ISPConfig runs on it out of the box).

I want to say first that this is not the only way of setting up such a system. There are many ways of achieving this goal but this is the way I take. I do not issue any guarantee that this will work for you!

 

1 Preliminary Note

In this example I will use the following settings for my system:

  • IP address: 192.168.0.100, gateway: 192.168.0.1
  • Host name: server1.example.com

Your settings will most likely differ, so you might have to adjust the instructions from this tutorial.

 

2 Requirements

To install such a system you will need the following:

  • Download the Mandriva 2009.0 DVD iso image or the Mandriva 2009.0 CD iso images from a mirror near you (you can find the download here: http://www.mandriva.com/en/download); I have used the Mandriva 2009.0 DVD for this tutorial.
  • a fast internet connection...

 

3 The Base System

Boot from your Mandriva 2009.0 DVD or CD (the first one). Select Install Mandriva Linux 2009 and press Enter:

Choose your language next:

Accept the license and click on Next:

Select your keyboard layout:

Now we have to partition our hard disk. You can choose to let the Mandriva installer do the partitioning, or you can do it yourself. I want to create a small /boot partition (about 150 MB) with the file system ext3, a swap partition and a huge / partition (again with ext3):

Afterwards, the new partitions are being formatted:

Click on Next on the following screen:

We don't have any other installation media, so we select None and click on Next:

Share this page:

3 Comment(s)

Add comment

Comments

From: Buchan Milne at: 2008-10-21 06:51:05

1)For a server install, the dual arch mini CD may be better (less to download, more of which you will use).

 2)I would recommend using LVM (available in the partitioning tool in the installer.

 3)You could add the network media during installation, instead of afterwards. The installer will get a list of mirrors for you.

4)Mandriva does not use /etc/hostname, but rather the HOSTNAME setting in /etc/sysconfig/network.

 5)Easyurpmi is no longer a necessity, you can use 'urpmi.addmedia --distrib --mirrorlist'.

6)Why not use 'urpmq --list-media' to list the installation media? Also, you could remove the installation media first (with 'urpmi.removemedia -a'), then add the network media. Much easier.

7)Updating can be done with one command, 'urpmi --auto-update'.

8)lib64sasl2-devel should not be required

9)To get ntpd to start before dovecot, you need to let the dependency-based init know that, so you should add ntpd to the Should-Start LSB tag in the dovecot init script. You could consider filing a bug on this (against the dovecot package).

10)You could consider installing the task-lamp package instead of all the separate packages. Or, I need to get around to packaging ISPConfig (though I don't like the architecture entirely).

11)"Mandriva 2009.0 doesn't come with a Webalizer package anymore, therefore we build the Webalizer binary like this" is not entirely correct. Mandriva has switched to a fork of webalizer, called awffull. 'urpmi webalizer' would have pulled it in for you:

 # urpmi webalizer
To satisfy dependencies, the following packages are going to be installed:
   Package                        Version      Release       Arch
(medium "Contrib (telkomsa-11)")
  awffull                        3.8.2        4mdv2009.0    x86_64
  geoip                          1.4.4        3mdv2009.0    x86_64
  lib64geoip1                    1.4.4        3mdv2009.0    x86_64
  lib64geoipupdate0              1.4.4        3mdv2009.0    x86_64
2.4MB of additional disk space will be used.
893KB of packages will be retrieved.
Proceed with the installation of the 4 packages? (Y/n)

 

From: admin at: 2008-11-01 23:25:19

You can simply send an email to a new email account, and the Maildir gets created automatically. :-)

From: Per Crusefalk at: 2008-11-01 23:00:19

Thank you for an interesting article!

I followed this howto but had trouble with maildir, postfix would not create the maildir and apparently it should not do so either (it does not create ~/Maildir).

To get maildir (and email) working I:

mkdir ~user/Maildir
mkdir ~user/Maildir/new ~user/Maildir/tmp  ~user/Maildir/cur
chown -R user:mail ~user/Maildir
chmod -R 770 ~user/Maildir

You could use maildirmake instead ("urpmi maildrop" to get that).