logo

How to Set Up WHMCS Cron Jobs Correctly (And Avoid Costly Mistakes)

Host Modules
April 17, 2026 2 min read 10 views

Introduction

Much of WHMCS automation depends on something most hosting business owners set up once and then forget: the cron job. Get it right and invoices generate automatically, renewal reminders send on schedule, and domains register without manual intervention. Get it wrong and your billing operation silently grinds to a halt.

What Does the WHMCS Cron Job Do?

The WHMCS cron job is a scheduled task that runs the automation engine at regular intervals. Each time it runs, it:

  • Generates invoices for upcoming renewals
  • Sends payment due and overdue reminders
  • Suspends and terminates services for non-payment
  • Registers, renews, and transfers domains
  • Processes automatic credit card charges
  • Runs domain WHOIS updates

Recommended Cron Job Frequency

WHMCS recommends running the cron job once every five minutes. Running it less frequently causes delays in all automation functions.

The Correct WHMCS Cron Command

To run every five minutes:

*/5 * * * * /usr/local/bin/php -q /home/yourusername/public_html/crons/cron.php > /dev/null 2>&1

Replace the PHP path and file path with your actual server values. Use which php via SSH to find your PHP CLI path.

Setting Up in cPanel

  1. Log into cPanel and navigate to Cron Jobs
  2. Select "Once Per 5 Minutes" from Common Settings
  3. Enter your cron command and click Add New Cron Job

Common Mistakes

  • Wrong PHP version: The default PHP CLI may be outdated. Confirm PHP 7.4+ is used.
  • Incorrect file path: A typo causes silent failure. Verify the path first via SSH.
  • Running too infrequently: Once per hour causes significant automation delays.
  • Not monitoring output: Initially log output to a file to detect errors.

How to Verify Your Cron Is Running

In WHMCS admin, go to Utilities > Logs > Cron Log. You should see entries every five minutes. Empty or stale logs mean your cron is not running.

Conclusion

The WHMCS cron job is the heartbeat of your billing automation. Set it up correctly, verify it is running, and check the cron log periodically. A silent cron failure can cost you revenue through missed renewals and unprocessed payments.

Blog Search
Popular Tags
2FA WHMCS account verification authenticator app Bangladeshi hosting market bKash WHMCS Black Friday hosting cart abandonment checkout optimisation content marketing hosting conversion rate optimisation email deliverability email verification fake accounts hosting account security hosting blog strategy hosting brand identity hosting business hosting business Bangladesh hosting business growth hosting business launch hosting churn rate hosting company BD hosting customer experience hosting customer retention hosting dark mode hosting email design hosting marketing hosting payment methods hosting reseller business hosting seasonal sale hosting SEO hosting SEO guide hosting theme hosting website platform hosting website SEO install WHMCS mobile hosting portal order form order form comparison reduce churn WHMCS reduce support tickets reseller hosting setup single step checkout start hosting business WHMCS two-factor authentication WHMCS WHMCS 2FA WHMCS addons WHMCS AI domain suggestions WHMCS AI namespinning WHMCS automation WHMCS Bangladesh WHMCS beginners guide WHMCS billing automation WHMCS bKash WHMCS blog WHMCS branding WHMCS caching WHMCS checkout WHMCS checkout abandonment WHMCS client area WHMCS client area customisation WHMCS client area dark mode WHMCS client area mobile WHMCS client area UX WHMCS colours WHMCS conversion WHMCS coupon codes WHMCS cron configuration WHMCS cron job WHMCS custom emails WHMCS customer loyalty WHMCS customisation WHMCS dark mode WHMCS design WHMCS domain search WHMCS email templates WHMCS email verification WHMCS extensions WHMCS hosting business WHMCS installation WHMCS launch checklist WHMCS licence WHMCS licensing WHMCS logo WHMCS meta tags WHMCS mobile WHMCS multi domain WHMCS multi order form WHMCS new features WHMCS order form WHMCS owned licence WHMCS page speed WHMCS payment gateways WHMCS PayPal WHMCS performance WHMCS product page WHMCS promotions WHMCS reseller hosting WHMCS responsive design WHMCS search engine optimisation WHMCS security WHMCS SEO WHMCS server requirements WHMCS setup WHMCS setup checklist WHMCS single domain WHMCS single order form WHMCS slow WHMCS speed optimisation WHMCS Stripe WHMCS support tickets WHMCS theme WHMCS theme dark mode WHMCS UX WHMCS UX mobile WHMCS vs WordPress WHMCS website builder WHMCS WHM setup WordPress hosting site