Installing A LAMP System With Fedora Core 6

Version 1.1
Author: Falko Timme
Last edited 12/01/2006

This is a detailed description about how to set up a Fedora Core 6 based server that offers all services needed by ISPs and hosters: Apache web server (SSL-capable), Postfix mail server with SMTP-AUTH and TLS, DNS server, FTP server, MySQL server, POP3/IMAP, Quota, Firewall, etc. This tutorial is written for the 32-bit version of Fedora Core 6, but should apply to the 64-bit version with very little modifications as well.

I will use the following software:

  • Web Server: Apache 2.2.3
  • Database Server: MySQL 5.0.22
  • Mail Server: Postfix
  • DNS Server: BIND9 (chrooted)
  • FTP Server: proftpd
  • POP3/IMAP server: dovecot
  • Webalizer for web site statistics

In the end you should have a system that works reliably, and if you like you can install 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!

 

Requirements

To install such a system you will need the following:

 

Preliminary Note

In this tutorial I use the hostname server1.example.com with the IP address 192.168.0.100 and the gateway 192.168.0.1. These settings might differ for you, so you have to replace them where appropriate.

 

1 Install The Base System

Boot from your Fedora Core 6 DVD or CD (CD 1).

It can take a long time to test the installation media so we skip this test here:

The welcome screen of the Fedora installer appears. Click on Next:

Choose your language next:

Select your keyboard layout:

I'm installing Fedora Core 6 on a fresh system, so I answer Yes to the question Would you like to initialize this drive, erasing ALL DATA?

Next we do the partitioning. Select Remove linux partitions on selected drives and create default layout. This will give you a smalll /boot partition and a large / partition which is fine for our purposes:

We want to remove all Linux partitions (remember, this is a fresh system), so we answer Yes to the following question:

Share this page:

10 Comment(s)

Add comment

Comments

From: statiic at: 2006-10-28 07:51:01

What about an anti virus program??

From: at: 2006-10-28 13:05:58

The ClamAV antivirus for the email is part of ISPConfig.

From: at: 2007-01-17 17:30:56

If you are going to install ISPConfig you have to be careful on the MySQL password.  Do not put !@#$%^&*() type characters in it.  While it works fine when you log onto mysql at the prompt, ISPConfig prompts you for a password which it then passes into a script.  If you use these characters you can get a strange command-line substitution.

Stick with [A-Z][a-z][0-9] and you should be fine

 -Roger

From: at: 2007-01-21 21:54:53

If you're planning tpo install the ISPconfig support, you'll need to have the MySQL headers installed in the system prior to trying to install  that package. 

 To do so, while on the PACKAGE GROUPS INSTALL page, select SERVERS, then, from in that group, select MYSQL DATABASE, then click on the OPTIONAL PACKAGES button in the lower left corner of the page.  In the dialog that opens, check the box next to "mysql-devel".

Close the OPTIONAL dialog and continue as indicated in these instructions.

From: admin at: 2007-01-22 14:05:16

...or just install mysql-devel, as shown on page 4:

yum install mysql mysql-devel mysql-server

From: at: 2006-12-26 15:56:21

please add openssl-devel to the yum install, openssl alone is not enough for ispconfig, the installation will fail without this package

From: at: 2007-04-22 05:53:43

first, I'd like to thank Falko for his tremendous patience in coming up with this how to.

 I have been using his how to tutorials since he releases it for FC5 and I really make good use of it being an IT professionnal.

 I recently tried this install and got very minor problems like in "named" but one thing that really got me itching is https.  For some reason, mod_ssl was included in one of the packages but it turns out tha mod_ssl is now not integrated.  This was the reason why I couldn't make https work.

 So there you go,  yum install mod_ssl

 Cheers!

From: at: 2007-07-06 16:20:38

Found one little hiccup, if you try to do step 6 without first doing an update, step 6 fails with transaction errors. Do the updates either through yum or the gui before step 6 and everything works like a charm. Great walkthrough.

From: at: 2007-04-01 14:15:10

Install command should be:

yum install bind-chroot caching-nameserver

Without caching-nameserver package, named start will not start. 

From: at: 2006-12-26 15:51:17

for 64 bit systems please use

vi /usr/lib64/sasl2/smtpd.conf

instead of

vi /usr/lib/sasl2/smtpd.conf

the library sits in another directory