Complete Guide to cPanel

In this comprehensive guide to cPanel for hosting users, you'll find all the basic and essential information you need to get started on the platform, so you'll know how to navigate and use it correctly and clearly.

Access to cPanel

The first thing we need to do before moving on to the next steps is to log in to our cPanel. To do this, simply open a web browser (Google Chrome, Firefox, Explorer, etc.) and enter the IP address and port for accessing our cPanel in the URL bar.

Next, the cPanel login screen will appear, where you’ll need to enter your username and password.

Acceso a cPanel — captura 1

Once you’ve entered the correct username and password, you’ll have access to your cPanel and can proceed with the next steps in this guide.

How to Add a New Domain in cPanel

To add a new domain, go to the "Domains" section of your cPanel and select the "Additional Domains" option .

Cómo añadir un nuevo dominio en cPanel — captura 1

Once there, the following window will open:

Cómo añadir un nuevo dominio en cPanel — captura 2

Fill in the first field labeled “New Domain Name” with the name of your new domain—for example, “pruebadominio.com”—which is the one we’ve used for this guide, as shown in the next slide.

Once we’ve entered our domain name in the first field, the remaining fields will be filled in automatically, and all we’ll have to do is click the “Add Domain” button .

Cómo añadir un nuevo dominio en cPanel — captura 3

Next, a message should appear confirming that the process was successful and that your domain has been added correctly.

Cómo añadir un nuevo dominio en cPanel — captura 4

Finally, you can verify that your domain has been created successfully.

Cómo añadir un nuevo dominio en cPanel — captura 5

How to Add a Subdomain in cPanel

To add a new subdomain, go to the "Domains" section of your cPanel and select the "Subdomains" option .

Cómo añadir un subdominio en cPanel — captura 1

A window will open with blank fields to fill out; enter the details for your new subdomain there.

Cómo añadir un subdominio en cPanel — captura 2

Fill them out as follows: in the first field, enter the name of your subdomain; directly below that, select the domain you want it to be associated with; the last field will be filled in automatically once you choose a name for your subdomain.

Once you’ve completed all these steps, click the “Create” button to start the process of creating your subdomain.

Cómo añadir un subdominio en cPanel — captura 3

If the entire process has been completed correctly and without any issues, the following confirmation message will appear; you can then return to the previous window.

Cómo añadir un subdominio en cPanel — captura 4

Finally, you’ll see that your new subdomain has been added.

Cómo añadir un subdominio en cPanel — captura 5

How to Set Up a Redirect in cPanel

To create a redirect, go to the "Domains" section of your cPanel and select the "Redirect" option .

Cómo crear una redirección desde cPanel — captura 1

The following window will appear, in which you must fill in the blank fields to create the redirect.

Cómo crear una redirección desde cPanel — captura 2
  • In the first field, you can select the type of redirect—whether you want it to be 301 (Permanent) or 302 (Temporary).
  • Next, select the domain from which you want to set up the redirect.
  • You’ll need to choose the folder within the previously selected domain that you want to redirect.
  • The domain to which you want to redirect.
  • Finally, you can decide whether to include “www” in the redirect and whether to use a wildcard redirect.
Cómo crear una redirección desde cPanel — captura 3

Once these steps are complete, click the “Add” button to add this new redirect.

Cómo crear una redirección desde cPanel — captura 4

You can verify that the redirect has been added to the list of created redirects.

Cómo crear una redirección desde cPanel — captura 5

How to Create an Alias in cPanel

To create an alias that allows us to access a website using other names, we need to go to the "Domains" section of our cPanel and select the "Alias" option .

Cómo crear un alias en cPanel — captura 1

There, you’ll see the following window, where you’ll need to fill in the domain field with the name of the new alias:

Cómo crear un alias en cPanel — captura 2

Click the “Add Domain” button, and a message should appear confirming that the process was successful.

Cómo crear un alias en cPanel — captura 3

After that, you’ll be able to see the new alias in the list of created aliases, and you can edit it if you want to add a redirect.

Cómo crear un alias en cPanel — captura 4 Cómo crear un alias en cPanel — captura 5

How to Install a Free SSL Certificate from cPanel

To install an SSL certificate and redirect from http to https, follow these steps.

First, go to the “Security” section of your cPanel and select the “SSL/TLS” option .

Cómo instalar un SSL gratuito desde cPanel — captura 1

Once there, you’ll be taken to the following window, where you should select the Certificates (CRT) option.

Cómo instalar un SSL gratuito desde cPanel — captura 2

A new window will open, and you’ll need to scroll down the page until you reach the “Generate a New Certificate” section .

In this section, you must fill in the following fields to generate the new certificate:

  • Key: Leave this set to the default option (Generate a new 2048-bit key).
  • Domains: Enter the domain(s) for which you want to generate the key.
  • City: Any city you choose, preferably where the company is located.
  • State: The same applies as for City.
  • Country: Same as for City and State.
  • Company: The name of our company.
  • Division: The division of that company.
  • Email: An email address we have access to.
  • Description: A brief description of the certificate.
Cómo instalar un SSL gratuito desde cPanel — captura 3

After generating the certificate, the following message will appear; simply click the “Install” option as shown in the screenshot below.

Cómo instalar un SSL gratuito desde cPanel — captura 4

Another window will open where you should select your domain, click the “Auto-fill” button to have the certificate filled in automatically, and finally click “Install.”

Cómo instalar un SSL gratuito desde cPanel — captura 5 Cómo instalar un SSL gratuito desde cPanel — captura 6

Finally, a message will appear confirming that the installation was successful.

Cómo instalar un SSL gratuito desde cPanel — captura 7

How to Create a MySQL Database in cPanel

To create a MySQL database—which will be very useful for our websites regardless of the CMS we use to build them—the first thing we need to do is go to the “Database” section and select the “MySQL Databases” option .

Cómo crear una base de datos MySQL en cPanel — captura 1

A window will open where you can create a database, create a user, and associate the user with the database.

The first thing we need to do is create a database. To do this, in the first field labeled “New Database,” we’ll enter the name of the database we want.

Cómo crear una base de datos MySQL en cPanel — captura 2

Next, we need to create a user.

Cómo crear una base de datos MySQL en cPanel — captura 3

Once we have created a user and a MySQL database, we’ll link that user to the database and grant them the desired privileges.

Cómo crear una base de datos MySQL en cPanel — captura 4 Cómo crear una base de datos MySQL en cPanel — captura 5

How to Use phpMyAdmin in cPanel

The first thing we need to do is access the phpMyAdmin section; to do this, we'll go to the "Database" section and then select "phpMyAdmin."

Cómo usar phpMyAdmin en cPanel — captura 1

When we access phpMyAdmin, a main window will open where we can see the databases we created earlier.

Cómo usar phpMyAdmin en cPanel — captura 2

At this point, you can access each database and edit or modify it as needed.

Cómo usar phpMyAdmin en cPanel — captura 3

How to Create or Edit a DNS Record in cPanel

The first thing we need to do is access the DNS zone creator and editor; to do this, go to the “Domains” section and then select “Zone Editor.”

Cómo crear o editar un registro DNS en cPanel — captura 1

A window will open where you can view every domain that has been created, and for each of these domains, you can create a DNS zone with an “A Record, ” “CNAME Record,” or “MX Record.”

Cómo crear o editar un registro DNS en cPanel — captura 2

Depending on which one you select, you’ll see several fields to fill out to create that DNS zone.

Cómo crear o editar un registro DNS en cPanel — captura 3

How to Set Up CRON Jobs in cPanel

A CRON job is a scheduled task in our cPanel that will run a command at regular intervals that we have previously set.

The first thing we need to do is access the CRON job settings. To do this, go to the “Advanced” section and select the “CRON Jobs” option .

Cómo configurar tareas CRON en cPanel — captura 1

Once there, you’ll see a section called “General Settings, where you can enter the command’s execution time and the command itself.

Cómo configurar tareas CRON en cPanel — captura 2

In the first fields, you can enter the minutes, hours, days, month, and day of the week. cPanel also provides some default options to simplify the process; for this guide, as an example, we’ve used the 5-minute option.

Cómo configurar tareas CRON en cPanel — captura 3

Next, we must enter the command we’ll run during this time period for this scheduled CRON task.

For this guide, we’ll use the following command as an example:

wget -q -O /dev/null -t 1 "http://unejemplo.es/wp-cron.php?doing_wp_cron" >/dev/null 2>&1

And finally, we’ll select the option to add a new cron job to add the new task.

Cómo configurar tareas CRON en cPanel — captura 4

Now we can see the new cron job that has been created.

Cómo configurar tareas CRON en cPanel — captura 5

File Manager in cPanel

The file manager is, as its name suggests, simply a file explorer or browser very similar to the one you might find in a graphical operating system like Windows or Ubuntu, but with the difference that it is somewhat more limited since it is a cPanel web-based file manager.

The first thing we need to do is access the file manager; to do this, go to the “Files” section and select the “File Manager” option .

Administrador de archivos en cPanel — captura 1

Once you’ve accessed this option, you can start working with the File Manager. In the first window, you’ll see a layout where, on the left, there’s a list of all the folders—this lets you see how many folders you have and access them quickly. On the right, you’ll see a much more detailed view of each folder’s contents.

Administrador de archivos en cPanel — captura 2

From the right-hand panel, you can move, copy, download, and perform other actions on your files.

Administrador de archivos en cPanel — captura 3

How to Check Used Storage in cPanel

The first thing we need to do to check how much storage space has been used in our cPanel is to go to the “Files” section and select the “Disk Usage” option .

Cómo comprobar el almacenamiento usado en cPanel — captura 1

We can view the used space in two ways; the first is a more visual representation broken down by folder.

Cómo comprobar el almacenamiento usado en cPanel — captura 2

Or in a tree view, where you can see directories and their contents.

Cómo comprobar el almacenamiento usado en cPanel — captura 3

How to Create a Password-Protected Directory in cPanel

First, go to the "Files" section in cPanel and select the " Directory Privacy" option .

Cómo crear un directorio con contraseña en cPanel — captura 1

The first thing you’ll see is a list of folders, which you can select to set permissions.

Cómo crear un directorio con contraseña en cPanel — captura 2

Once we select one, the following window will open, where we can enter a name for the protected directory and also create a username and password for our protected folder.

Cómo crear un directorio con contraseña en cPanel — captura 3

How to Create an FTP Account in cPanel

To create an FTP account, first navigate to the "Files" section in cPanel and select the " FTP Accounts" option .

Cómo crear una cuenta FTP en cPanel — captura 1

A page will open that is divided into three sections: one for creating an FTP account, the second for existing FTP accounts, and the third for accounts created by default, known as special accounts.

In the section where you can add an FTP account, enter the username you’ll use for this account, along with the domain it will belong to, the password, the directory where it will be located, and its quota—which, in our case, will be unlimited.

Cómo crear una cuenta FTP en cPanel — captura 2

Click the “Create FTP Account” button; a message will appear confirming that the account has been successfully created, and you can now see the account in the list of created FTP accounts.

Cómo crear una cuenta FTP en cPanel — captura 3

Finally, at the bottom of this window, you’ll see the accounts created by default, labeled “Special FTP Accounts.”

Cómo crear una cuenta FTP en cPanel — captura 4

Backups in cPanel with JetBackup

The first thing we need to do is go to the JetBackup section (to do this, we must have the JetBackup module installed), where we'll see all the backup options that cPanel offers.

Copias de seguridad en cPanel con JetBackup — captura 1

Depending on the type of backup you want, select one of the options offered by JetBackup; the process is similar in all cases.

In our case, we select the “Full Account Backups” option, and the following window opens, displaying a list of the most recent backups sorted from newest to oldest.

Copias de seguridad en cPanel con JetBackup — captura 2

For all backups, you can either restore them or download them.

If you select the restore option, an alert window will open where you must accept the terms and conditions and enter an email address to which a notification will be sent once the restore is complete.

Copias de seguridad en cPanel con JetBackup — captura 3

With the “Generate Download” option, you can request a download link for that backup. After a waiting period (which varies depending on the backup’s size), you’ll be able to download it without any issues.

Copias de seguridad en cPanel con JetBackup — captura 4 Copias de seguridad en cPanel con JetBackup — captura 5

In the case of the “file backups” option, the process is slightly different, as this option allows you to view each folder and file in the backups, enabling you to make a more precise selection of what you want to restore or download.

Copias de seguridad en cPanel con JetBackup — captura 6

Once you select this option, a window will open where you must select a backup from the list, which is sorted by creation date from most recent to least recent.

Copias de seguridad en cPanel con JetBackup — captura 7

Select the “File Manager” link for the backup you want, and you’ll be able to view and select the folders within that backup.

Copias de seguridad en cPanel con JetBackup — captura 8

Once you’ve selected these folders, you can choose what to do with them: restore them, download them, or deselect them.

Copias de seguridad en cPanel con JetBackup — captura 9

How to Create an Email Account in cPanel

First, go to the " Email" section and select the " Email Accounts" option .

Cómo crear una cuenta de correo electrónico en cPanel — captura 1

When you click on it, a window will open , and you should select the “Add Email Account” option .

Cómo crear una cuenta de correo electrónico en cPanel — captura 2

Fill in the fields, select the domain or subdomain you want it to belong to, and click “Create Account.”

How to Set Up Autoresponders in cPanel

The auto-reply feature in cPanel is a very basic system that allows you to set a specific email address to automatically reply to all emails sent to it. The first thing you need to do is navigate to the “Email” section and select the “Auto-reply” option .

Cómo configurar autorespondedores en cPanel — captura 1

You’ll see a list of existing autoresponders, if any, but we’ll click the “Add Autoresponder” button .

Cómo configurar autorespondedores en cPanel — captura 2

Next, you’ll need to fill out the following required fields to create the auto-reply:

  • Character set: In our case, we’ll leave it as the default setting.
  • Interval: The time (in hours) between responses to the same email address.
  • Email: The email address that will automatically reply to all incoming emails using this autoresponder.
  • Domain: The name of the domain to which this email address belongs.
  • From: The email address that will appear in our replies.
  • Subject: The subject line of the reply.
  • Body: The content of the reply email.
Cómo configurar autorespondedores en cPanel — captura 3 Cómo configurar autorespondedores en cPanel — captura 4

All that’s left to do is select the “Create/Modify” option .

How to Set Up Forwarders in cPanel

The first thing we need to do is go to the “Email” section and select the “Forwarders” option .

Cómo configurar reenviadores en cPanel — captura 1

When you open this option, you’ll see a list of existing forwarders and the two types of forwarders you can create: “Add Forwarder” or “Add Domain Forwarder.” You can also choose which domain to add the forwarder to or whether to add it to all domains.

Cómo configurar reenviadores en cPanel — captura 2

With “Add Forwarder,” you can set up forwarding so that all emails are forwarded to another email address that you specify.

Cómo configurar reenviadores en cPanel — captura 3

When adding a domain forwarder, the goal is similar to the previous option, except that in this case, you can forward all emails from one domain to another.

Cómo configurar reenviadores en cPanel — captura 4

Information for setting up an email client in cPanel

To find the information needed to set up an email client in cPanel, the first thing you need to do is navigate to the “Email” section and select the “Email Accounts” option .

Datos para configurar un cliente de correo electrónico en cPanel — captura 1

Once there, you’ll see a list of the email accounts you’ve created; select the “Access Webmail” option to view the details.

Datos para configurar un cliente de correo electrónico en cPanel — captura 2 Datos para configurar un cliente de correo electrónico en cPanel — captura 3

Tracking Email Delivery in cPanel

With the email delivery tracking option in cPanel, you can see whether an email sent from a cPanel server email account has reached its destination.

To do this, first go to the “Email” section and select the “Track Delivery” option .

Seguimiento de entrega de correos en cPanel — captura 1

Once there, you’ll be able to see the list of sent emails and their delivery status.

Seguimiento de entrega de correos en cPanel — captura 2

How to Check Bandwidth Usage in cPanel

We need to closely monitor our bandwidth usage through cPanel. A very useful tool for this task is the “Bandwidth” feature located in the “Metrics” section .

Cómo comprobar el ancho de banda usado en cPanel — captura 1

Here, you can view statistics on the bandwidth used over the past few days.

Cómo comprobar el ancho de banda usado en cPanel — captura 2

How to View AWStats Statistics in cPanel

To access the AWStats log analyzer, the first thing you need to do is scroll down to the “Metrics” section and select the “AWStats” option .

Cómo revisar las estadísticas de AWStats en cPanel — captura 1

Once there, you’ll see a list of your domains; select the domain for which you want to view the AWStats.

Cómo revisar las estadísticas de AWStats en cPanel — captura 2 Cómo revisar las estadísticas de AWStats en cPanel — captura 3

How to Check Resource Usage in cPanel

To check resource usage in cPanel (RAM, CPU, etc.), the first thing we need to do is install Cloudnix, which will allow us to view resource statistics.

Scroll down to the “Metrics” section and select the “CPU and Concurrent Connection Usage” option .

Cómo comprobar el consumo de recursos en cPanel — captura 1

The following window will open; select the “Details” option to view the statistics on resource usage.

Cómo comprobar el consumo de recursos en cPanel — captura 2 Cómo comprobar el consumo de recursos en cPanel — captura 3

How to Enable and Disable mod_security in cPanel

To enable and disable ModSecurity, the first thing we need to do is scroll down to the “Security” section and select the “ModSecurity” option .

Cómo activar y desactivar mod_security en cPanel — captura 1

Once there, you’ll see a list of your domains and can enable or disable ModSecurity for the domain of your choice.

Cómo activar y desactivar mod_security en cPanel — captura 2

Hotlinking Protection in cPanel

The first thing we need to do is go to the “Security” section and select the “Direct Link Protection” option .

Protección contra hotlinking en cPanel — captura 1

A window will open where, in addition to enabling this option, we can add URLs to allow access to, add extensions to block direct access to, or even enter a URL to which to redirect the request.

Protección contra hotlinking en cPanel — captura 2

Block Attacking IPs from cPanel

Knowing how to defend against attacks originating from specific IP addresses is very important; for this reason, cPanel offers a very useful tool for dealing with this type of attack.

The first thing to do is navigate to the “Security” section and select the “IP Blocker” option .

Bloquear IPs atacantes desde cPanel — captura 1

Once there, the first thing you’ll see is the field where you can enter the IP range you want to block.

Bloquear IPs atacantes desde cPanel — captura 2

Once you’ve entered the IP address you want to block, it should appear in the list of blocked IP addresses located just below.

Bloquear IPs atacantes desde cPanel — captura 3

Enable Deflate or GZIP in cPanel

To activate Deflate, you'll need to follow one simple step: first, go to the "Software" section and click on the "Optimize Website" option .

Activar Deflate o GZIP en cPanel — captura 1

Next, check the second box labeled “Compress all content.”

Activar Deflate o GZIP en cPanel — captura 2

Click the “Update Settings” button, and a confirmation message will appear.

Activar Deflate o GZIP en cPanel — captura 3

Select the PHP version to use from cPanel

To select the PHP version you want for cPanel, the first thing you need to do is scroll down to the “Software” section and select the “Select PHP Version” option .

Seleccionar la versión de PHP usada desde cPanel — captura 1

Once the page opens, you can select the desired PHP version.

Seleccionar la versión de PHP usada desde cPanel — captura 2

How to Configure PHP Extensions or Modules in cPanel

To select PHP extensions or modules, the first thing you need to do is navigate to the “Software” section and select the “Select PHP Version” option .

Cómo configurar extensiones o módulos de PHP en cPanel — captura 1

The next window will display the PHP modules and extensions for each PHP version; simply check or uncheck the ones you want.

Cómo configurar extensiones o módulos de PHP en cPanel — captura 2

Configure PHP variables and limits from cPanel

To configure PHP variables and limits, the first thing you need to do is scroll down to the “Software” section and select the “Select PHP Version” option .

Configurar variables y límites de PHP desde cPanel — captura 1

In this window, select the “Switch to PHP Options” option located on the right side of the window.

Configurar variables y límites de PHP desde cPanel — captura 2

A table will open where you can edit the PHP variables and limits as desired.

Configurar variables y límites de PHP desde cPanel — captura 3

How to Install a CMS with cPanel Using Softaculous

To install a CMS from Softaculous, first go to the “Softaculous APPS Installer” section and select the “Softaculous Apps Installer” option .

Cómo instalar un CMS con cPanel desde Softaculous — captura 1

In the Softaculous window that opens, you’ll see a list of CMSs you can install; for this guide, we’ve chosen “PrestaShop.”

Cómo instalar un CMS con cPanel desde Softaculous — captura 2

Select it, and then simply click the “Install” button next to the description.

Cómo instalar un CMS con cPanel desde Softaculous — captura 3