cPanel ও WHM

cPanel ও WHM-এ হোস্টিং ও রিসেলার অ্যাকাউন্ট: WHM API টোকেন, প্রোডাক্টের ফিল্ড, মডিউলের প্রতিটি কমান্ড, এক ক্লিকে সাইন-ইন, ব্যবহার, আর সমস্যার সমাধান।

The cPanel & WHM module builds hosting and reseller accounts on a cPanel server through WHM API 1. When an order is paid it creates the account, and later it suspends, unsuspends, changes the package, changes the password and removes it, reads disk and bandwidth use, and gives a one-click sign-in to cPanel. It is a free provisioning module for hosting companies whose servers run cPanel & WHM. How services, servers and the service page work in general is in Services and servers.

Switching it on

  1. Setup → Addon Modules: cPanel & WHM is built in. If it is off, press Activate.
  2. Setup → Servers → Add: make the server (below) and press Test Connection.
  3. Setup → Products / Services: open the product, tab Module Settings, choose cPanel & WHM, pick the server group and fill in the product settings.

The server

FieldWhat to enter for cPanel
Name, Hostname, IP AddressThe hostname is used first; the IP address when the hostname is empty.
ModulecPanel & WHM. Save once to load the module's own fields.
Usernameroot, or a reseller. Empty means root.
Access Hash / API TokenA WHM API token (or the old access hash). It is sent as Authorization: whm USER:TOKEN. Spaces and line breaks are removed.
PasswordUsed only when there is no access hash: the module then signs in with basic authentication. A token is the safer choice.
Secure and PortSecure on. The port is empty or 2087, WHM's port.

The token and the password are stored encrypted. The module does not check the server's certificate, because WHM often runs on a self-made one. Make the token in WHM under Development → Manage API Tokens (or as the reseller). If you restrict it by address, allow your billing server's IP address. A 403 answer means the token is wrong or this server's IP address is not allowed.

Product settings

On the product's Module Settings tab:

SettingMeaning
PackageThe WHM package (plan) name, exactly as it is in WHM.
Feature listOptional. A WHM feature list name; empty uses the package's own.
Dedicated IPYes: give each account its own IP address, taken from the free IPs of the server. The address is saved on the service as its Dedicated IP.
Reseller accountYes: make the account a reseller that owns itself.
Reseller ACL listThe reseller privilege list name (WHM > Reseller ACL). Used only for resellers.

What each command does

CommandEffect on the server
CreateCreates the account with the service's username, domain, password and the client's e-mail, the package as plan, the feature list, a dedicated or shared IP, CGI on and shell access off. For a reseller it then sets up the reseller (owning itself) and applies the ACL list.
Suspend / UnsuspendSuspends with the reason you gave, or switches back on.
TerminateRemoves the account.
Change PasswordSets a new password.
Change PackageMoves the account to the product's package. A product with no package gives The product has no WHM package set.
Login to Control PanelA one-time cPanel session link; if none can be made, the link opens cPanel's sign-in page on port 2083.
UsageOnce a day the cron reads disk use and limit and bandwidth of every account.

Typical workflow

  1. A client orders hosting and pays. With Automatic Setup on payment (the default) the module runs Create.
  2. The account exists, the service turns Active and the welcome e-mail with the username, password and domain goes out.
  3. An unpaid renewal suspends the service; payment unsuspends it. See Automation.
  4. The client reaches cPanel from their service page with Login to Control Panel.
  5. Terminate removes the account when you end the service.

Testing

Press Test Connection on the server form. A good answer reads Connected to WHM, version (number). Then create a cheap test package in WHM, a product that uses it, order it as a test client, pay the invoice by hand with Add Payment, and watch the account appear in WHM. Try Suspend, Unsuspend, Change Password and Terminate.

Troubleshooting

Every call is written to Utilities → Module Log (module cpanel); press View for the request and the answer. A failed create, suspend or unsuspend also e-mails the administrators.

MessageCure
The server has no access hash or password.Fill Access Hash / API Token.
WHM could not be reached: ...Wrong host or port, a firewall that blocks 2087 (also CSF or a host firewall), or no curl.
WHM answered with something that is not JSON (HTTP 403). Check the access hash and that this server's IP is allowed.The token is wrong, or your billing server's IP address is not allowed on the WHM side.
WHM: ... with a reasonWHM refused: a package that does not exist, a user name that is taken or reserved, or a domain that already exists on the server.
The service has no domain name. / no user name.Fill the fields on the service page and retry.

More in Troubleshooting.

এই লেখাটি কি কাজে লেগেছে?

হালনাগাদ 2026-11-03