; Build your own ISP Hosting using ISPConfig on Ubuntu 10.04 LTS Server
Documents
Resources
Learning Center
Upload
Plans & pricing Sign in
Sign Out
Your Federal Quarterly Tax Payments are due April 15th Get Help Now >>

Build your own ISP Hosting using ISPConfig on Ubuntu 10.04 LTS Server

VIEWS: 3,947 PAGES: 35

1.0 Introduction In this Hands-on Labs session, we’re going to learn how to install and configure the Linux Ubuntu 10.04 LTS (Lucid Lynx) server option when we then use to install ISPConfig hosting control panel. Canonical has high hopes that Ubuntu 10.04, Lucid Lynx, will easily become the platform of choice for anybody who intends to build and deploy large-scale infrastructure, whether you're trying to build the next Facebook, or the next Google, or the next eBay. Ubuntu 10.04 LTS Server Edition: Lean, fast and powerful – Ubuntu Server delivers services reliably, predictably and economically - and easily integrates with your existing infrastructure. It has almost 100 open-source and proprietary application providers certifying their programs on Ubuntu Server Edition. Ubuntu 10.04 includes Alfresco, Ingres, IBM, VMware, Yahoo and Zimbra. It also includes improved installation and management tools for Ubuntu Enterprise Cloud (UEC) and Amazon EC2. ISPConfig is an open source hosting control panel for Linux. ISPConfig is licensed under BSD license. ISPConfig simplifies the complicated details of setting up DNS, multiple unique domain name websites on one physical server box, and e-mail accounts for multiple users on those websites. ISPConfig provides interfaces for the management of internet services by an ISP provider and the ISP clients. That is, ISPConfig is an ISP management and hosting control panel. It manages your Web server, email server, BIND DNS, proftpd and vsftpd FTP server, MySQL databases, SpamAssassin, disk quotas and User registration & billing with an easy to use Web interface for administrators, resellers, and clients. Others services like Email management and forwarding, Security (via SSL), Mail scanning and Firewall); Statistics & ISP Management (Webalizer, IP-addresses); Self Management (Shell-access, Per-User Administration backend) and more. More importantly, ISPConfig speeds up and simplifies common server administration and opera

More Info
  • pg 1
									Global Open Versity ICT Labs         Build your own ISP Hosting using ISPConfig on Ubuntu 10.04 LTS Server v1.0



                            Global Open Versity
            IT System Integration Hands-on Labs Training Manual

                      Build your Own ISP Hosting using ISPConfig
                              on Ubuntu 10.04 LTS Server
                                         Kefa Rabah
                            Global Open Versity, Vancouver Canada
                   krabah@globalopenversity.org www.globalopenversity.org

Table of Contents                                                                                    Page No.

BUILD YOUR OWN ISP HOSTING USING ISPCONFIG ON UBUNTU 10.04 LTS SERVER                                         2

1.0 Introduction                                                                                               2

Part 1: Install & Configure Ubuntu 10.04 LTS Server                                                            3
  Step 1: Getting Started & Hardware Pre-requisites                                                            3
  Step 2: Update Ubuntu 10.04 Operating Systems                                                                3
  Step 3: Install Webmin                                                                                       4

Part 2: Installing Additional Infrastructure Packages                                                          6
  Step 1: Install OpenSSH Package                                                                              6
  Step 2: Change the Default Shell                                                                             7
  Step 3: Disable AppArmor                                                                                     7
  Step 4: Install PHP5 and Apache (HTTP) Web Server                                                            7

Part 3: Optional Configuration Tasks                                                                           8
  Step 1: Configure Network Interface to Static IP Address                                                     8

Part 4: Install DNS Server                                                                                    10

Part 5: Install Pre-Requisite Packages for ISPConfig                                                          14
  Step 1: Install Postfix, Courier, MySQL, Saslauthd, rkhunter, binutils                                      14
  Step 2: Modify MySQL myc.cnf file                                                                           18
  Step 3: Modify SSL Certificate Hostname Configuration                                                       19
  Step 4: Install Amavisd-new, SpamAssassin, and ClamAV                                                       20
  Step 5: Install Apache2, PHP5, phpMyAdmin, FCGI, suExec, Pear, and mcrypt                                   21
  Step 6: Install PureFTPd and Quota                                                                          22
  Step 7: Install Vlogger and Webalizer                                                                       23
  Step 8: Install Jailkit                                                                                     24
  Step 9: Install fail2ban                                                                                    25
  Step 10: Install SquirrelMail                                                                               25

Part 6: Install ISPConfig                                                                                     26

Part 7: Need More Training on Linux:                                                                          33
  Ubuntu Server Administration Training                                                                       33

Part 8: Hands-on Labs Assignments                                                                             34

Linux Administration Training                                                                                 34

                                                                                                              1
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org                                    ICT105 – Ubuntu Server Administration Training
Global Open Versity ICT Labs        Build your own ISP Hosting using ISPConfig on Ubuntu 10.04 LTS Server v1.0




                            Global Open Versity
           IT Systems Integration Hands-on Labs Training Manual

                    Build your own ISP Hosting using ISPConfig
                            on Ubuntu 10.04 LTS Server
By Kefa Rabah, krabah@globalopenversity.org               June 21, 2010                      GTI Institute


1.0 Introduction
In this Hands-on Labs session, we’re going to learn how to install and configure the Linux Ubuntu 10.04
LTS (Lucid Lynx) server option when we then use to install ISPConfig hosting control panel. Canonical
has high hopes that Ubuntu 10.04, Lucid Lynx, will easily become the platform of choice for anybody who
intends to build and deploy large-scale infrastructure, whether you're trying to build the next Facebook, or
the next Google, or the next eBay. Ubuntu 10.04 LTS Server Edition: Lean, fast and powerful – Ubuntu
Server delivers services reliably, predictably and economically - and easily integrates with your existing
infrastructure. It has almost 100 open-source and proprietary application providers certifying their
programs on Ubuntu Server Edition. Ubuntu 10.04 includes Alfresco, Ingres, IBM, VMware, Yahoo and
Zimbra. It also includes improved installation and management tools for Ubuntu Enterprise Cloud (UEC)
and Amazon EC2.

ISPConfig is an open source hosting control panel for Linux. ISPConfig is licensed under BSD license.
ISPConfig simplifies the complicated details of setting up DNS, multiple unique domain name websites on
one physical server box, and e-mail accounts for multiple users on those websites.

ISPConfig provides interfaces for the management of internet services by an ISP provider and the ISP
clients. That is, ISPConfig is an ISP management and hosting control panel. It manages your Web server,
email server, BIND DNS, proftpd and vsftpd FTP server, MySQL databases, SpamAssassin, disk quotas
and User registration & billing with an easy to use Web interface for administrators, resellers, and clients.
Others services like Email management and forwarding, Security (via SSL), Mail scanning and Firewall);
Statistics & ISP Management (Webalizer, IP-addresses); Self Management (Shell-access, Per-User
Administration backend) and more.

More importantly, ISPConfig speeds up and simplifies common server administration and operation tasks,
such as creating lots of new user e-mail accounts or quickly setting up lots of roots (starting folders) for
new websites. This in contrast to coding these changes by hand from a command prompt which would
take more time and effort, and heavily prone to errors. Today, most large-scale installations use existing
automation tools ISPConfig. Adapting these to the special configuration and filesystem layout of
ISPConfig can require a lot of work. This is why ISPconfig is mainly targeted at new installations.

As you’ll learn in this hands-on lab training, setting up ISPConfig is somewhat challenging, but it is much
easier than coding DNS files by hand. ISPConfig can help new Linux users configure web and e-mail
faster and easier than they could without it. This makes ISPconfig a "gateway to Linux" skills building
endeavor. People get the end benefits of gaining experience to deploy complex servers while they
continue to learn about them.
                                                                                                             2
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org                                 ICT105 – Ubuntu Server Administration Training
Global Open Versity ICT Labs        Build your own ISP Hosting using ISPConfig on Ubuntu 10.04 LTS Server v1.0



Solution:
In this Hands-on Lab session, you’ll learn how to setup virtual network on VMware (you may also use any
other virtual machines like MS VirtualPC, Linux Xen, or VirtualBox from Oracle). In this lab session, we’ll
concentrate on installing ISPConfig on a clean install Linux Ubuntu 10.04 LTS Server. You will learn how
to install and configure Webmin to help with configuring DNS server. I’ll also show you how set static IP
address which is required for deploying a DNS server. Finally, we’ll go through a step-by-step process to
install all the pre-requisite packages that are necessary for successful installing of ISPConfig hosting
solution. You’ll also have opportunity to do some assignment at the end of the lab session. Upon
completion of the hands-on lab you would have gained a competency level and a capability to be able to
plan design implement and deploy a hosting solution using ISPConfig and any other Ubuntu server
powered application. Once you gained enough experience and capability you may go ahead and install
ISPConfig on a Pilot testing server and finally to a production server to power on your ISP venture.

Assumptions
It’s assumed that you have a good knowledge of Linux Ubuntu OS. If not then you can check this article
which discuses how to install Ubuntu 10.04 LTS server:



    •   Step-By-Step Install Guide Ubuntu 10.04 LTS (Lucid Lynx) Server



Part 1: Install & Configure Ubuntu 10.04 LTS Server

Step 1: Getting Started & Hardware Pre-requisites
Ubuntu runs on inexpensive, commodity hardware. To support a small practice like OSCAR, web-server
etc., we recommend a minimum configuration of 200Gb Disk, 2Gb RAM, and a 2GHz Intel Dual Core
CPU. For maximum subsystem compatibility, we suggest that you install the 32bit version of Ubuntu. If
you are purchasing a computer to run OSCAR, ISPConfig or any other application server, one option is to
order the machine with Ubuntu pre-installed. However, all depends on your level of Linux OS.

In this Hands-on Labs, it’s assumed that your target computer is connected to the internet. After installing
the operating system, log into your machine and ensure you perform software updates to bring your
systems up-to-date.


Step 2: Update Ubuntu 10.04 Operating Systems

Adding extra Repositories on Ubuntu
Repositories on Ubuntu are the locations that you can download software from. As a general rule, the
default repositories don’t contain the right locations for most software packages that you’ll want to install.
You will want to open up the "/etc/apt/sources.list" file, find and uncomment the following lines

    deb http://us.archive.ubuntu.com/ubuntu dapper universe main restricted universe
    deb http://security.ubuntu.com/ubuntu dapper-security universe




                                                                                                             3
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org                                 ICT105 – Ubuntu Server Administration Training
Global Open Versity ICT Labs        Build your own ISP Hosting using ISPConfig on Ubuntu 10.04 LTS Server v1.0



Note that if you are using a different version than Dapper Drake (6.06), you will probably see a different
name there, something like breezy or edgy.

It is useful to update your system with the latest components and system patches. The first command
below asks Ubuntu to update its database of available packages, and the second command installs the
latest packages based on your current configuration. We run the upgrade command twice to ensure that
any packages that may have post-upgrade dependencies also have an opportunity to be upgraded.

1. From the command line, enter the following commands, one at a time.

    $ sudo apt-get update
    $ sudo apt-get -u upgrade

    Note 1: The sudo command is used to run privileged operations on the Ubuntu platform. The first
    time you run the command, it will ask for your password. Subsequently, it will not ask for your
    password again for a short period of time (typically 15 minutes).

    Note 2: apt-get is the program Ubuntu uses for managing the system’s packages. When used to
    manipulate the core packages of the operating system, it needs to be run in conjunction with the sudo
    command.

2. We’re done with this section

3. You’re now ready to begin any other application installation as desired!


Step 3: Install Webmin
Webmin is a web-based interface for system administration for UNIX. Using any modern web browser,
you can setup user accounts, Apache, DNS, file sharing and much more. Webmin removes the need to
manually edit Unix configuration files like /etc/passwd, and lets you manage a system from the console
or remotely.Currently There is no Webmin package in the Ubuntu repositories. This tutorial will
explain how to install Webmin in Ubuntu Intrepid Ibex

You can install Webmin for your server web interface to configure Apache2, MySQL, FTP, DNS servers
and many more. Now we will see how to install Webmin on Ubuntu 10.04 LTS.

Preparing your system
1. First you need to install the following packages

    sudo aptitude install perl libnet-ssleay-perl openssl libauthen-pam-perl
    libpam-runtime libio-pty-perl libmd5-perl apt-show-versions

2. Next, get "libmd5-perl" (this is deprecated and not in 10.04 repositories – more on that can be
   read here)

    wget http://ftp.debian.org/pool/main/libm/libmd5-perl/libmd5-perl_2.03-1_all.deb
                                                                                                             4
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org                                 ICT105 – Ubuntu Server Administration Training
Global Open Versity ICT Labs        Build your own ISP Hosting using ISPConfig on Ubuntu 10.04 LTS Server v1.0




    then install

    sudo dpkg -i libmd5-perl_2.03-1_all.deb

3. Now download the latest Webmin using the following command or from here

    sudo wget http://garr.dl.sourceforge.net/sourceforge/webadmin/webmin_1.441_all.deb


4. Now we have webmin_1.441_all.deb package install this package using the following command

    sudo dpkg -i webmin_1.441_all.deb

5. This will complete the installation.

    Note: Ubuntu in particular don’t allow logins by the root user by default. However, the user created at
    system installation time can use sudo to switch to root. Webmin will allow any user who has this sudo
    capability to login with full root privileges.

6. Now you need to open your web browser and enter the following

    https://your-server-ip:10000/         or       https://your-server-name:10000/

    Note: Accept the security warnings and alerts. Now you should see similar to the following screen,
    see Fig. 41. Enter your credentials used earlier when you installed the system and then click login.




                                                     Fig. 1


7. After login if you want to configure Apache2, DNS server etc. you need to click on Servers on your
   left-hand side you should see many servers that are ready to configure, as shown in Fig. 2.




                                                                                                             5
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org                                 ICT105 – Ubuntu Server Administration Training
Global Open Versity ICT Labs        Build your own ISP Hosting using ISPConfig on Ubuntu 10.04 LTS Server v1.0




    Fig. 2: Webmin admin page


8. Click Logout link to exit Webmin

9. We’re done with this section



Part 2: Installing Additional Infrastructure Packages
These instructions are written for an audience comfortable with invoking instructions from the command
line and GUI option. If you are capable of installing the user friendly Ubuntu GNU/Linux operating system
or any other Linux distros, then you should be able to follow along with ease.


Step 1: Install OpenSSH Package
In order to support secure remote connections to your server, you will need to install the OpenSSH
package. This package will come in handy in the future to support administrative tasks on the system. By
default this package is already installed in the Ubuntu server option.

1. To install OpenSSH, issue the following command:

    $ sudo apt-get install openssh-server -y

2. To log into a remote computer that is running OpenSSH, you use the ssh username@hostname
   command, replacing username with a valid user name on the computer you are trying to log into, and


                                                                                                             6
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org                                 ICT105 – Ubuntu Server Administration Training
Global Open Versity ICT Labs        Build your own ISP Hosting using ISPConfig on Ubuntu 10.04 LTS Server v1.0



    replacing hostname with either the fully qualified host name (e.g. example.com) of your server, or
    it’s IP address (e.g. 192.168.83.250).

    Note: For example, if your everyday computer is a Mac, and your ISPConfig server user account is
    krabah, and your ISPConfig server IP address is 192.168.83.225, then you can now log into your
    
								
To top