How to Install cPanel on AlmaLinux 9?
What's cPanel?
It provides an intuitive graphical interface and automation tools that make hosting a website or application a breeze -- you'll rarely ever have to login to a terminal once you install cPanel.
Sometimes cPanel is used by hosting companies, but many website administrators prefer the convenience of cPanel over using SSH for everything.
Plus, cPanel has been around quite a while. There are several huge websites out there that rely on cPanel in the backend.
cPanel simply provides a certain level of convenience, trust, and reliability that many other web hosting control panels can't compete with. cPanel has had quite a long time to mature as a product in comparison to it's competitors, and it shows.
Installing cPanel on AlmaLinux 9
Pre-requisites:
Before we go any further, it's important you have the right tools for the job.
Here's what you'll need:
- A fresh AlmaLinux installation. A fresh installation ensures minimal complications.
- A VPS or dedicated server with root access. If you don't already have one you can get an affordable VPS from us here, or reach out to sales for custom solutions like colocation, dedicated, or beyond, here.
- A cPanel license. cPanel isn't free, but it is affordable. You can view their licensing policy here (it starts from $16 per month as it stands). You can also get a free trial for 15 days here.
Step 1: Update your system
Let's ensure we have the latest packages and security patches:
sudo dnf update -y
|
Step 2: Install Perl
sudo dnf install perl -y
|
Step 3: Download the cPanel installation script
With the preliminaries out of the way, let's fetch the cPanel installation script:
cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest
|
Step 4: Kickstart the installation
With one simple command, we're off to the races:
sh latest
|
Step 5: Access cPanel & WHM
| https://your_server_IP:2087 |
It'll also provide you with a direct link to login and automatically start configuring the installation:
Step 6: Complete the cPanel setup wizard
This point forward is extremely simple and self-explanatory.
WHM's setup wizard will guide you through the essentials, from setting up nameservers to crafting hosting plans, and beyond.
Outside of that, if any step feels overwhelming, don't hesitate to look at cPanel's official documentation.