Table of Contents








How to Install cPanel on a Linux Server? | Host to Connect

How to Install cPanel on a Linux Server?

If you're looking to manage your web hosting server efficiently, cPanel is one of the best tools available. With its user-friendly interface and extensive features, it simplifies server management. This guide will walk you through the process of installing cPanel on a Linux server step-by-step.

Prerequisites

  • Your server meets cPanel’s minimum system requirements. You can find the system requirements here.
  • You have a valid cPanel license. Shared licenses are available at Host to Connect.
  • Your server runs AlmaLinux, CentOS, or another compatible OS.
  • You have root access to the server.

Step-by-Step Guide to Install cPanel on Linux

1. Update the Server

dnf update -y

2. Install Required Tools

dnf install perl curl -y

3. Check and Disable SELinux

cPanel requires SELinux to be disabled. Here’s how to check and modify it:

sestatus

If SELinux is enabled, edit the configuration file:

sudo vi /etc/selinux/config

Change the line:

SELINUX=enforcing

to:

SELINUX=disabled

Save the file by typing :wq and pressing Enter.

4. Install Tar

yum install tar -y

5. Disable Network Manager

NetworkManager can interfere with the installation process. Disable it temporarily:

sudo systemctl stop NetworkManager
sudo systemctl disable NetworkManager

To stop any running commands during the process, press Ctrl + C.

6. Download and Install cPanel

Now, download the cPanel installer and begin the installation process:

cd /home
curl -o latest -L https://securedownloads.cpanel.net/latest
sh latest

The installation process can take some time. Ensure a stable internet connection and monitor the process for errors.

7. Re-enable Network Manager

Once the installation is complete, re-enable NetworkManager:

sudo systemctl start NetworkManager
sudo systemctl enable NetworkManager
sudo systemctl unmask NetworkManager
systemctl status NetworkManager

Accessing cPanel/WHM

After installation, you can access WHM (Web Host Manager) by navigating to your server’s IP address followed by port :2087 in your browser. For example:

https://your-server-ip:2087

Log in with the root credentials of your server. From here, you can configure your cPanel/WHM environment.

Why Choose Host to Connect for Your cPanel Licenses?

At Host to Connect, we offer affordable shared cPanel licenses to suit your hosting needs. Partner with us to enjoy:

  • Competitive pricing
  • 24/7 support
  • Hassle-free license management

With this guide, installing cPanel on your Linux server should be a breeze. Optimize your server management and take advantage of the powerful features cPanel offers. For any additional support, feel free to reach out to us at Host to Connect.



error: Content is Protected by Host To Connect team.!! You can't download or copy content due to copyright.