When you install cPanel on your VPS, you will need to set a root password to access cPanel and WHM. In this guide, we will show you how to set your root password and log into WHM successfully.
- A VPS with cPanel installed
- Setting the Root Password on CentOS 7
Setting the Root Password on CentOS 7
When you first provision your cPanel VPS, you will receive an email with credentials to your server. By default, OVHcloud will send you an email with credentials for a sudo user we have created for you. Because cPanel is based on CentOS 7, the user created for you will be called
centos. By default, a root password won't be set so the first step will be to set one. To do so, SSH into your server using the following command, replacing the IP address in red with your VPS's IP address.
$ ssh email@example.com
Next, we will set a password for the root user using the following command:
$ sudo passwd root
Enter the password you wish to use and then confirm it. Now we will go ahead and update our cPanel license using the following command.
$ sudo /usr/local/cpanel/cpkeyclt
A successful output will appear as follows:
Updating cPanel license...Done. Update succeeded.
Now navigate to one of the following URLs depending on which user interface you wish to access, replacing the IP address in the link with your VPS's IP address:
WHM - https://203.0.113.1:2087
cPanel - https://203.0.113.1:2082
In the below screenshot we use WHM as an example. Enter the username "root" and the password you set for this user.
You have now successfully accessed WHM and cPanel
Having read this guide, you should be able to configure the credentials necessary to access cPanel and WHM on a VPS.