DEV Community

Josh
Josh

Posted on

Setting up WHM on Rocky 9 VPS

First I'll set up host name that matches my domain name:

hostnamectl set-hostname server01.pokeboost.net
Enter fullscreen mode Exit fullscreen mode

Next I'll disable my firewall on my server as its required for WHM and cPanel installations.

Below appears that there is no firewall service on my vps so i can skip this. Later i will add a firewall.

[root@my-vps ~]# systemctl status firewalld.service
Unit firewalld.service could not be found.
Enter fullscreen mode Exit fullscreen mode

Next i'll disable SELinux:

vi /etc/selinux/conf - Changed SELINUXTYPE=disabled
Enter fullscreen mode Exit fullscreen mode


reboot
Enter fullscreen mode Exit fullscreen mode

Next i will install Perl

yum install perl -y
Enter fullscreen mode Exit fullscreen mode

Now we can finally download and install the software

cd /home && curl -o latest -L
https://securedownloads.cpanel.net/latest && sh latest
Enter fullscreen mode Exit fullscreen mode

Make sure that you have curl before running that command as you can see i didn't have it.


yum install curl -y
Enter fullscreen mode Exit fullscreen mode

After installation it should have a link to click, Following the link from the terminal.

( I got a timed out when i visited the link because my VPS didn't have a firewall but my provider Ionos has a cloud panel where you have to open the ports up. So i added 2087 and 2082 port in my firewall policy:


yum install curl -y
Enter fullscreen mode Exit fullscreen mode

After installation it should have a link to click, Following the link from the terminal.

( I got a timed out when i visited the link because my VPS didn't have a firewall but my provider Ionos has a cloud panel where you have to open the ports up. So i added 2087 port in my firewall policy:

Then i logged in with my Linux server root credentials: root and root password.

Now we have successfully installed WHM cPanel on rocky Linux 9.

DNS / Hostnames:

Add A record to my server: I use the same hostname as i named my server.

Now i will add my default ionos name servers to my WHM account. Here is ionos default nameservers that i will add

Set the name servers and configure records.

Image description

You have completed installing and configuing DNS to work with your new WHM.

Do your career a big favor. Join DEV. (The website you're on right now)

It takes one minute, it's free, and is worth it for your career.

Get started

Community matters

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay