The Perfect Server - Mandriva 2009.0 Free (i386)

Version 1.0
Author: Falko Timme
Last edited 10/09/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 32-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:

8 Comment(s)

Add comment

Comments

From: william at: 2009-05-03 13:07:12

hi can this set up be done with a dynamic ip as my isp don't do static ips


i am new to trying to host my own stuff


any help or info please thanks william

From: FACORAT Fabrice at: 2008-10-17 12:20:48


1. to add a media, you can do it easily with 1 line, without the need to use easyurpmi :


 urpmi.addmedia --distrib --mirrorlist


This command will automatically add all the remote FTP repositories, and will try to select the closest mirror for you. So if you want to only have remote repositories and removed the installation media, you'd better remove all the media/repositories, and then add the new ones :


 urpmi.removemedia -a && urpmi.addmedia --distrib --mirrorlist


2. if you want to do automatic updates, but only install packages from the updates repositories, you can now use --auto-update which will do at the same time a "urpmi.update -a" and a "urpmi --auto-select". So you auto-update script could look like this :


urpmi --auto-update --update  --auto

From: Hoyt at: 2009-03-02 18:57:08

I use a script that also includes the "--wait-lock" option so that the script will wait if another instance of urpmi happens to be running and has locked the database.

From: FACORAT Fabrice at: 2008-10-17 12:35:58

1. renaming the dovecot startup number will not fix dovecot ordering start. Indeed, Mandriva is using prcsys to start services in parallel based on the LSB tags explaining the service dependency : it doesn't use the service number.


So the proper fix to make dovecot be started after ntpd is to add a soft dependency of dovecot on ntpd by adding the following line in the header of the dovecot init file :


Should-Start: ntpd


2. I opened a bug report on Mandriva bugzilla, so maybe in a future update, this issue will be solved and you will no longer need to fix this manually :


https://qa.mandriva.com/show_bug.cgi?id=45035


 

From: Eagle at: 2009-02-18 00:44:43

mysql-devel is also needed for succesfuly instalation. Don't forget.

From: boyfren at: 2009-06-30 01:56:57

When I tried this code: urpmi cyrus-sasl libsasl2 libsasl2-devel libsasl2-plug-plain libsasl2-plug-anonymous libsasl2-plug-crammd5 libsasl2-plug-digestmd5 libsasl2-plug-gssapi libsasl2-plug-login postfix dovecot Most of them are not available on the media. How do I directly installl these from online repository?

From: FACORAT Fabrice at: 2008-10-17 12:47:08

1. Since at least Mandriva  2008.1 , there's a metapackage named task-lamp-php which will install most apache+php+mysql packages


urpmi task-lamp-php


Here is the list of packages installed by task-lamp :


apache-base


apache-mod_php


freetype


php-mysql


php-pear


php-gettext


php-xml


php-ming


php-sqlite


php-imap


php-eaccelerator-admin


php-mcrypt


php-gd


php-mhash


2. installing  php-imagick is enough to install imagemagick package ( which no longer have capital letters ).

From: casjay at: 2009-01-04 05:48:38

There is a webalizer rpm package available at apmp.casjay.com/downloads/gpl/.