Set up Cpanel in Linux Instance

Understanding cPanel: Your Web Hosting Control Panel

CPanel is a popular web hosting control panel that simplifies website and server management for users. It offers a user-friendly graphical interface (GUI) that enables a wide range of tasks, including:

  • Monitoring web server resources to ensure optimal performance.

  • Domain name management for easy handling of your online identities.

  • File organization to keep your website's backend structured and accessible.

  • Creation of email accounts associated with your domain for professional communication.

Widely favored by hosting providers, cPanel's intuitive design ensures that users, regardless of their technical background, can efficiently manage their web hosting needs.

Installation Requirements:

**It works on all Linux distributions.

  1. Minimum of 1 GB RAM (but 2 GB recommended).

  2. At least 20GB of free disk space (but 40 GB is recommended).

  3. A valid cPanel license.

  4. Standard hostname (FQDN or Fully Qualified Domain Name)

  5. Perl

Update and Upgrade All Packages

$ yum update -y && yum upgrade -y

$ yum install perl

$ yum install curl

$ cd /home

$ curl -o latest -Lhttps://securedownloads.cpanel.net/latest

$ sh latest

The installation process will take place as shown below:

You open the browser and access it with the address:https://your_IP_ADD:2087 in Step 3, here you will see the WHM interface as shown below. Please enter your VPS’s root information to log in.

You read the terms of WHM and cPanel => click Agree to ALL.

Should the VPS's IP lack a License, you'll be prompted to sign up for a 15-day Trial License to proceed with the installation. Simply click Login, and register for the trial by creating an account and entering your details to activate it.

After registering an account on Trial, please check your registered email for a verification code sent by the firm. Enter this code in the Verification Code section.

After successful registration, you will receive the message: 15-day free Trial License Activated, click Server Setup to set up the next step.

Next, in the Email Address section, enter your administrative email information.

Nameserver: You can name a pair of Nameservers for your server, keeping it simple and easy to remember. This nameserver you can later use as a DNS server of VPS.

After filling in all the information, press Finish to complete the installation.

Configuring WHM

cPanel and WHM should now be installed and ready to be configured for your domain. When you log in for the first time you’ll see a page much like in the example picture below.

Since the login URL is temporary and will expire, your first step should be setting a new root password.

Click the menu icon to open the sidebar and select Change Root Password.

Enter a new password twice, pay attention to the password strength, and then click Change Password to save the change.

Afterward, restart the server from the yellow notification if needed.

When deploying your cPanel cloud server, you had the option to set the hostname. If you need to change the hostname, you can reconfigure it under the Change Hostname option. Check that the server hostname was configured correctly.

Next, confirm the DNS resolvers were configured correctly. Go to the Resolver Configuration page and click the Proceed button.

Your cloud server should automatically receive resolver information from the network but you’ll likely want to include your own resolver as well. Add the localhost IP 127.0.0.1 as the primary resolver and the UpCloud DNS addresses to the secondary 94.237.127.9 and tertiary 94.237.40.9 resolvers. Then save the settings by clicking the Continue button.

The cPanel and WHM installation includes a fully featured domain name server for your cPanel-hosted domains. It allows cPanel to automatically manage your domain name records for any web servers you want to install.

Configure your nameserver by going to the Edit DNS Zone page, selecting the DNS zone you wish to change, then clicking the Edit button.

Finish!

Last updated