A Guide to Creating and Managing Users in WHM/cPanel

In WHM/cPanel, a cPanel account refers to an individual hosting account that uses the cPanel control panel interface. Each cPanel account represents a separate hosting environment for a specific domain or website. These accounts allow users to manage various aspects of their hosting services, including website files, email accounts, databases, security settings, and more, through the user-friendly cPanel interface.

Managing cPanel accounts in WHM involves various tasks such as creating new accounts, modifying existing ones, and removing accounts as needed.

Create a New cPanel Account From WHM

To provide an individual cPanel login access to end users, root and reseller users can create cPanel accounts from WHM.

  1. Login to WHM Panel (https://VPS_IP_Address:2087) and Navigate the search bar and search create a new account

It is assumed that you have already created a package in WHM. If not, please Create a Package before creating a cPanel account.

  1. Click on the Create a New Account option and it will lead you to the below screen where you can add details for creating user.

Following are the details you will need to specify.

1. Domain Information

  • Domain: This is the primary domain name associated with the account. It's the main domain that the user will be hosting on the server.

  • Username: The username is used for logging into the account and accessing the hosting control panel (cPanel) associated with it.

    The username must meet the following requirements:

    • You must choose a unique username that contains 16 characters or fewer.
    • The username must contain only letters and numbers.
    • The username cannot start with a number or the string test.
    • If you plan to use MySQL or PostgreSQL as a database engine, the first eight characters must be unique on the system to prevent issues with database prefixing and account transfers. However, this restriction does not apply to servers that run MariaDB.
  • Password: A secure password is necessary to protect the account from unauthorized access.

  • Email Address: The email address associated with the account. This email address may be used for important notifications related to the hosting account.
2. Package

  • Choose a package: Choose the hosting package you wish to assign to this account

  • Select Options Manually: You also have the option to assign all the resources manually.

  • cPanel Theme: Select the cPanel theme you want to assign to this account.

  • Locale: Select the language for this cPanel account.
3. Mail Routing Setting

Mail routing settings determine how email for the domains associated with the cPanel account is handled.

  • Automatically Detect Configuration: This option allows cPanel to automatically detect the best mail routing configuration based on the server's setup and the domain's DNS records. It's usually the recommended choice if you're unsure about the appropriate setting.

  • Local Mail Exchanger: With this setting, cPanel delivers email locally to the server where the account is hosted. This is suitable if the server is the primary mail server for the domain.

  • Backup Mail Exchanger: If you have a backup mail server configured, you can select this option to route email to the backup mail server in case the primary server is unavailable.

  • Remote Mail Exchanger: Choose this option if you want email to be routed to a remote mail server specified by its MX records. This is common if you're using a third-party email service provider for handling email.
4. Reseller setting

If you're creating a standard user account, you can skip this section entirely. All default settings will be applied automatically.

However, if you want to create a reseller account, you can refer this wiki guide.

5. DNS setting

Configure DNS settings if you want the server to manage DNS for the domain.

  • By enabling DKIM and SPF during the cPanel account creation process, you ensure that DKIM is set up and configured for the domain right from the start. This helps improve email deliverability and provides additional security against email spoofing and phishing attacks.

Click on Create button to create the user.

After creating a cPanel user, the cPanel account can be accessed using the username and password you provided during the account creation process. Simply enter the username and password into the cPanel login page, and you'll gain access to the cPanel dashboard for that specific account.

You've done it! The cPanel account has been successfully created from WHM.

Delete an existing cPanel Account From WHM

If you wish to delete a cPanel account in WHM, you can do so with just a few clicks.

Please note that deleting a cPanel account will permanently remove all associated files, databases, emails, and settings. Make sure you have backups if you might need any of this data later.

Login to WHM Panel (https://VPS_IP_Address:2087) and Navigate the search bar and search List account

You'll see a list of cPanel accounts or you can search for the specific account by entering its domain name or username in the search bar. Then, click on the '+' sign.

After clicking on "+", you will see the **Terminate Account"" button, Click on that button to remove/delete the cPanel account.

You'll be prompted for confirmation to remove the account. Click Yes, remove this account to proceed with deleting the account.

Change a cPanel username From WHM

Modify a cPanel account from WHM

Modifying your cPanel username could potentially disrupt the functionality of your active websites if associated configuration files or code aren't updated accordingly. We strongly advise creating a comprehensive backup of your account before proceeding with any username changes.

After changing your cPanel username, it's essential to ensure that any website files, MySQL databases, or database usernames tied to the old username are promptly updated to reflect the new one.

To change the cPanel Username, you can refer to the following steps:

Login to WHM Panel (https://VPS_IP_Address:2087) and Navigate the search bar and search List account

You'll see a list of cPanel accounts or you can search for the specific account by entering its domain name or username in the search bar. Then, click on the '+' sign.

After clicking on "+", you will see the **Modify Account"" button, Click on that button to modify the cPanle account.

It will lead you to the below screen where you can edit/change/modify details for cPanel user.

This section allows you to edit the following settings:

1. Basic Information
  • Primary Domain — Enter a new primary domain.

  • Username — Enter a username. The new username must meet the following requirements:

    • You must choose a unique username that contains 16 characters or fewer.
    • The username must contain only letters and numbers.
    • The username cannot start with a number or the string test.
    • If you plan to use MySQL or PostgreSQL as a database engine, the first eight characters must be unique on the system to prevent issues with database prefixing and account transfers. However, this restriction does not apply to servers that run MariaDB.
  • Account Owner — If the cPanel account is created with reseller and if you want to change the reseller owner, this option allows you to designate a new account owner from the available list of reseller.

  • Contact Email — Enter a new contact email for the account’s owner.

  • Default Locale — Select a new default locale.

  • cPanel Theme — Select a theme from the menu.
2. Resource Limits
  • Package — Select a hosting plan, which defines the limitations of the account. Click Change to navigate to the Upgrade/Downgrade an Account interface (WHM » Home » Account Functions » Upgrade/Downgrade an Account).

  • Disk Space Quota (MB) — Enter the amount of space on the server’s hard drive for the new account, in Megabytes (MB).

  • Monthly Bandwidth Limit (MB) — Enter the maximum amount of data that the new account can transfer each month, in Megabytes (MB).

  • Max FTP Accounts — Enter the maximum number of the account’s FTP accounts.

  • Max Email Accounts — Enter the maximum number of the account’s email accounts.

  • Mail Quota per Email Address (MB) — Enter maximum size that the account can define when it creates an email account, in Megabytes (MB).

  • Max Mailing Lists — Enter the maximum number of the account’s mailing lists.
  • Max SQL Databases — Enter the maximum number of each available type of SQL database.
  • Max Subdomains — Enter the maximum number of the account’s subdomains.
  • Max Parked Domains — Enter the maximum number of the account’s parked domains (aliases).

  • Max Addon Domains — Enter the maximum number of the account’s addon domains.

  • Max Passenger Applications — Enter the maximum number of the account’s Passenger applications.

  • Maximum Hourly Email by Domain Relayed — Enter the maximum number of emails that a domain can send per hour. This value defaults to Unlimited. You can also set this value to 0 to allow unlimited outbound emails.
3. Privileges
  • Reseller Privileges — Select this checkbox to grant reseller privileges to the account.

  • CGI Privilege — Select this checkbox to grant the ability to serve CGI files to the account.

  • Shell Access — Select this checkbox to enable SSH access for the account.
4. DNS Settings
  • Enable DKIM on this account — Select this checkbox to create DKIM records for all of the account’s zones.

  • Enable SPF on this account — Select this checkbox to create SPF records for all of the account’s zones.

CrownCloud - Get a SSD powered KVM VPS at $4.5/month!
Use the code WELCOME for 10% off!

1 GB RAM / 25 GB SSD / 1 CPU Core / 1 TB Bandwidth per month

Available Locations: LAX | MIA | ATL | FRA | AMS