{"id":1524,"date":"2026-08-03T14:07:07","date_gmt":"2026-08-03T14:07:07","guid":{"rendered":"https:\/\/www.jolt.co.uk\/help\/?p=1524"},"modified":"2026-08-03T14:07:08","modified_gmt":"2026-08-03T14:07:08","slug":"troubleshooting-cron-jobs-in-cpanel-common-fixes-setup","status":"publish","type":"post","link":"https:\/\/www.jolt.co.uk\/help\/troubleshooting-cron-jobs-in-cpanel-common-fixes-setup\/","title":{"rendered":"Troubleshooting Cron Jobs in cPanel: Common Fixes &amp; Setup"},"content":{"rendered":"\n<p>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).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"common-cron-job-pitfalls-how-to-fix-them\">Common Cron Job Pitfalls &amp; How to Fix Them<\/h3>\n\n\n\n<p>If your scheduled cPanel cron jobs are failing to run or returning errors, follow these 4 steps to resolve the issue:<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"1-always-use-absolute-paths\"><strong>1. Always Use Absolute Paths<\/strong><\/h4>\n\n\n\n<p>Never use short commands like <code>php script.php<\/code>. Systems require the full file path to execute correctly.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u274c <strong>Wrong:<\/strong> <code>php \/home\/user\/public_html\/cron.php<\/code><\/li>\n\n\n\n<li>\u2705 <strong>Correct:<\/strong> <code>\/usr\/local\/bin\/php \/home\/user\/public_html\/cron.php<\/code><\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"2-select-the-correct-php-version\"><strong>2. Select the Correct PHP Version<\/strong><\/h4>\n\n\n\n<p>If your site uses a specific PHP version (e.g., PHP 8.1 or 8.2), point directly to that binary path:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>\/usr\/local\/bin\/ea-php81 \/home\/user\/public_html\/cron.php<\/code><\/li>\n\n\n\n<li><code>\/usr\/local\/bin\/ea-php82 \/home\/user\/public_html\/cron.php<\/code><\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"3-capture-output-to-a-log-file-for-debugging\"><strong>3. Capture Output to a Log File for Debugging<\/strong><\/h4>\n\n\n\n<p>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:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&gt;&gt; \/home\/user\/cron_debug.log 2&gt;&amp;1\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"4-check-file-permissions\"><strong>4. Check File Permissions<\/strong><\/h4>\n\n\n\n<p>Ensure the script file has the correct permissions (typically <strong>0644<\/strong> for standard scripts or <strong>0755<\/strong> if executable).<\/p>\n\n\n\n<p>If you&#8217;re still experiencing issues after trying the steps above, please contact our support team and we&#8217;ll be happy to help.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &amp; How to Fix Them If your scheduled cPanel cron jobs are failing to run&hellip;<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-1524","post","type-post","status-publish","format-standard","hentry","category-cpanel"],"_links":{"self":[{"href":"https:\/\/www.jolt.co.uk\/help\/wp-json\/wp\/v2\/posts\/1524","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jolt.co.uk\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jolt.co.uk\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jolt.co.uk\/help\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jolt.co.uk\/help\/wp-json\/wp\/v2\/comments?post=1524"}],"version-history":[{"count":1,"href":"https:\/\/www.jolt.co.uk\/help\/wp-json\/wp\/v2\/posts\/1524\/revisions"}],"predecessor-version":[{"id":1534,"href":"https:\/\/www.jolt.co.uk\/help\/wp-json\/wp\/v2\/posts\/1524\/revisions\/1534"}],"wp:attachment":[{"href":"https:\/\/www.jolt.co.uk\/help\/wp-json\/wp\/v2\/media?parent=1524"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jolt.co.uk\/help\/wp-json\/wp\/v2\/categories?post=1524"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jolt.co.uk\/help\/wp-json\/wp\/v2\/tags?post=1524"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}