Advance

How To Install CPanel On Ubuntu 22.04

How To Install CPanel On Ubuntu 22.04
0
(0)

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

Recommended Article: Introducing And Install ImunifyAV On CPanel & WHM

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:

nano /etc/hostname

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:

nano /etc/hosts

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:

http://SERVER_IP:2087

After the WHM is opened in your browser, you can log in to it with the root username and password:

 

WHM-login-screen

 

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.

 

CPanel-licenses

 

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:

https://verify.cpanel.net/app/verify

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:

/usr/local/cpanel/cpkeyclt

That’s it!

Recommended Article: How to change the php version in Cpanel

Conclusion

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.

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

View More Posts
Marilyn Bisson
Content Writer
Eldernode Writer
We Are Waiting for your valuable comments and you can be sure that it will be answered in the shortest possible time.

    Leave Your Comment

    Your email address will not be published.

    We are by your side every step of the way

    Think about developing your online business; We will protect it compassionately

    We are by your side every step of the way

    +8595670151

    7 days a week, 24 hours a day