×


Install DirectAdmin on AlmaLinux - Step by Step Process ?

With the release of AlmaLinux in 2021 CentOS users got an opportunity to replace their CentOS easily. AlmaLinux provides an option to migrate to AlmaLinux from CentOS in a hassle-free manner.

Direct admin supports the use of AlmaLinux 7.x 64-bit and 8.x 64-bit operating systems.

Here at Ibmi Media, as part of our Server Management Services, we regularly help our Customers to perform related Direct admin queries.

In this context, we shall look steps to install DirectAdmin on Almalinux.


How to Install DirectAdmin on AlmaLinux ?

Before proceeding with this Installation procedure, ensure that the following requirements are met:

a. Partition scheme

i. We suggest a simple partition structure as given below:

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


ii. 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
| /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, mysql backups with custombuild option | | /home | Rest of drive. Roughly 80% for User data. Mount with nosuid in /etc/fstab if possible. |


Installing DirectAdmin on an existing live production server may cause a risk of loss data. Since, DirectAdmin does not convert existing data while installing.


b. Hardware

Following are the hardware requirements:

i. A  500 Mhz processor.

ii. 1 GB of memory minimum required. (2+ GB is preferred)

For CentOS 8: 2Gig required, 4+ Gig preferred.

iii. A hard drive with at least 2 gigabytes of free space (excluding website data).

iv. Intel and AMD will work fine. Solaris/Sparc will not work.


c. Software

Following are the software requirements:

i. Firstly, we have to ensure that SSH is installed and working.

ii. Also, we have to ensure that named (Name Daemon) is selected during the Redhat installation.

iii. gcc and g++ are needed for compiling apache and php.

iv. The system kernel must support IPv6.


d. Authority Level

We must have root access to the server.


e. IP Addresses

The server must have one static IPv4 IP address.

And the server IP must be an external IP address. Local IP addresses (192.168.x.x or 10.0.x.x) cannot be set in the license.

The IP that connects to our system must patch the license IP, or downloads will not work.


Now, to Install Directadmin on Almalinux, follow the steps given below.


1. First, we must ensure that the system is up-to-date using the following commands:

$ sudo dnf update
$ sudo dnf install epel-release

2. Then to Install DirectAdmin on AlmaLinux 8 we can use the following command:

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

We must keep in mind that the hostname should not be the same as the primary domain name.

3. Accessing DirectAdmin Web Interface.

DirectAdmin will be available on HTTPS port 80 by default. For accessing the web interface we need to open a browser and navigate to http://your-domain.com/2222 or http://your-server-ip/2222.

If we are using a firewall, we have to open port 2222 to enable access to the control panel.


[Need to fix Linux System errors ? We can help you. ]


Conclusion

This article covers how to install Directadmin on Almalinux. AlmaLinux OS is an open-source, community-driven project that intends to fill the gap left by the demise of the CentOS stable release. AlmaLinux OS is a 1:1 binary compatible fork of RHEL 8 guided and built by the community. 


Operating systems supported by DirectAdmin:

  • CloudLinux - 6.x 64-bit, 7.x 64-bit, 8.x 64-bit.
  • AlmaLinux / RHEL / CentOS - 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.
  • Ubuntu - 16.04 64-bit, 18.04 64-bit, 20.04 64-bit.
  • FreeBSD - 11.x 64-bit, 12.x 64-bit.


To Install Directadmin on Almalinux:

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

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


Main Features of AlmaLinux:

1. Stable, production-ready, RHEL-based

AlmaLinux is an enterprise-grade server Operating System and a stable Linux distribution with normal releases. AlmaLinux is able to run critical workloads. 

2. Easy to switch from CentOS

AlmaLinux will be a 1:1 binary compatible fork of RHEL, which implies that the applications and administrations will stay viable, so switching is simple from CentOS to AlmaLinux. 

3. Free Operating System, and supported by Cloudlinux

CloudLinux offers a support commitment with Patches and maintenance through 2029 for AlmaLinux with a great investment. They also deliver AlmaLinux free of limitations, fees, and charges.