How to install DirectAdmin on CentOS 7

How to install DirectAdmin on CentOS 7

In this tutorial I will show you, how to install DirectAdmin on CentOS 7 server.

DirectAdmin is a web hosting control panel providing a graphical interface and automation tools to simplify server and account management.

Operating system

Operating systems supported by DirectAdmin are listed in the table below.

OS Versions
CloudLinux (recommended) 5.x 32/64-bit, 6.x 32/64-bit, 7.x 64-bit
RedHat Enterprise / CentOS 5.x 32/64-bit, 6.x 32/64-bit, 7.x 64-bit
Debian 7.x 32/64-bit, 8.x 64-bit, , 9.x 64-bit BETA,
FreeBSD 9.x 32/64-bit (9 may require an exim recompile), 11.x 64-bit BETA

Partition scheme

We suggest a simple partition structure of:

Partition Size
/boot 250 MB
swap For < 2GB of RAM: 2 x RAM, for 2GB – 8GB of RAM: equal to the amount of RAM, for > 8GB of RAM: at least 4GB
/ Rest of drive


For a less simple partition structure:

Partition Size
/boot 250 MB
swap For < 2GB of RAM: 2 x RAM, for 2GB – 8GB of RAM: equal to the amount of RAM, for > 8GB of RAM: at least 4GB
/tmp 1 GB. Highly recommended to mount /tmp with noexec,nosuid in /etc/fstab
/ 6 – 10 GB
/var 8 – 20 GB. Logs, and Databases with CentOS
/usr 5 – 12+ GB. DA data, source code, frontpage, mysql backups with custombuild option
/home Rest of drive. Roughly 80% for User data. Mount with nosuid in /etc/fstab if possible.


Feel free to modify these numbers as needed. FreeBSD and Debian store mysql databases in /home/mysql/.
For CentOS 7, use the xfs quota system. If you use ext4, add use_xfs_quota=0 to the directadmin.conf.

Please have Basic development/compiling tools such as gcc, g++, and perl.

***Please do not install services such as Apache, PHP, MySQL, Ftp, Sendmail, etc., as we will do this for you. All we need is a CLEAN install of your operating system.***

We do not recommend installing DirectAdmin on an existing live production server.

DirectAdmin does not convert existing data upon install.


 We highly recommend a processor of at least 500 Mhz even though DirectAdmin will run on slower systems. A minimum 1 GB of memory is required (2+ GB is preferred), with at least 2 GB of swap memory. A hard drive with at least 2 gigabytes of free space (after the Linux install) is also required. If you are expecting high traffic levels then you will need more memory, processor power, and hard drive space than we recommend here. Intel and AMD should work fine. Solaris/Sparc will not.


1.Please ensure SSH is installed and working.
2.Please ensure named (Name Daemon) is selected during the Redhat install.
3.gcc and g++ are required to compile apache and php.
4.The system kernel and filesystem must support quotas. The kernel should support IPv6.


The procedure is exactly the same with both 32-bit and 64-bit versions The installation is quite simple. I will show you through the step by step installation DirectAdmin on CentOS 7.

Step 1. First of all make sure that all packages are up to date.

yum -y update

Step 2. Install required packages.

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

Step 3. Install DirectAdmin.

Run this command for downloading the DirectAdmin installation script:

chmod 755

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


After the script is running you will be prompted for your DirectAdmin client ID, license number and the hostname of the VPS. Wait a few minutes and DirectAdmin is installed and all services are configured.

Step 4. Accessing DirectAdmin.

DirectAdmin will be available on HTTP port 80 by default. Open your favorite browser and navigate to or http://server-ip/2222. If you are using a firewall, please open port 80 to enable access to the control panel.

That’s all! You have successfully installed DirectAdmin.

Was this Tutorial helpful? Help others share on Facebook, Twitter, and Google Plus!

Enjoyed this video?
How to install DirectAdmin on CentOS 7
"No Thanks. Please Close This Box!"