Skip to content

Latest commit

 

History

History
107 lines (66 loc) · 4.23 KB

File metadata and controls

107 lines (66 loc) · 4.23 KB
title excerpt updated
Deploying cPanel on a VPS"
Find out how to instantiate a VPS with the pre-installed cPanel application
2024-01-31

Objective

cPanel is a control panel that facilitates the management of web hosting. It makes complex tasks more accessible, especially to new users. It offers a wide range of features, such as:

  • Emails
  • Domain names
  • Databases
  • Security
  • etc.

This simplifies website hosting, thanks to a graphical interface for automating settings.

This guide explains how to deploy cPanel with preinstalled applications on a VPS.

Requirements

Instructions

If you already have a VPS and want to have cPanel on it, you can reinstall the VPS from your OVHcloud Control Panel via a cPanel-compatible OS.

Warning

If you reinstall a VPS, all data stored on the VPS will be lost.

To install your cPanel server, order a VPS with the cPanel distribution.

horizon{.thumbnail}

When your VPS is ready, you will receive an email providing the information to connect to your cPanel server:

 |    Your application(s):
 |    Application: cpanel
 |    You can connect to cPanel from https://<hostname>:2087/<session_parameters>

First login

Once you have received the email containing the unique link, click on this link to perform the initial configuration. If the link has already expired, connect to the server via SSH and run the command sudo whmlogin to generate a new link.

The URL generated by the command sudo whmlogin allows you to log in to your WHM interface without any credentials (user and password). WHM is a server managemement tool used with cPanel. You will be able to access cPanel after completing the following steps.

Step 1: Read and accept the cPanel Terms of Use

Read and accept the cPanel Terms of Use.

horizon{.thumbnail}

Step 2: Provide your email and nameservers you wish to set on the VPS

horizon{.thumbnail}

Step 3: Set the root password

horizon{.thumbnail}

You can now log in to your server via SSH, using the root user password you have just set.

Create a cPanel account from the WHM interface

Once you have logged in to your WHM interface, click Create a New Account{.action} to create a cPanel account.

cPanel{.thumbnail}

Fill in the form, then confirm to create your cPanel account.

cPanel{.thumbnail}

On the new screen that pops up, click the Go to cPanel{.action} button to the right of the screen.

cPanel{.thumbnail}

You are redirected to your cPanel interface.

cPanel{.thumbnail}

You can now use cPanel. For more information about cPanel, see the official documentation.

[!primary]

In your browser's navigation bar, enter the following URLs to connect:

  • To cPanel: https://<IP_V4>:2083/ (use the credentials that have just been created in the WHM interface)
  • To WHM: https://<IP_V4>:2087/ (use the root username and password received in the service purchase email or the SSH password that has been changed in the WHM interface)

Find your IPv4 address in the email you received when ordering your VPS with the cPanel distribution.

Securing your service

We recommend taking all the necessary measures to secure your WHM and VPS by following the cPanel recommendations.

We also recommend reading our guide to securing a VPS, using our backup solutions and configuring the Edge Network Firewall.

Go further

Join our community of users.