How to Install DirectAdmin on CentOs 6 or 7 Print

  • serverplus.pro, how to install cpanel, how to install directadmin, How to Install DirectAdmin on CentOs 6 or 7
  • 24

In this article, we are going to install DirectAdmin on a CentOS server.

 

  • Step 1: the system requirements

- SSH installed, gcc, g++, openssl-devel installed (Step 4).
- Run the pre-install commands before starting the install.

 

  • Step 2: license information

- Make sure your license information is correct.

 

  • Step 3: Set a Static Hostname

In order to change or set a CentOS 7 machine hostname, use the hostnamectl command as shown in the below command excerpt.

 hostnamectl set-hostname your-new-hostname

 

  • Step 4: Installation!

First, make sure that you are logged in under your root user
Update your server so that it has the latest packages:

 yum update

Next, we are going to install the packages that DirectAdmin needs on CentOS 6 to run properly. You can do that by executing the following command:

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

If you are running CentOS 7, run the following commands:

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

Now, download the DirectAdmin installation script through wget:

 wget http://www.directadmin.com/setup.sh
chmod 755 setup.sh

To run the installation script, simply enter in the command:

 ./setup.sh
  • Step 5: Accessing the Control Panel

Follow the instructions on screen to complete the DirectAdmin installation. DirectAdmin can be accessed at http://server.ip.address:2222

Attention: you might want to allow all the required ports on the security group for your instance (eg: WHM SSL, FTP, HTTP, HTTPS). Please follow the guide here.


Was this answer helpful?

« Back