How to install cPanel/WHM alternative, DirectAdmin, on AlmaLinux

3 years ago 559

Looking for a CentOS/cPanel replacement? Jack Wallen wants to show you how to install the AlmaLinux/DirectAdmin combo that just might do the trick.

Data center with wires

Image: simonkr/E+/Getty images

It's alternatives day, and I'm going to show you how to install an alternative to cPanel on an alternative to CentOS, all within the comfort of your very own data center or cloud-host provider. However, don't think of either of these platforms as knock-offs, because both are incredibly powerful and perfectly capable of getting the job done, even in an enterprise setting.

For those who don't know, AlmaLinux is a new 1:1 binary compatible Linux server distribution that is free and readily available for anyone to use. DirectAdmin, although not free, is a perfectly capable replacement for cPanel/WHM that offers features like:

  • Create/Modify admins and resellers

  • Reseller packages

  • User administration

  • DNS administration

  • Mail Queue administration

  • System/Services information

  • DNS Clustering

  • SPAM fighting tools

  • User packages

  • IP Assignment

  • Name Servers

  • Email administration

  • FTP Management

  • DNS Menu

  • Subdomains

  • File Manager

  • MySQL Database

  • Site Backup 

  • PHP Selector

In other words, this tool has just about everything you need as a hosting provider. Of course, as I mentioned, DirectAdmin isn't free. You can create a 60-day trial license to kick the tires (which you should do), but once that trial is over, you'll have to pony up the monthly cost of a license. Find out more about licensure on the DirectAdmin pierce matrix.

The next question is, how hard is DirectAdmin to install? If you do it the right way, it's not terribly challenging. Of course, you must first sign up for your trial license. 

SEE: Kubernetes: A cheat sheet (free PDF)  (TechRepublic)

A word of warning about the license: during the sign-up, you must present a valid IP address. That IP address must be a public-facing IP. If you're testing this, you're probably doing so in a LAN-only situation. I got around that by presenting my public-facing IP address but used the private IP address I assigned to the server when accessing DirectAdmin. This will work, but (obviously) only for the testing portion of your rollout. Once you decide to deploy this into production, you must use a public-facing IP address (or domain). 

Once you have your license, you'll be presented with a user ID and a license number—which you'll need during the installation. With those two pieces of information in hand, let's install.

What you'll need

  • Your license 
  • A running instance of AlmaLinux 
  • A user with sudo privileges 

How to install DirectAdmin

Log in to your AlmaLinux server. Change to the root user with the command:

su

The developers have written a handy script that will take care of the entire installation. This method does not require user input, but does take quite a long time to complete (give yourself over an hour for the script to complete).

To download and launch the script, the command is:

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

The script will download and install all necessary requirements for DirectAdmin. During the installation, you will be asked for the following information:

  • The device associated with the LAN IP (such as eth0 or ens5)
  • External license IP
  • ID associated with your license
  • Your trial license number

If you're not asked for this information, fret not, you will still be able to access DirectAdmin under a trial license. No matter, you will eventually have to pony up for a full license to continue using the platform.

When the script completes, it will display your login credentials (Figure A).

Figure A

directadmina.jpg

When the DirectAdmin installation completes, you'll be presented with your authentication credentials.

Not only will you be given your authentication credentials, but also the IP address used to access the control panel. This IP will be the WAN-facing address. Instead of using that, point your browser to the LAN address with the port being 2222, as in http://SERVER:2222 (where SERVER is the internal IP address of the hosting server). 

You will be presented with the DirectAdmin login page (Figure B).

Figure B

directadminb.jpg

The DirectAdmin login page is ready for your credentials.

Use admin as the login name and password you were given at the end of the script run. Once you successfully authenticate, you'll find yourself on the DirectAdmin main page (Figure C).

Figure C

directadminc.jpg

DirectAdmin is installed and ready for you to discover all that it has to offer.

And that's all there is to getting this powerful hosting platform up and running on the equally powerful AlmaLinux. Enjoy your new favorite cPanel replacement (should you choose to stick with it).

Subscribe to TechRepublic's How To Make Tech Work on YouTube for all the latest tech advice for business pros from Jack Wallen.

Data Center Trends Newsletter

DevOps, virtualization, the hybrid cloud, storage, and operational efficiency are just some of the data center topics we'll highlight. Delivered Mondays and Wednesdays

Sign up today

Also see

Read Entire Article