Skip to content

cPanel

In this article

Information

cPanel is a web hosting control panel. It provides a graphical interface for managing hosting on a remote server. It also allows system administrators and site owners to manage accounts, domains, databases, files, email, and many other hosting features. cPanel has many built-in tools such as Apache, PHP, Perl, MySQL, FTP, etc. cPanel ensures a high level of security, including protection against malicious code and spam.

cPanel. Key Features

  • File management: It provides the ability to manage files on the server through the built-in file manager. With this feature, you can view, upload, download, copy, and delete files on the server.
  • Database management: It allows you to create, edit and delete MySQL or PostgreSQL databases, as well as manage them through a user-friendly interface phpMyAdmin or phpPgAdmin.
  • Domains and Subdomains management: It allows you to add new domains and subdomains, set up DNS records, create redirects, configure SSL certificates, and more.
  • Email management: It provides convenient email management, including creating mailboxes, forwarding, spam filtering, and other functions.
  • FTP management: It allows you to create new FTP users, configure permissions for files and folders, and also monitor disk usage.

Features of the assembly

  • Installation on Alma Linux 8, Rocky Linux 8, CentOS 7, RHEL 7, Ubuntu 20.04 and 22.04 families is possible.
  • Installation time is 17-30 minutes, including OS.

Installation process:

  1. The system is installed;

  2. The latest script is downloaded to the /tmp directory;

  3. The latest script runs to install the application on the operating system;

After installation, you need to follow the link https:cpanel<Server_ID_from_Invapi>.hostkey.in:2087

Getting started after deploying cPanel

Attention

cPanel is a trial version for 15 days. After this period, access to the panel is blocked. The site hosted on the server will continue to work, but access to its management will be lost until the paid version of cPanel is activated.

A notification will be sent to the e-mail specified during registration that the server is ready for work after paying for the order. It will contain the IP address of the VPS, as well as the login and password for the connection. Clients of our company manage the hardware in the server`s and API control panel — Invapi.

After clicking on the link from the webpanel tag, an authorization window will be opened. Here you should use the credentials specified in the Info >> Tags. Login - root, SSH password (sended in a letter to your email).

Then you need to read the license agreement and go to cPanel Store:

Next, it is required to register or log in to cPanel Store:

After authorisation you need to specify the name of the server:

Then create a new user. To do this, select the item Create a New Account:

And fill out the domain information:

  • Domain - the domain name that will be used for this account.For example, cpanel<Server_ID_from_Invapi>.hostkey.in.
  • Username - the account will be created in cPanel under the username specified..
  • Password - enter the password to access the cPanel account associated with this username. Must be strong and unique.
  • Re-type Password - Include a password re-entry field to prevent typos when creating a password.
  • Email - The email address of the user will be used for sending notifications from cPanel and for password recovery.

To create a new user account in cPanel, these fields, except for email, are required.

After creating a new account, you can go to the address https://cpanel<Server_ID_from_Invapi>.hostkey.in:2083 and enter the specified accounting data:

Then you can start working with the panel:

Activation of the trial period

Activate a trial period for using cPanel:

To activate the paid version, you must click on the Purchase a License button on the start page of the control panel:

After that, you will be transferred to your personal account, then pay for the license. After payment, activation will occur automatically.

You can also manage licenses in the cPanel Store in section Manage Licenses:

Adding a site from the template

CPanel allows you to use templates to post sites.To do this, go to the section Site Publisher:

And choose one of the available templates:

Then enter the data that will be displayed on the site (the data set changes depending on the template) and click the button Publish. The site will be available at the address https://cpanel<Server_ID_from_Invapi>.hostkey.in/:

Attention

The ability to create your own domains is available only if there is a paid CPanel license.

For more information on the basic settings of cPanel, see the documentation of the developers..

Opening SMTP ports for organizing corporate mail service

For security reasons, outgoing TCP ports (25,24,2525, 387, 465, and 587) and UDP port (5060) are blocked by default on all VPS servers. This is to prevent the sending of spam.

To remove the block, follow the steps below:

  1. Spell out the domain zone.The A record of the domain must necessarily refer to the IP address of your server in HOSTKEY.

  2. Send a request to technical support stating that you need to open outgoing SMTP ports for sending mail and the address of the domain from which (or a subdomain of which) it is being sent.

    Attention

    We reserve the right to ask you additional questions about the domain name and your options for using it.

  3. After analyzing the domain name we will make a decision about opening ports for SMTP operation and inform you.

Ordering cPanel using the API

curl -s "https://invapi.hostkey.com/eq.php" -X POST \
--data "action=order_instance" \
--data "token=" \
--data "deploy_period=" \
--data "deploy_notify=" \
--data "email=" \
--data "pin=" \
--data "id=" \
--data "os_id=" \
--data "root_pass=" \
--data "hostname=" \
--data "ssh_key=" \
--data "post_install_callback=" \
--data "post_install_script=" \
--data "reinstall_key=" \
--data "os_name=" \
--data "imitate_deploy=" \
--data "imitate_error=0" \
--data "own_os=" \
--data "jenkins_task=" \
--data "traffic_plan=" \
--data "invoice_relid=" \
--data "preset=" \
--data "location_name=" \