You log in to the admin area, and something feels off. There is a red x on the Automation Status icon. The daily cron email never showed up this morning. Maybe a client has already written in, asking where their invoice went.
That sinking feeling is familiar to a lot of WHMCS admins. The cron does its work quietly in the background. So, when it stops, nothing crashes and nothing screams at you. Things just stop happening.
Here is the good news. Cron problems look scary, but they usually trace back to a short list of causes. This guide explains those causes first, then walks through the fixes in a sensible order. The steps come from the official WHMCS documentation, plus a few notes from hosting guides and the WHMCS community. Every source is linked at the end.
Why the Cron Matters So Much
The system cron drives WHMCS automation. WHMCS describes it as the job that controls automation, including daily tasks such as generating invoices and sending email notifications. Its own guides also list processing payments, creating renewal invoices and handling overdue accounts among the daily work. Hosting guides add account suspensions and domain registrar syncing to the list.
So a broken cron is never just a technical glitch. It means late invoices, missed suspensions and silent inboxes. That is why it is worth fixing properly, instead of poking at it until the warning disappears.
Cron Job Not Running: Causes and Fix
How WHMCS Tells You Something Is Wrong
WHMCS gives you several hints when the system cron is not running normally:
- A red attention item at Configuration > System Health.
- A needs attention badge on the Automation Overview widget on the Admin Dashboard.
- A red x icon on the Automation Status icon, shown on every Admin Area page.
- A yellow or red badge on the Automation Status page.
- No daily WHMCS Cron Job Activity Email in your inbox.
Notice that last one. If the daily email goes missing, treat it as a warning, even when the dashboard looks calm.
The Usual Causes
Here is what tends to go wrong. The numbers match the fixes in the next section.
-
The cron is not running often enough: You see a warning that the system cron has not run within the past two hours. WHMCS needs
cron.phpto be invoked regularly and often. Some hosts also limit how frequently a cron job can run. -
The Time of Day hour is being missed: WHMCS runs its daily tasks during the Time of Day hour you set in Automation Settings. If your server does not invoke the cron at least once in that hour, the daily tasks simply do not run. You may get an email titled WHMCS Daily System Cron Attention Needed. The example in the docs mentions 9 am.
-
The path to
cron.phpis wrong: You see No input file specified, often arriving by email from your server's cron daemon every five minutes. Or you see Could not open input file:/path/to/crons/cron.php. Both mean the cron job is looking forcron.phpwhere it does not exist. -
The cron uses a different PHP version: You see a Cron PHP Version Mismatch warning at Configuration > System Health. The
php.inithat runs your system cron belongs to a different PHP version than the one your web server uses. -
The timezones do not match: The cron runs at a time you did not choose, timestamps look odd, or a frequency warning appears even though the cron setup looks right. Your WHMCS timezone comes from the server clock and the PHP timezone setting. Trouble starts when the web server's PHP and the cron engine's PHP disagree. On shared hosting, UTC is often set in a PHP configuration that is separate from the one you use on the command line.
-
The memory limit is too low: The cron stops with this error:
textFatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 20480 bytes)
That number is 32 MB. The system ends the cron because it passed the memory_limit. In some cases, the cron fails to run at all.
-
The cURL extension is missing: You see Error: Call to undefined function
curl_init(). PHP has no cURL extension, or the function is disabled. -
The cron freezes at the Usage Stats Update: The Activity Log has cron entries, but nothing after Cron Job: Running Usage Stats Update. At this stage, WHMCS connects to your hosting servers to collect usage data. If it cannot connect, the cron waits until PHP's max_execution_time runs out. The cause is a misconfigured server in WHMCS, or a firewall or network issue between WHMCS and the server.
-
The cron crawls at Executing System Queue: The daily run takes ages at that step. The usual cause is the database backup. Zipping a backup takes longer on resource-restricted servers, and it gets slower as your database grows.
-
It works by hand but fails now and then: This one is annoying. The manual run is perfect, yet some scheduled runs still fail.
-
Unable to communicate with the WHMCS installation: WHMCS lists this error for
cron.php,pop.phporpipe.phpfiles that cannot reach the installation.
Still working through this server issue?
Send the symptoms, error output, and what you have already tried. We can work with Hostaccent services or infrastructure hosted with another provider.
How to Fix It
Step 1: Read the Activity Log
Before changing anything, find out where the cron is failing.
- Go to Configuration > System Logs. On WHMCS 7.10 and earlier, it is Utilities > Logs > Activity Log.
- Click Search/Filter.
- Type Cron Job: in the Description field.
- Click Filter Log.
You should see entries beginning with Cron Job every day. The last entry each day should be Cron Job: Completed. Two things can happen here:
- No cron entries at all: Your automation cron job is not configured correctly. Start with fixes 1 to 3 below.
- Entries, but no Cron Job: Completed at the end. The cron starts but never finishes. The last entry tells you where it breaks.
Step 2: Run the cron by hand and watch the output
The log tells you where. Running the cron manually often tells you why.
- Open the Other tab at Configuration > System Settings > General Settings. Enable Display Errors and save.
- Go to Configuration > System Settings > Automation Settings and click the Cron Status badge.
- Copy the Cron Command.
- Paste it into your server's command line.
You will get something like this:
bashphp -q /home/example/public_html/whmcs/crons/cron.php all -F -vvv
A healthy run ends with a green [OK] Completed message. Anything else on screen is a clue. WHMCS support also asks for the full output if you open a ticket, so copy it somewhere safe.
Older advice says you can open cron.php in your browser. The current 9.0 documentation says WHMCS blocks direct HTTP requests to crons/cron.php by default and returns a 403 Access Denied response. So the command line is the dependable route. If the manual run finishes cleanly but the cron still fails sometimes, jump to fix 10.
Fix 1: Run the cron every five minutes
The recommendation is every five minutes. If your host limits cron frequency, pick the highest frequency available. Once per hour is the minimum.
In cPanel:
- Open Cron Jobs and add or edit the cron job for
cron.php. - In Common Settings, choose Once Per Five Minutes.
- Paste the cron command into Command.
- Click Add New Cron Job (or Edit Line if you are editing).
Without a control panel, add a crontab entry like this:
bash*/5 * * * * php -q /path/to/home/public_html/whmcspath/crons/cron.php
DirectAdmin users, take note. You must include the full path to the PHP binary in the cron command. And always copy the exact command from the Cron Command box in Automation Settings, instead of typing it from memory.
Fix 2: Hit the Time of Day hour
Run the cron every five minutes, and it will always land inside that hour. In the control panel, set Minute to */5 and leave Hour, Day, Month and Weekday as *. Then be patient. You may still get extra copies of the attention email until the next Time of Day hour, which can take up to 24 hours.
Fix 3: Correct the path to cron.php
Open your cron job configuration and correct the path. If the path looks right, confirm that the file is actually there.
Did you move your crons directory for security reasons? Then check the config files too. A Liquid Web guide points to two files that must agree with each other: the crons config.php and the main configuration.php. It also says those directories should be owned by the cPanel user with at least 750 permissions.
Fix 4: Match the PHP versions
WHMCS says the web server and the cron must use the same PHP version. To sort it out:
- Go to Utilities > System > PHP Info.
- Look at the Loaded Configuration File path. That is the web server's
php.ini, and the path usually shows the version. For example,/opt/cpanel/ea-php83/root/etc/php.inimeans PHP 8.3. - Follow the WHMCS steps to find the cron's
php.inifile, then compare the two. - Change whichever side is wrong. On cPanel and WHM, MultiPHP is the place to do it.
A WHMCS staff reply on the community forum adds another option. Update the cron command so it explicitly calls the same PHP version as the web server.
Don't panic if the warning sticks around. WHMCS caches the result of this check and only updates it after the daily cron tasks run.
Fix 5: Match the timezones
Check the web server's timezone at Utilities > System > PHP Info. Then check the cron's timezone over SSH:
bashphp -i | grep "date.timezone"
If they differ, ask your host to align them. Or set the timezone right inside the cron command:
bashphp -d date.timezone='Example-Timezone' /path/to/crons/cron.php
Swap in your real timezone name, of course.
Fix 6: Raise the memory limit
Check the limit with:
bashphp -i | grep "memory_limit"
Raise it to at least 64 MB. The recommended value is 128 MB. Your host or system administrator can help with that. Or set it directly in the cron command:
bashphp -d memory_limit=128M -q /path/to/whmcs/crons/cron.php
Fix 7: Install and enable cURL
Run php -m to see what is loaded. Then install the extension and make sure the function is enabled. WHMCS also lists curl_setopt, curl_exec, curl_getinfo, curl_error and curl_close as functions that must be available.
Fix 8: Sort out the server connection
Check your servers at Configuration > System Settings > Servers. If the test fails on a correctly set up server, talk to your host or system administrator about firewall or network rules. As a workaround, WHMCS says you can turn off Update Usage Statistics in Automation Settings.
Fix 9: Lighten the backup load
WHMCS suggests two things:
- Run the available system cleanup tasks to trim the database.
- Go to Configuration > System Settings > Database Backups and deactivate FTP/SFTP Backups and Daily Email Backups.
If you are on a cPanel and WHM server, WHMCS recommends cPanel backups instead.
Fix 10: Log the cron output to a file
WHMCS recommends logging the cron's output. On cPanel and WHM, it goes like this:
- Enable Display Errors in the Other tab of General Settings.
- In cPanel, go to Advanced > Cron Jobs and click Edit on the
cron.phpjob. - Add this to the end of the command line:
-vvv >> crondebug.txt - Click Edit Line.
- Wait until the Time of Day window has passed. If Time of Day is 1pm, wait until 2pm.
- Open
crondebug.txtin your account's root directory.
The file holds entries from every cron.php run. Look for the daily automation tasks, which show up as 24 or more tasks queued for execution. Then check whether that run ended in an error or a success.
Fix 11: Check the WHMCS path setting
An older WHMCS troubleshooting page advises making sure the $whmcspath value is the full system path to your WHMCS directory.
After the Fix: How Long Until the Warnings Clear?
Waiting is the hard part. Here is what WHMCS says to expect:
- If warnings persist five minutes after a correction, go back and check the Activity Log again.
- A frequency warning should clear within about 10 minutes, once
cron.phpruns on the new schedule. - A daily cron warning can take up to 24 hours, because it clears when the cron runs during the Time of Day hour.
- The PHP mismatch warning waits for the next daily cron run.
Quick Checklist
- Check the Activity Log for Cron Job: Completed.
- Run the Cron Command by hand with Display Errors on.
- Confirm the cron runs every five minutes, or at least once per hour.
- Confirm the path to
cron.phpis valid and the file exists. - Make the web server and cron PHP versions match.
- Make the web server and cron timezones match.
- Set
memory_limitto 64 MB at minimum, and 128 MB if you can. - Make sure cURL is installed and enabled.
- If it hangs, check your servers and your backup settings.
Conclusion
A silent cron is stressful, but it is rarely a mystery for long. Start with the log, run the command by hand, and let the error message point the way. Most of the time, the fix is one line in a cron job or one setting in PHP.
And if you get stuck, WHMCS technical support can help. Just include the full output from your command line run.
Frequently Asked Questions
Does this guide apply to WHMCS Cloud?
No. WHMCS Cloud handles automation and system cron configuration for you automatically. This guide is for self-hosted installations.
How often should the WHMCS cron run?
WHMCS recommends every five minutes. If your host limits frequency, use the highest available, and run it at least once per hour.
How do I know the cron finished properly?
In the Activity Log, the last cron entry each day should read Cron Job: Completed. When you run it by hand, the output should end with a green [OK] Completed.
Where do I find the exact cron command?
Go to Configuration > System Settings > Automation Settings. The command appears under Cron Command, and you can also reach it through the Cron Status badge.
Can I just open cron.php in my browser to test it?
Older docs suggested it. The current 9.0 documentation says WHMCS blocks direct HTTP requests to crons/cron.php by default and returns a 403 Access Denied response. Use the command line instead.
What memory limit does the cron need?
WHMCS says to use 64 MB at minimum and 128 MB if possible. A 32 MB limit triggers the fatal memory error.
Why is the warning still showing after I fixed the problem?
Some warnings wait for the next run. The PHP mismatch check updates only after the daily cron tasks execute. Time of Day emails can continue for up to 24 hours.
Who should I contact if nothing works?
WHMCS technical support. Include the full output from running the cron command by hand.












Discussion
Have a question or tip about this topic? Share it below — your comment will appear after review.