Knowledge Base

Your Go-To Resource for Expert Insights and Solutions

How to Install cPanel on Your VPS or Dedicated Server

cPanel is one of the most popular web hosting control panels. It simplifies server management, making it ideal for both beginners and advanced users. In this guide, you'll learn how to install cPanel on your VPS or dedicated server running Ubuntu 22.04.5 LTS (Jammy Jellyfish), CentOS, or AlmaLinux.

Prerequisites

Before starting, ensure the following:

  • Your server has a fresh installation of Ubuntu Jammy, CentOS, or AlmaLinux.
  • You have root access or sudo privileges.
  • At least 2 GB of RAM and 20 GB of disk space.
  • Your hostname is properly configured (e.g., yourdomain.com).

Step 1: Update Your Server

Start by updating your server packages to ensure compatibility:

Code copied to your clipboard!

Step 2: Install Required Packages

Install the required packages for your operating system:

For Ubuntu Jammy:

Code copied to your clipboard!

For CentOS/AlmaLinux:

Code copied to your clipboard!

Step 3: Download and Run the cPanel Installer

To install cPanel, download the official installer script and execute it. Note that cPanel requires a valid license.

Run this command on any of the supported operating systems:

Code copied to your clipboard!

Step 4: Access cPanel

Once the installation is complete, you can access cPanel from your web browser. Use the following URL:

https://your-server-ip:2087

Log in using the root username and password.

Important Notes

  • Ensure that ports 2083 and 2087 are open in your firewall to access cPanel and WHM.
  • You can obtain a trial cPanel license from the official cPanel website.

Conclusion

Congratulations! You've successfully installed cPanel on your VPS or dedicated server. With cPanel, you can efficiently manage your websites, databases, email accounts, and much more. Start exploring its features to unlock the full potential of your hosting environment.

Related Articles

STAY TUNED
Image