
Global Open Versity, ICT Labs Install Guide DTC GPLHost on LinuxCentOS5 Server v1.0 Global Open Versity IT Enterprise Architecture Hands-on Labs Training Manual Step-By-Step Install Guide DTC GPLHost Web Hosting Control Panel on Linux CentOS5 Server Kefa Rabah Global Open Versity, Vancouver Canada [email protected] www.globalopenversity.org Table of Contents Page No. STEP-BY-STEP INSTALL GUIDE DTC GPLHOST WEB HOSTING CONTROL PANEL ON LINUX CENTOS5 SERVER 3 Introduction 3 Part 1: Install CentOS 5 4 Part 2: Post Installation Configurations. 4 Step 1: Perform System Upgrade 4 Step 2: Modify the Hosts file 4 Part 3: Install DNS Server 5 Part 4: Pre-requisite Setup 5 Part 5: Detailed setup of DTC 6 Step 1: Setting up the RPMForge repository 6 Step 2: Setting up the DTC repository 7 Step 3: Installing DTC 7 Step 4: Fully-qualified host name 7 Step 5: SELinux and firewall 8 Step 6: MySQL security 8 Step 7: DTC configuration 9 Step 8: Setup Services & Product List 16 Step 9: Create New Account 17 Step 10: Server Monitoring 20 Part 6: Configure SquirrelMail Webmail 21 Step 1: Install Mail Transport Agent Switcher (MTAS) 22 Step 2: Switch to Postfix from Sendmail 23 Step 3: Configure SquirrelMail to Work with Courier-IMAP 23 Part 7: Configure Mail on DTC 26 Step 1: Set up mail 26 Step 2: Adding Database 28 Step 3: Login to your mailbox 29 Step 4: Changing Account Settings 30 1 © April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada www.globalopenversity.org EBT200 – Web Hosting Solutions Administration Training Global Open Versity, ICT Labs Install Guide DTC GPLHost on LinuxCentOS5 Server v1.0 Part 8: Install Firewall 30 Part 9: Need More Training on Linux: 31 Web Hosting Solutions Administration Training 31 Part 10: Hands-on Lab Assignments 31 A GOV Open Knowledge Access Technical Academic Publications Enhancing education & empowering people worldwide through eLearning in the 21st Century 2 © April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada www.globalopenversity.org EBT200 – Web Hosting Solutions Administration Training Global Open Versity, ICT Labs Install Guide DTC GPLHost on LinuxCentOS5 Server v1.0 Global Open Versity IT Enterprise Architecture Hands-on Labs Training Manual Step-By-Step Install Guide DTC GPLHost Web Hosting Control Panel on Linux CentOS5 Server By Kefa Rabah, [email protected] June 27, 2010 GTS Institute Introduction Linux CentOS5 is a community-supported, free and open source operating system based on Red Hat Enterprise Linux. It exists to provide a free enterprise class computing platform and strives to maintain 100% binary compatibility with its upstream distribution. CentOS stands for "Community ENTerprise Operating System". CentOS is the perfect server for people who need an enterprise class operating system stability without the cost of certification and support and pocket burning baggage that comes with proprietary software. And the beauty is CentOS is free. In this Hands-on Labs session, we’re going to install DTC GPLHost Control Panel on Linux CentOS5 server. Domain Technologie Control (DTC) is a web-based control panel aimed at providing a graphics-oriented layout for managing commercial hosting of web servers, intended for shared web hosting servers, virtual private servers (VPSes), and dedicated servers. Domain Technologie Control is free software released under the GNU LGPL v2.1 license. It is fully skinnable and translated into several languages. DTC is fully open source (LGPL). DTC is also the first web hosting control panel that has reached inclusion in major distributions like Debian (since Lenny in 2009), Ubuntu (since 2008) and FreeBSD Using a web GUI for the administration and accounting all hosting services, DTC can delegate the task of creating subdomains, email, ssh, database, mailing lists, and FTP accounts to users for the domain names they own. Moreover, Domain Technologie Control allows the administrator to create web hosting plans that provide e-mail and FTP accounts, domain purchasing, subdomains, SSH, and MySQL databases to the end users under controllable quota for the web sites that these users own. DTC also maintains the automation of billing, generates backup scripts, and monitors traffic (per user and per service) using a single system, UID or GID. Also integrated into DTC are the support ticket system and customizable HTTP error pages. DTC itself manages its own MySQL database to store its setup configuration, web hosting plans, and users. It has support for many other free software: MySQL, Apache, PHP, qmail, Postfix, Courier, Dovecot, ProFTPd, Webalizer, mod-log-sql, and more. It also connects to dtc-xen to manage and monitor the usage of Virtual Private Servers (VPS). Solution In this Hands-on Labs, you will learn how to install CentOS5 and prepare it for the installation of DTC GPLHost Control Panel. You’ll also learn how to perform post-installation configuration of CentOS5 e.g., upgrade the system with new patches and bug fixes, configure static IP address from dynamic one, change the computer hostname, modify hosts & resolv.conf files, perform ping test among others. Next, 3 © April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada www.globalopenversity.org EBT200 – Web Hosting Solutions Administration Training Global Open Versity, ICT Labs Install Guide DTC GPLHost on LinuxCentOS5 Server v1.0 you will learn how to install DTC on Linux CentOS5 server. Upon completion of this lab session you should have gained a capability and expertise level to install and maintain DTC GPLHost Control Panel, which you can use to manage your hosting solutions. The entire lab training was performed on VMware. But you can also use the open source VirtualBox from Oracle etc. Part 1: Install CentOS 5 Assumptions: 1. It’s assumed that you have a good understanding of Linux operating system and its working environment. It’s also assumed that you know how to install and configure Linux CentOS5, if not go ahead and pop over to scribd.com and check out or excellent hands-on training manual, entitled “Install Configure and Upgrade Linux CentOS5 Server v1.1” to get you started. 2. It’s also assumed that you have a good understanding of MySQL database. 3. In the next section, we’re going to perform other post-installation work like system upgrade and etc. Part 2: Post Installation Configurations. Step 1: Perform System Upgrade For best practices in IT, it’s important to always perform systems upgrade after initial installation is completed. To do this, perform the following procedures: 1. Click Application -> Accessories and the select Terminal 2. From Terminal window, issue the command "yum install update –y". This enables the system to get the latest patches and bug fixes. 3. You’re now down with system update. In the next section we’re going to learn how to change NIC adapter configuration from dynamic IP address to static IP address. Step 2: Modify the Hosts file 1. It’s assumed that you know how to install CentOS5 using static IP address, very important for DNS server. Once you’re done with the installation then verify that your hosts file is set correctly. 2. In this step we want to modify the hosts file to reflect our new "Fully Qualified Hostname" and IP address. 3. To do this, from the Terminal window issue the command: [root@mx ~]# gedit /etc/hosts 4 © April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada www.globalopenversity.org EBT200 – Web Hosting Solutions Administration Training Global Open Versity, ICT Labs Install Guide DTC GPLHost on LinuxCentOS5 Server v1.0 4. While here also note our hostname and IP address: server03.govholabs.com 192.168.1.10 5. Check out /etc/hosts to ensure that you have a correct setup, in our case, it’s as follows: # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost.localdomain localhost 192.168.1.10 server03.govholabs.com server03 192.168.1.10 dtc.govholabs.com ::1 localhost6.localdomain6 localhost6 6. For the final test, issue the ping command, to see if our hostname can return its own IP address: [root@mx ~]# ping server03.govholabs.com [root@mx ~]# ping dtc.govholabs.com 7. We’re done with this section. Part 3: Install DNS Server In this section it’s assumed that you know how to install and configure a DNS Server on a Linux machine, if not, then check out our excellent Hands-On Labs training manual, entitled “Using Webmin and Bind9 to Setup DNS Server on Linux” to get you started. Here we’re going to use Webmin and Bind9 to deploy DNS Server. However, it’s important to note that DTC will configure DNS and all the hosting requirements for you! Part 4: Pre-requisite Setup 1. Ensure that you have set the hostname, correctly, if not you can issue the following command to setup your hostname for "server03.govholabs.com", as follows: # hostname server03.govholabs.com Note: change hostname to suit your needs. 2. Now check to ensure that you have a valid hostname entered, or amavisd-new will complain about it and refuse to setup. Try this command, as this is the one that amavis will use: hostname --fqdn Note: It should return the fully qualified domain name of your mx server that should be something like "mx.example.com" (this is best option). 3. Similarly, check that 5 © April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada www.globalopenversity.org EBT200 – Web Hosting Solutions Administration Training Global Open Versity, ICT Labs Install Guide DTC GPLHost on LinuxCentOS5 Server v1.0 cat /etc/hosts returns something like: 192.168.1.10 server03.govholabs.com server03 Note: You make thins easier by installing DNS server.
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages10 Page
-
File Size-