WebHost Manager (WHM) is a server administrative interface created by cPanel. cPanel/WHM is widely used among hosting providers and users who have their own servers for website hosting. This software makes it much easier to manage Linux distributed servers as they don’t need to make all the server configuration via command-line.
In this tutorial, we will learn how to add hosting account in WHM.
What you’ll need
Before you begin this guide you’ll need the following:
Access to WebHost Manager (WHM).
Step 1 — Creating a new package
Before you proceed with a new account creation you will need to create a new hosting package which could be assigned to new accounts. This is necessary because WHM doesn’t allow creating new accounts without a package attached. If you already have packages created, proceed to Step 2.
Login to your WHM. By default, it can be accessed by filling in your server IP address with a port of 2086 or 2087 to the browser. It should look something like this: http://serverip:2086 or https://serverip:2087
When you are logged in you should see a list of available tools with a search bar at the top left side of your screen. Fill the search box with term package and you should now see Add a Package option appear. Click Add a Package.
You will now see a page where you can set the limits, options of this particular hosting package. More information about each resource option can be found in cPanel Documentation.
Once you have everything set as you want, scroll down to the bottom of the page and click Add.
If the package was created successfully you should see a Success message at the bottom right corner of your screen.
You can create as many packages as you wish with different resource options.
Step 2 — Creating a new account
When we have at least one package we can now create a new cPanel hosting account.
Fill the search box with term create and you should now see Create a New Account option appear. Click Create a New Account.
In this page, you will need to fill in the main information of the hosting account you are about to create. This includes Domain, Username, Password, Email, Package, Theme, …
Fill in the necessary information and under Package section select the package that you would like to assign to this account.
If everything is filled in correctly, you should see green checkboxes next to required fields. If you see a red cross instead next to some field, please re-check if you filled in the information correctly. NOTE! These indications are only shown next to some of the fields.
Let’s look into Settings section. You can see two options there.
cPanel Theme – you can choose from available cPanel themes here. However, the user will be able to change the theme later in cPanel interface.
Locale – you can choose the default language of this cPanel account. Also, the user will be able to change the language later.
Scroll down and you will see 2 other sections: DNS settings and Mail Routing Settings. In most cases, you can proceed with the values already checked, but I will explain the settings for reference:
Enable DKIM on this account and Enable SPF on this account – enabling these features will increase the reputation of all emails sent out from that account. So it is always recommended to check these checkboxes.
Use the nameservers specified at the Domain’s Registrar – If this option is unchecked, DNS Zone of this account will be created with default nameserver values specified in WHM -> Basic cPanel & WHM Setup. In most cases, this is fine, however if you want the DNS Zone to be created with current nameserver values of this particular domain name – check this checkbox. NOTE! it is not recommended to check this option if domain is not yet pointed to correct nameservers.
Mail Routing Settings:
Check Local Mail Exchanger if your aim is to send emails through the same server where the hosting account will be hosted (this is the default setting and will work fine in most cases).
In other cases you would need to look into Backup Mail Exchanger or Remote Mail Exchanger. You can find more information about these options by clicking More next to them.
Upon completion in this page, scroll down and click Create.
Account creation should now start, it will take up to 1 minute and when it is finished you should see a log which indicates all steps of the creation. Scroll down to the bottom of the page and if you see Account Creation Complete!!… message, it means that your account was created successfully.
If you get any error messages during the account creation, please re-check if all details were filled in correctly. If you still experience issues afterwards, contact your hosting provider.
Step 3 — Checking the new account
After creating a new account we would like to check it of course.
Fill the search box with term list and you should now see List Accounts option appear. Click List Accounts.
Here you should see a list of accounts created under your main account. You can see the most important information next to each account. To make changes to the account, click the + symbol.
You can also access cPanel of each account in this list by clicking the cPanel icon.
You now know how to create new cPanel hosting accounts in WHM. This will allow you to host your new websites or your clients accounts if you are selling hosting services. You have also learned how to create new packages which is always required for new account creation. With the help of this tutorial you will be able to create multiple hosting packages with different limitations, etc. and assign them to your newly created cPanel hosting accounts.
Linas started as a customer success agent and is now a full-stack PHP developer at Hostinger. He is passionate about making a positive impact on people by utilizing user-driven development techniques. As much as he enjoys coding and changing the world, he secretly dreams of becoming a rock star.