The complete installation steps for DirectAdmin Web Hosting control Panel on CentOS 6 and CentOS 7 servers:

1) Hostname Setup

Let's prepare your CentOS server with basic parameters by configuring its proper Hostnames and IP address. To configure the basic server parameters, login to your server using the root or sudo credentials and configure your hostname using below commands.

CentOS 6

# vi /etc/sysconfig/network
HOSTNAME=cantos-6
# vi /etc/hosts
72.25.10.175 centos-6 centos-6.instainternet.com


CentOS 7

# Hostnamectl set-hostname centos-7
# vi /etc/hosts
63.85.95.125 centos-7 centos-7.instainternet.com


2) Firewall Settings


After hostname setup configure your firewall and SELinux to permissive mode so that you won't get any issue during your installation setup but keep a note that enable it back and allow only your required ports in firewall if you are working on the production environment.


CentOS 6

# Service iptables start
# vi /etc/sysconfig/selinux
SELINUX=permissive


CentOS 7

# systemctl start firewalls
# setenforce 0


3) System Update

Now run the following command to update your CentOS 6/7 servers with latest patches and updates.

# yum update

You asked to press Y for Yes and N for No to exit from the update, so press "Y" key and hit enter to start installing missing packages and their updates.

4) Installing Packages

Before starting the DirectAdmin installation setup, we will be installing a few packages that must be installed on your CentOS 6 or 7 server.

Let's run the below command to install some dependent packages on your CentOS server.

CentOS 6

# yum install wget zip unzip gcc gcc-c++ flex bison quota make perl bind bind-libs bind-utils openssl openssl-devel libaio libcom_err-devel libcurl-devel gd zlib-devel libcap-devel cronie bzip2 autoconf automake libtool which patch mailx cyrus-sasl-devel perl-ExtUtils-Embed db4-devel

After successful execution of the above command, you will be asked whether to proceed with the installation of these packages including their dependencies and updates. So, press "Y" key to proceed with the installation.

CentOS 7

In CentOS 7, we need to install the following dependencies for with addition to some general packages installation as shown below.

# yum install wget unzip psmisc net-tools libdb-devel perl-DBI systemd-devel


Downloading DirectAdmin

To download the latest installation script for DirectAdmin we will be using the following command on CentOS 6/7 servers as shown.

# wget http://www.directadmin.com/setup.sh


Assign the executable permissions to the downloaded script by using the below command.

# chmod 755 setup.sh


Now you can see by list your current directory that it should have the proper executable permissions.

Starting DirectAdmin Installation:

To start the installation of DirectAdmin on CentOS 6/7, 

let's point to installation script and execute it within your current direct directory where you have downloaded then press "Y" key to install the required pre-installation packages as shown.

#./setup.sh
*** 64-bit OS ***
*****************************************************
*
* DirectAdmin requires certain packages, described here:
* http://help.directadmin.com/item.php?id=354
*
* Would you like to install these required pre-install packages? (y/n): y


This might take a while to install the prerequisites, after that you will be asked to configure some of the following settings. So, choose the best appropriate answers according to your environment and give correct Client ID and License ID that you have got from DirectAdmin against your public IP.

Complete!
*
***************************************************** Please enter your Client ID : xxxxx
Please enter your License ID : xxxxxx
Please enter your hostname (server.domain.com)
It must be a Fully Qualified Domain Name
Do *not* use a domain you plan on using for the hostname:
eg. don't use domain.com. Use server.domain.com instead.
Do not enter http:// or www Enter your hostname (FQDN) : centos-7.instainternet.com Client ID:
License ID:
Hostname: centos-007.instainternet.com
Is this correct? (y,n) : y
Is ens160 your network adaptor with the license IP (63.85.95.125)? (y,n) : y
Your external IP: xx.xx.xx.xx
The external IP should typically match your license IP. Is 63.85.95.125 the IP in your license? (y,n) : y DirectAdmin will now be installed on: Enterprise 7.1
Is this correct? (must match license) (y,n) : y
You have chosen custombuild 2.0.
--2015-12-08 22:13:35-- http://files.directadmin.com/services/custombuild/2.0/custombuild/build
Resolving files.directadmin.com (files.directadmin.com)... 69.162.69.58, 208.167.226.3, 216.144.254.90
Connecting to files.directadmin.com (files.directadmin.com)|69.162.69.58|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 617821 (603K)
Saving to: ‘/usr/local/directadmin/custombuild/build’ 100%[====================================================================================>] 617,821 431KB/s in 1.4s 2015-12-08 22:13:37 (431 KB/s) - ‘/usr/local/directadmin/custombuild/build’ saved [617821/617821] Would you like the default settings of apache 2.4 with mod_ruid2 and php 5.5 cli? (y/n):y


After downloading the updates and packages with your client id and license id for your IP address you see multiple numbers of DirectAdmin processes taking place on your screen to complete the installation setup.


DirectAdmin Web Access

Upon successful completion of the installation setup of DirectAdmin, you can access its Web Console on your web browser with the FQDN of your server and port '2222'.

http://your-servers-ip:2222


Make sure that the port 80 and 2222 is allowed in your firewall/iptable settings.



Was this answer helpful? 0 Users Found This Useful (5 Votes)