How To Install DirectAdmin

Before installing DirectAdmin let us see which operating system does it supports.

System Requirements

OSVersion
CloudLinux6.x 64-bit, 7.x 64-bit, 8.x 64-bit
AlmaLinux / RHEL / CentOS7.x 64-bit, 8.x 64-bit
Debian8.x 64-bit, 9.x 64-bit, 10.x 64-bit, 11.x 64-bit ALPHA
Ubuntu16.04 64-bit, 18.04 64-bit, 20.04 64-bit
FreeBSD11.x 64-bit, 12.x 64-bit

Guess it supports all major Linux distributions.

Partition scheme

PartitionSize
/boot500 MB
swapFor < 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

Now to the actuall part. Run the following command to install directadmin in linux

bash <(curl -Ss https://www.directadmin.com/setup.sh) auto

After the setup is completed you can access your DirectAdmin control panel using port 2222

http://server.ip.address:2222

Steps to Follow:

1. Install SSL for your Hostname

cd /usr/local/directadmin/scripts
./letsencrypt.sh request_single `hostname` 4096
  • Go to custom built and enable lsphp, openlitespeed and mod_security and php extensions.
  • Go to customize theme and disable the last two support options under user menu.
  • Go to theme options
  • Create Packages————->Just go to user packages and click on export and copy the text and import it if you are migrating from other host.
  • Install cloudliux and enable cagefs

2. Enable SSL to be automatically installed for the all the domains on your server.

3. Disable Brute Force Notifications in admin dashboard.

Edit directadmin config file as follow:

nano /usr/local/directadmin/conf/directadmin.conf

Then add

hide_brute_force_notifications=1

4. Install Ion Cube

cd /usr/local/directadmin/custombuild
./build update
./build set ioncube yes
./build ioncube

5. Install Softaculous

https://www.softaculous.com/docs/admin/installing-softaculous-in-directadmin/

6. Install Mod_lsapi after installation of CloudLinux

Subscribe
Notify of
guest
2 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
trackback

[…] This guide is a part of How to install DirectAdmin […]

trackback

[…] For full installation of directadmin follow this guide. […]