Have a Question?

If you have any question you can ask below or enter what you are looking for!

Troubleshooting Cron Jobs in cPanel: Common Fixes & Setup

A Cron Job is a automated task scheduled to run at specific intervals on the server (e.g., sending email newsletters every morning, clearing temporary caches hourly, or running WordPress maintenance tasks).

Common Cron Job Pitfalls & How to Fix Them

If your scheduled cPanel cron jobs are failing to run or returning errors, follow these 4 steps to resolve the issue:

1. Always Use Absolute Paths

Never use short commands like php script.php. Systems require the full file path to execute correctly.

  • Wrong: php /home/user/public_html/cron.php
  • Correct: /usr/local/bin/php /home/user/public_html/cron.php

2. Select the Correct PHP Version

If your site uses a specific PHP version (e.g., PHP 8.1 or 8.2), point directly to that binary path:

  • /usr/local/bin/ea-php81 /home/user/public_html/cron.php
  • /usr/local/bin/ea-php82 /home/user/public_html/cron.php

3. Capture Output to a Log File for Debugging

By default, cron jobs run silently. Append this code to the end of your command line to save execution outputs or errors into a log file:

>> /home/user/cron_debug.log 2>&1

4. Check File Permissions

Ensure the script file has the correct permissions (typically 0644 for standard scripts or 0755 if executable).

If you’re still experiencing issues after trying the steps above, please contact our support team and we’ll be happy to help.


© 2026 Jolt, a Freethought Group company encompassing Jolt, Freethought Internet, and Freethought Services. Jolt is a trading name of Host Lincoln Limited (06111631) registered in England and Wales at Unit 5, Oak House, Witham Park, Waterside South, Lincoln, LN5 7FB. Freethought® and the Freethought face are registered trademarks.
Visa MasterCard American Express PayPal Direct Debit Webmoney