To set up WHMCS for a hosting business, configure ten things in this order: general settings, the automation cron job, email sending, currencies and payment gateways, invoicing and suspension rules, your WHM or DirectAdmin server, products linked to server packages, domain registrar and pricing, support departments, and security. Do them in that order and your first order will be invoiced, paid and provisioned automatically.
WHMCS is the billing and automation platform behind most independent hosting companies. It is powerful, but the number of settings overwhelms new resellers, and a missed step (usually the cron job) means invoices never go out. This guide covers the setup that matters on day one.
Before You Start
- A WHMCS license and installation on HTTPS (for example
billing.yourbrand.com) - Your reseller or server login details (WHM or DirectAdmin)
- An email address on your own domain for sending
- A payment gateway account (Paystack, Flutterwave, Stripe, PayPal or a crypto gateway)
The 10-Step WHMCS Setup
1. General settings
Under System Settings β General Settings, set your company name, logo, system URL (with https), default country and date format. Pick your client area template here too.
2. The automation cron job
WHMCS can only invoice, suspend and send reminders if its cron runs. Add this in your hosting control panel’s Cron Jobs, running every 5 minutes (adjust the path to your installation):
*/5 * * * * php -q /home/USER/whmcs/crons/cron.php
Then check Utilities β System β Automation Status after a few minutes. It should show recent runs.
3. Email sending
Under System Settings β Mail, switch from PHP mail to SMTP using a mailbox on your domain. Make sure the domain has SPF, DKIM and DMARC records, or invoices and welcome emails will end up in spam.
4. Currencies and payment gateways
Set your base currency under Currencies and add others if you sell abroad. Then activate gateways under Payment Gateways. Nigerian resellers usually add Paystack or Flutterwave for Naira payments; add crypto if you sell offshore hosting.
5. Invoicing and suspension rules
Under Automation Settings, decide:
- How many days before the due date to generate invoices (7β14 days is common)
- When to send payment reminders
- How many days overdue before suspension (3β7 days is typical)
- When to terminate unpaid accounts. Give plenty of time and keep backups.
6. Connect your server
Under System Settings β Servers β Add New Server, choose cPanel or DirectAdmin, enter your hostname and reseller username, and use an API token (WHM: Development β Manage API Tokens). Add your private nameservers and test the connection.
7. Create products
Create a product group (for example “Web Hosting”), then a product per plan under Products/Services. On the Module Settings tab, choose your server and the matching package name, and set accounts to be created automatically when payment is received.
8. Domains and TLD pricing
Activate your registrar module under Domain Registrars, then set registration, transfer and renewal prices under Domain Pricing. Bundling a free or discounted domain with yearly hosting is a strong selling point.
9. Support departments
Create departments such as Sales, Technical Support and Billing under Support Departments, each with its own email address. Set up email piping or POP3 import so replies by email land in tickets.
10. Security
- Turn on two-factor authentication for every admin account.
- Rename the admin folder and set
$customadminpathinconfiguration.php. - Move the
cronsfolder outside the public web root if your setup allows it. - Keep WHMCS and its modules updated, and back up the database daily.
Before going live, place a real test order with a cheap product and pay it. You should get an invoice, a payment confirmation and a welcome email with working login details, all within minutes.
Common WHMCS Mistakes
| Mistake | What happens | Fix |
|---|---|---|
| No cron job | No invoices, no suspensions | Add the 5-minute cron; check Automation Status |
| PHP mail instead of SMTP | Emails go to spam | Use SMTP plus SPF, DKIM and DMARC |
| Wrong package name in Module Settings | “Package not found” on account creation | Match the WHM package name exactly |
| Terminating too fast | Customers lose data, and you lose customers | Suspend first; terminate only after a long grace period |
| Default admin path | Constant login attacks | Rename admin folder and enable 2FA |
WHMCS Included at iWebVault
Full disclosure: this is our blog. You don’t need to buy a WHMCS license separately with us:
- cPanel and DirectAdmin reseller: WHMCS free on Reseller 2, 3 and 4 ($9.99/mo add-on on Reseller 1)
- Offshore VPS: fully managed, with free WHMCS, cPanel/DirectAdmin, Softaculous, Imunify360 and LiteSpeed licenses
- Cloud Root Reseller: WHMCS included on every plan
- Every reseller plan also includes a free domain reseller account to connect to WHMCS
New to reselling? Start with our WHM reseller setup guide, then come back here to connect billing.
Frequently Asked Questions
Every 5 minutes. WHMCS uses a single cron that runs its daily and frequent tasks on schedule. Check Automation Status to confirm it’s running.
Usually because WHMCS sends with PHP mail, or the sending domain lacks SPF, DKIM and DMARC records. Switch to SMTP with a mailbox on your domain and add those records.
Yes. Paystack and Flutterwave offer WHMCS payment modules for card, bank transfer and USSD payments in Naira.
Yes. WHMCS includes a DirectAdmin module for automatic account creation, suspension and termination, just like cPanel.
Not if your provider includes one. iWebVault includes WHMCS free on Reseller 2β4, every VPS and every Cloud Root Reseller plan.
Get WHMCS free with your hosting business
Free WHMCS on Reseller 2β4, every managed VPS and Cloud Root Reseller. Offshore by default.