DirectAdmin Tutorials

How to install DirectAdmin

How to install DirectAdmin

How to install DirectAdmin

DirectAdmin is a web hosting control panel with a graphical user interface which was designed to make administration of websites easier. DirectAdmin is a really easy to use control panel and is extremely fast.

Eventhough DirectAdmin is not a free service, they offer flexible licensing options for any kind of hosting solutions. With the product you will also get 24/7 support for any problem that you will face.

But what can DirectAdmin do?

DiectAdmin General Features:

  • Integrated ticket support system where you can ask for help directly from DirectAdmin
  • Two-factor authentication providing an additional security layer
  • Easily add plugins to extend DirectAdmin functionality easily
  • Automaticlly updates the software
  • Completely cutomizable according to your business
  • Automatic recovery from crashes

There are 3 major players in maintaining your server:

  1. Admin level – the main account responsible for the global server configuration and who can:
  • create other admins
  • create reseller packages and resellers
  • configure global settings like the hostname, nameservers, change security options and global limits
  • customize HTTPd and PHP configurations, manage IPs, maintain Multi Server Setup
  • perform full backup/restore, monitor server processes, mail queue
  • configure services over plugins
  • manage tickets and system messages
  • perform software update
  1. Reseller level – the middle-range account responsible for end-user management, who can:
  • create end-user packages, create user accounts
  • manage IPs and nameservers to be used by end-users
  • create backups for themselves and their users, customize skins
  • manage tickets over message system
  1. User level – the end-user account responsible for managing their sites and emails:
  • create and edit domains, subdomains, domain pointers, redirects and DNS records
  • manage FTP accounts
  • manage E-mails (accounts, autoresponders, antispam filters)
  • manage databases and db users
  • manage files

The tricky part is that one account can be present on all 3 levels, like the “admin” user. You switch the level using a dropdown box on top of evolution skin Admin <-> Reseller <-> User.

These are some of the features that come with DirectAdmin control panel. However if you are thinking to yourself what other softwares are there that can do the same thing.

Are there any DirectAdmin Alternatives?

Yes there are DirectAdmin alternatives out there. Here are our top alternatives:

  • cPanel
  • Vesta
  • Plesk
  • Webmin
  • EHCP
  • ISPConfig
  • CentOS Web Panel

Now that we got to know about the DirectAdmin control panel, let’s get to the installation of DirectAdmin.

Minimum requirements for installing DirectAdmin

Operating System

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

OS Versions
CloudLinux (recommended)  6.x 32/64-bit, 7.x 64-bit, 8.x 64-bit
RedHat Enterprise / CentOS 6.x 32/64-bit, 7.x 64-bit, 8.x 64-bit
Debian 8.x 64-bit, 9.x 64-bit, 10.x 64-bit, 11.x 64-bit ALPHA
FreeBSD 11.x 64-bit, 12.x 64-bit

Partition scheme

We suggest a simple partition structure of:

Partition Size
/boot 500 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 500 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

Hardware

We highly recommend a processor of at least 500 Mhz even though DirectAdmin will run on slower systems. The more cores the better.

A minimum 1 GB of memory is required (2+ GB is preferred), with at least 2 GB of swap memory. (CentOS 8: 2Gig required, 4+ Gig preferred).

A hard drive with at least 2 gigabytes of free space (after the Linux install) is also required, not including any website data.

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.

Software

Please ensure SSH is installed and working.

Please ensure named (Name Daemon) is selected during the Redhat install.

gcc and g++ are required to compile apache and php.

The system kernel and filesystem must support quotas. The kernel should support IPv6.

Common pre-install commands

The DirectAdmin installation automatically installs some basic programs that are needed.

How to install DirectAdmin

Begin the installation!

Sign into your client account and click the “view” link next to your license.

Login as root to your server, download the installation script, and run it:

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

The auto method will be best for most people. It automatically installs everything for you, including the CSF firewall.

It can also be called without the‘auto’ option, which requires input but allows for customization.

Important: The hostname should not be the same as the primary domain name. e.g. errorhat.com is not a good hostname, where server.errorhat.com is. Having the same host/main domain name will cause e-mail and FTP problems. Also, please make sure the hostname resolves once you set up DNS.

NOTE:
Once the installation is complete, make sure you copy the DirectAdmin username and password details at the end of the install, it is NOT just the root login for the server and these details are difficult to retrieve after the fact!  

Accessing the Control Panel

DirectAdmin can be accessed at http://server.ip.address:2222. Use the Admin username/password from the output information provided by setup.sh (the same information is specified in the /usr/local/directadmin/scripts/setup.txt file).

How to install DirectAdmin

Final Words

Congratulations! You have finally set-up DirectAdmin on your server. Let us know in the comments how you managed to do it and dont forget to share it with your colleagues.

About the author

jon snow

Jon is a Linux and F.O.S.S enthusiast, an upcoming Linux SysAdmin, and currently a content creator for ERRORHAT who loves working with computers and strongly believes in sharing knowledge.

Add Comment

Click here to post a comment