Every hosting companies offer a control panel to their customers to simplify hosting websites, managing email servers and etc. CPanel is one of the most popular control panels that allow you to manage all services easily in a single place. This article will teach you How To Install CPanel On Ubuntu 22.04. Check out the packages offered on the Eldernode website to buy an Ubuntu VPS server.
Tutorial Install CPanel On Ubuntu 22.04
What is CPanel?
CPanel is an online Linux-based graphical interface and web hosting control panel. You can publish websites, manage domains, organize web files, create email accounts and etc using CPanel. It has two interfaces including a user interface called cPanel and a server management interface called Web Host Manager or WHM. This will allow you to manage your website and provides tools for server management.
Installing CPanel on Ubuntu 22.04
First, log in as a root to your Ubuntu 22.04 server.
If you have an active Firewall, you should disable and stop it before installing CPanel with the following commands:
iptables-save > ~/firewall.rules
systemctl stop firewalld.service
systemctl disable firewalld.service
Now update the system packages using the command below:
sudo apt update
sudo apt upgrade
Next, you need to set the fully qualified hostname on Ubuntu 22.04. Because CPanel needs a fully qualified FQDN domain name to install. To set the hostname to the domain name, enter the command below:
After the hostname file opens, set the new hostname. Then press Ctrl+O to save and Ctrl+X to close the file.
In this step, open the file as shown below:
You should change the new IP address with the hostname:
IP_address yourserver.domain.com yourserver
Save and close the file as mentioned.
Now it’s time to install CPanel and WHM on Ubuntu 22.04. To do this, run the following command:
cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest
Wait for a while until the installation is finished.
Accessing WHM/CPanel on Ubuntu 22.04
To access the WHM web interface, open your browser and enter the following URL:
After the WHM is opened in your browser, you can log in to it with the root username and password:
How to Buy and Activate CPanel license
After you log in to the WHM interface as the root user, click on Purchase a License in the Trial License banner at the top of the interface.
Now create a CPanel store account and log in to it.
Then you should verify your license order. If you buy a license from the WHM interface, note that the system automatically chooses the license type for your server and detects the IPv4 address to license.
Then complete the payment process.
Lastly, you will receive a confirmation message and an invoice email from the CPanel store.
You can check if the CPanel product license is purchased for the server IP on the CPanel website or not using the following URL:
You will see the date and time of the license active and the product type of the license.
Finally, it’s time to activate the CPanel license on your ubuntu server using the command below:
CPanel is one of the most popular software solutions to manage servers or configure web hosting packages. In this article, we taught you how to install CPanel on Ubuntu 22.04. I hope this tutorial was useful for you and helps you to install CPanel. If you have any questions or suggestions, you can contact us in the Comments section.