Virtual Hosting Howto With Virtualmin On CentOS 5.1

Want to support HowtoForge? Become a subscriber!
 
Submitted by topdog (Contact Author) (Forums) on Sun, 2008-03-02 18:34. :: Anti-Spam/Virus | BIND | CentOS | Control Panels | DNS | Email | FTP | MySQL | Postfix

Virtual Hosting Howto With Virtualmin On CentOS 5.1

Version 1.0.1
Author: Andrew Colin Kissa <andrew [at] topdog [dot] za [dot] net>
Last edited 14/04/2008

Introduction

This tutorial shows how to set up a CentOS 5.x server to offer all services needed by virtual web hosters. These include web hosting, smtp server with (SMTP-AUTH and TLS, SPF, DKIM, Domainkeys), DNS, FTP, MySQL, POP3/IMAP, Firewall, Webalizer for stats.

I will use the following software:

  • Database Server: MySQL 5.0.22
  • Mail Server: Postfix 2.3.3
  • NS Server: BIND9 9.3.3
  • Web Server: Apache 2.2.3 /PHP 5.1.6
  • FTP Server: Vsftpd 2.0.5
  • POP3/IMAP server: Dovecot 1.0
  • Webalizer: for site statistics 2.01_10
  • Virtualmin: Control panel

 

OS Installation

Requirements

To install the system you will need

  • CentOS 5.1 Install media
  • A good internet connection

 

Install The Base System

NOTE Some stages of the installation are not described here in interest of keeping the howto short, The grub configuration stages are left out for instance.

  • Boot from the DVD or CD media and at the boot prompt type linux text.
  • Skip the media test.
  • Select your language:

  • Select keyboard layout:

  • Configure your network, I will be using dhcp if you do not have dhcp you can use static entries.

  • Select Yes to initialize drive:

  • Select custom layout for partitioning type:

  • Create partitions:

  • Configure networking:

Set IP address and netmask:

Set gateway and dns servers:

Set the hostname:

  • Set the timezone:

  • Set the root password:

  • Select server group and select customize software selection:

  • Package groups select as follows:
    • DNS name server
      • bind-chroot

  • Editors
    • vim-enhanced
  • FTP server
  • Mail server
    • dovecot
    • spamassassin
    • postfix

  • Mysql Database
    • mysql-server

  • Web server
    • mod_ssl
    • webalizer
    • php
    • php-pear
    • http-suexec
    • php-mysql

Start the installation:

File system is formatted:

The installation will run:

Reboot the system:


Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.
Submitted by Anonymous (not registered) on Tue, 2008-10-21 18:17.
Kudo's to Andrew and his howto for virtualmin.  I have utilized this in the past to install virtualmin and it works well.  However, since the latest version of virtualmin, there really isn't any need anymore.  Download the install.sh script from there site and it will download every needed package and configure them for virtualmin.  Just a little heads up. 
Submitted by Anonymous (not registered) on Fri, 2009-02-20 08:35.
I tired the installation script on Fresh CentOS 5.2 , the installation went well and the sctipt logs shows successful but it dont allow you to log in to the virtualmin. I think its only for liecenced users.
Submitted by Anonymous (not registered) on Sat, 2009-02-21 11:02.

The installation script work perfectly on a clean CentOS 5 or 5.2. Make sure you have clean copy of Cent OS , rest the script do everything. I have tested it by myself today and now its working perfectly.

** Its awesome, replaced this whole tutorial with one command and FREE Official Virtualmin script available at http://www.webmin.com/vinstall.html. Enjoy **