Making fun a whole dimension simpler.

How to Install Cpanel / WHM on VPS

How to Install Cpanel / WHM on VPS

Getting a website started can be difficult, It doesn’t have to be though. cPanel is is powerful tool that helps you manage your web server. It comes bundled with an additional piece of software called WHM (Or Web Host Manager) which allows you to manage the root machine’s configuration.

Please note, You will need to provide your own cPanel license key.

Once the machine has been provisioned you may ssh to the machine using the ssh key that was assigned to the machine which can be found in the client area. We recommend using a service called PuTTY Which is an open source ssh client for windows and Linux desktop.

Some Technical Knowledge Of Computer Networking And Linux Is Recommended.

Here’s How To SSH

 SSH or Secure Shell Is A Protocol That Allows Remote Access To Machine Via A Command Line. SSH Will Generally Use Port 22. Think of A Port, Sort Of Like The Number On Your Mailbox. If The Number Wasn’t There, How Would The Mail Man Know Which Box To Put Your Mail In? The Address Gets It To The Right Street But It Wouldn’t Make A Lot Of Sense To Put It In A Basket For You And Each Of Your Neighbors To Sort Through. That Would Take A While, Wouldn’t It?

Once You have PuTTY installed, Do the following:

Launch PuTTY but do not connect to a remote system.

  1. In the Category window, browse to Connection>Data.
    Set the Auto-login username to the remote SSH username.
  2. Open the drop down under SSH > Host keys. Select “Add Key. Find the private key that was assigned to you machine. And choose that as your Key
  3. Click on Session back at the top of the sidebar and enter the host IP and click open in the bottom right. You should be good to go.

Type the following command in if you’re using “CMD” or “Terminal.”

ssh -l {Username}@{DeviceIP}

After Continuing by pressing the Enter key or using the done button, You will be prompted to accept the Fingerprint of the server. This is is a method of making sure you aren’t somehow connecting to the wrong server and exposing data on the other machine. Simply press “accept” or type the word “yes” for our cli friends.

You will then be prompted to authenticate by entering the machines password.  (if Your using a password instead of a Encryption Key.) This will be in the client area on our billing panel.

You should now be at the machines now be at the machines command line. Be careful, you can do a lot of damage to the machine here.


Enter the following commands:

 This Is checking to ensure that the machine has an available/correct interface for use. (An IP address)

sudo /usr/local/cpanel/scripts/mainipcheck

This command ensures that the hostname of the machine is accessible from the internet.

sudo /usr/local/cpanel/scripts/ensure_hostname_resolves --yes

Now we get to set a root password so we can access the WHM panel to begin configuring your machine! First lets change the password of the machine Type the following command into your terminal:

sudo passwd {Password123!}

With the password you just created, Enter the username “root”  and the Password you just set earlier into the spaces as pictured below:

Now You should be in!

Press “Agree To All” to continue with the setup. You Will then be prompted to connect your “cPanel Store” Account. Continue with the authorization request. Please note after the fifteen day trial is over you will lose access to the administration panels. However services hosted will not be affected by it. (Email, Web, etc.)

Server Configuration.

We recommend that you press skip and We’ll configure the hostname outside of this menu.

You should now be at the heart of WHM. Yay, You did it!

Click on “Networking Setup” > “Change Hostname” Set the host name to something that represents the subdomain that you want to point to the WHM Panel.

You can only specify a subdomain as the hostname, and you cannot specify whm or cpanel as the subdomain. It should be a FQDN. (fully qualified domain name)

for example:

Thing1.example.com

After you have set a hostname, Go to “Server Configuration > Basic WebHost Manager Setup” In the left toolbar. Scroll down to the “Basic Config” section. Set the IPv4 adress to the ip address of the machine.

 

 

WHM Basic Ip Configuration Demo Image.

 

After completing the steps above, It’s time for… You guessed it “DNS or Domain Name Server!”

What the heck does that mean? DNS is the system that’s used to translate a “Domain Name” to a computer usable IP address. It wouldn’t make a lot of sense to have a pocketbook full of ips, so we use it to make services easy to rember. Here’s an example of a domain name You’ve definitely seen before:

google.com / amazon.com / youtube.com

At the end of the day it all boils down to an IP address that point your computer to talk to the correct server. And that’s how people will find your website.

First off, You will need to own a domain name. You’re going to need to find a domain registrar, We recommend using Ionos or Porkbun. At the time of writing this, We are not yet a registrar, although we hope to become one soon.

 

For More Check Out This Article from AWS (Amazon Web Services.

Leave a Reply

Your email address will not be published. Required fields are marked *