07.06.2023

How to install cPanel and Softaculous on Ubuntu 20.04 server

Installing Softaculous on your Ubuntu 20.04 server

In order to install softaculous on your server you need to install cpanel.

Minimum requirements for cpanel:

Recommended requirements for cpanel:


Creating a server under Softaculous thanks to Serverspace.

Let's create a server that will meet the recommended characteristics.

To create servers, do the following steps:

 

Automatic installation

You can do the installation via an automated command or you can do it manually. (It's possible that the installation fails, so if you can't install cpanel automatically, install it manually.)

This is usually because a certain software package was already installed.

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

You will probably get a "curl not found" error. This means you don't have the "curl" utility installed.
Update packages with the command:

apt-get update && apt-get upgrade

.

After upgrading packages, install the "curl" utility.

apt-get install curl -y

You need to install "perl" so that cpanel can start the installation.

Then try to install "cpanel" again automatically:

apt-get install perl

If it succeeds you will see this window:

Manual installation

If the automatic installation doesn't work, follow the instructions below:
1. Updating packages:

apt-get update && apt-get upgrade

2. Change our server name to your domain name "Fully Qualified Domain Name" - (hostname)

Hostname 31.44.3.100 cpanel.demo.com server

Optional

You can install the "screen" program in order to prevent interruptions or problems during the installation

You can install the "screen" program to prevent interruptions or problems during the installation.

apt-get install wget screen -y

After installing, you start the tool immediately with the command

screen

Downloading the installation script

3. You need to go back to the "home" directory.

Use the command:

cd /home

4. Download the necessary files with the command :

wget -N http://httpupdate.cPanel.net/latest

After downloading, you can check if the script is downloaded to your server using the command

ls -a

 

When you are in the right directory, run the installation script:

sh latest

and you should get this message:

This means you have successfully started the installation of cpanel.
After installation, you need to know your hostname, or your IP + port.

Example: 31.44.3.100:2087
After you click on this link, you will see cpanel:

Authentication is done from a root account.

Next, you need to confirm your email, follow the steps on the site.

After you have logged in to whm, go this way and check the box as in the screenshot below:

Do not forget to save your changes.
If you are logged in without superuser rights,
then give access rights to the script with the following command:

chmod 755 install.sh

To install Softaculous on WHM, you need to install the script:

wget -N http://files.softaculous.com/install.sh

After you have successfully installed Softaculous, you will see the following window:

Go back to WHM and search for "Softaculous Instant".

Congratulations, you have successfully installed Softaculous.

Conclusion:

Thanks to this tutorial you can implement Softaculous on your server for your web applications.