{"id":355,"date":"2026-11-17T13:05:50","date_gmt":"2026-11-17T20:05:50","guid":{"rendered":"https:\/\/hostandtech.com\/kb\/?p=355"},"modified":"2026-11-17T13:05:50","modified_gmt":"2026-11-17T20:05:50","slug":"how-to-set-up-cron-job-cpanel","status":"publish","type":"post","link":"https:\/\/hostandtech.com\/kb\/shared\/how-to-set-up-cron-job-cpanel\/","title":{"rendered":"How to Set Up a Cron Job in cPanel (With Commands That Actually Run)"},"content":{"rendered":"<h2>Overview<\/h2>\n<p>To set up a cron job in cPanel, open <strong>Advanced &gt; Cron Jobs<\/strong>, choose a schedule, and enter a command that uses full paths, for example <code class=\"\" data-line=\"\">\/usr\/local\/bin\/php \/home\/username\/public_html\/cron.php<\/code>. Click <strong>Add New Cron Job<\/strong> and it runs on the server&#8217;s clock from then on.<\/p>\n<p>This guide is for shared hosting customers who need a script to run on its own: a WordPress or WooCommerce scheduler, a Laravel <code class=\"\" data-line=\"\">schedule:run<\/code>, a nightly backup or a cleanup script. Most cron jobs that &#8220;don&#8217;t work&#8221; fail for one of four reasons: a relative path, the wrong PHP version, the server&#8217;s time zone, or output that nobody reads. Each one is covered below, with commands you can paste and adjust.<\/p>\n<h2>Prerequisites<\/h2>\n<ul>\n<li>A cPanel login for the account that owns the script.<\/li>\n<li>The full path to the script. Your home directory is shown under <strong>General Information<\/strong> on the right of the cPanel home page (usually <code class=\"\" data-line=\"\">\/home\/username<\/code>).<\/li>\n<li>The PHP version the site uses, from <strong>Software &gt; MultiPHP Manager<\/strong>, if the script is PHP.<\/li>\n<li>Optional but handy: <strong>Advanced &gt; Terminal<\/strong> or SSH, to test the command by hand before scheduling it.<\/li>\n<\/ul>\n<h2>Step-by-step: create a cron job in cPanel<\/h2>\n<h3>Step 1: Find the right PHP binary and paths<\/h3>\n<p>Cron runs with a minimal environment and starts in your home directory, so every program and file needs its full path. For PHP there are two choices:<\/p>\n<ul>\n<li><code class=\"\" data-line=\"\">\/usr\/local\/bin\/php<\/code> runs the server&#8217;s default PHP version.<\/li>\n<li><code class=\"\" data-line=\"\">\/usr\/local\/bin\/ea-php83<\/code> (or ea-php81, ea-php82 and so on) runs one specific version. Use this when your site runs a different version from the server default, which is common after an upgrade in <a href=\"https:\/\/hostandtech.com\/kb\/cpanel\/how-to-change-php-version-cpanel\/\">MultiPHP Manager<\/a>.<\/li>\n<\/ul>\n<p>The Cron Jobs page lists &#8220;PHP command examples&#8221; with your username already filled in. In Terminal you can confirm what&#8217;s installed and which version each binary runs:<\/p>\n<div class='ht-code-snippet'><button class='ht-code-snippet__copy' onclick='htCopyCode(\"code-block-1\")' type='button' aria-label='Copy code'><svg class='ht-copy-icon' viewBox='0 0 32 32' width='16' height='16' fill='currentColor'><path d='M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z'><\/path><path d='M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z'><\/path><\/svg><svg class='ht-check-icon' viewBox='0 0 32 32' width='16' height='16' fill='currentColor'><path d='M13,24l-9-9,1.414-1.414L13,21.171,26.586,7.586,28,9Z'><\/path><\/svg><\/button><span class='ht-code-snippet__feedback'>Copied to clipboard<\/span><\/p>\n<pre class='ht-code-snippet__code' id='code-block-1'><code class=\"\" data-line=\"\">ls \/usr\/local\/bin\/ | grep ea-php\n\/usr\/local\/bin\/ea-php83 -v\npwd<\/code><\/pre>\n<\/div>\n<p>Test the full command by hand before you schedule it. If it fails in Terminal, it fails in cron too, and the error is far easier to read here.<\/p>\n<h3>Step 2: Set the cron email<\/h3>\n<p>At the top of the Cron Jobs page, enter an address in <strong>Cron Email<\/strong> and click <strong>Update Email<\/strong>. Cron mails anything the command prints, including errors. Keep this on while you test a new job, then silence that job (Step 4) so you don&#8217;t get an email every 15 minutes.<\/p>\n<h3>Step 3: Choose the schedule<\/h3>\n<p>Pick an entry from <strong>Common Settings<\/strong>, or fill in the five fields yourself. They are read left to right as minute, hour, day of month, month and weekday:<\/p>\n<figure class=\"wp-block-image\"><img src=\"https:\/\/hostandtech.com\/kb\/wp-content\/uploads\/2026\/11\/cron-schedule-fields-explained.webp\" alt=\"The five cron schedule fields, minute, hour, day of month, month and weekday, with example values\" width=\"1000\" height=\"560\" loading=\"lazy\" decoding=\"async\"><figcaption>Read a cron schedule left to right: minute, hour, day of month, month, weekday.<\/figcaption><\/figure>\n<table>\n<thead>\n<tr>\n<th>Schedule<\/th>\n<th>Fields<\/th>\n<th>Runs<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Every 15 minutes<\/td>\n<td><code class=\"\" data-line=\"\">*\/15 * * * *<\/code><\/td>\n<td>:00, :15, :30, :45<\/td>\n<\/tr>\n<tr>\n<td>Every 6 hours<\/td>\n<td><code class=\"\" data-line=\"\">0 *\/6 * * *<\/code><\/td>\n<td>00:00, 06:00, 12:00, 18:00<\/td>\n<\/tr>\n<tr>\n<td>Daily at 3:00<\/td>\n<td><code class=\"\" data-line=\"\">0 3 * * *<\/code><\/td>\n<td>Once a day, server time<\/td>\n<\/tr>\n<tr>\n<td>Mondays at 2:30<\/td>\n<td><code class=\"\" data-line=\"\">30 2 * * 1<\/code><\/td>\n<td>Weekday 0 or 7 is Sunday<\/td>\n<\/tr>\n<tr>\n<td>First of the month<\/td>\n<td><code class=\"\" data-line=\"\">0 0 1 * *<\/code><\/td>\n<td>Midnight on the 1st<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Two things trip people up. The times are the <strong>server&#8217;s<\/strong> time zone, not yours: run <code class=\"\" data-line=\"\">date<\/code> in Terminal to see it and adjust the hour. And if you fill in both day of month and weekday, cron runs when <em>either<\/em> matches. <code class=\"\" data-line=\"\">0 3 1 * 1<\/code> runs on the 1st of the month and again on every Monday.<\/p>\n<h3>Step 4: Enter the command<\/h3>\n<p>Paste the command into the <strong>Command<\/strong> field. Some common ones:<\/p>\n<p><strong>A PHP script, quiet unless it fails to start:<\/strong><\/p>\n<div class='ht-code-snippet'><button class='ht-code-snippet__copy' onclick='htCopyCode(\"code-block-2\")' type='button' aria-label='Copy code'><svg class='ht-copy-icon' viewBox='0 0 32 32' width='16' height='16' fill='currentColor'><path d='M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z'><\/path><path d='M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z'><\/path><\/svg><svg class='ht-check-icon' viewBox='0 0 32 32' width='16' height='16' fill='currentColor'><path d='M13,24l-9-9,1.414-1.414L13,21.171,26.586,7.586,28,9Z'><\/path><\/svg><\/button><span class='ht-code-snippet__feedback'>Copied to clipboard<\/span><\/p>\n<pre class='ht-code-snippet__code' id='code-block-2'><code class=\"\" data-line=\"\">\/usr\/local\/bin\/ea-php83 \/home\/username\/public_html\/cron.php &gt;\/dev\/null 2&gt;&amp;1<\/code><\/pre>\n<\/div>\n<p><strong>A PHP script with its output saved to a log<\/strong> (better than email for anything that runs often):<\/p>\n<div class='ht-code-snippet'><button class='ht-code-snippet__copy' onclick='htCopyCode(\"code-block-3\")' type='button' aria-label='Copy code'><svg class='ht-copy-icon' viewBox='0 0 32 32' width='16' height='16' fill='currentColor'><path d='M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z'><\/path><path d='M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z'><\/path><\/svg><svg class='ht-check-icon' viewBox='0 0 32 32' width='16' height='16' fill='currentColor'><path d='M13,24l-9-9,1.414-1.414L13,21.171,26.586,7.586,28,9Z'><\/path><\/svg><\/button><span class='ht-code-snippet__feedback'>Copied to clipboard<\/span><\/p>\n<pre class='ht-code-snippet__code' id='code-block-3'><code class=\"\" data-line=\"\">\/usr\/local\/bin\/ea-php83 \/home\/username\/public_html\/cron.php &gt;&gt; \/home\/username\/logs\/cron.log 2&gt;&amp;1<\/code><\/pre>\n<\/div>\n<p><strong>WordPress real cron.<\/strong> WordPress normally runs scheduled tasks only when someone visits, so quiet sites miss them and busy sites run them too often. Add <code class=\"\" data-line=\"\">define( &#039;DISABLE_WP_CRON&#039;, true );<\/code> to <code class=\"\" data-line=\"\">wp-config.php<\/code>, then schedule this every 15 minutes:<\/p>\n<div class='ht-code-snippet'><button class='ht-code-snippet__copy' onclick='htCopyCode(\"code-block-4\")' type='button' aria-label='Copy code'><svg class='ht-copy-icon' viewBox='0 0 32 32' width='16' height='16' fill='currentColor'><path d='M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z'><\/path><path d='M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z'><\/path><\/svg><svg class='ht-check-icon' viewBox='0 0 32 32' width='16' height='16' fill='currentColor'><path d='M13,24l-9-9,1.414-1.414L13,21.171,26.586,7.586,28,9Z'><\/path><\/svg><\/button><span class='ht-code-snippet__feedback'>Copied to clipboard<\/span><\/p>\n<pre class='ht-code-snippet__code' id='code-block-4'><code class=\"\" data-line=\"\">cd \/home\/username\/public_html &amp;&amp; \/usr\/local\/bin\/ea-php83 wp-cron.php &gt;\/dev\/null 2&gt;&amp;1<\/code><\/pre>\n<\/div>\n<p><strong>Laravel&#8217;s scheduler<\/strong>, every minute (<code class=\"\" data-line=\"\">* * * * *<\/code>):<\/p>\n<div class='ht-code-snippet'><button class='ht-code-snippet__copy' onclick='htCopyCode(\"code-block-5\")' type='button' aria-label='Copy code'><svg class='ht-copy-icon' viewBox='0 0 32 32' width='16' height='16' fill='currentColor'><path d='M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z'><\/path><path d='M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z'><\/path><\/svg><svg class='ht-check-icon' viewBox='0 0 32 32' width='16' height='16' fill='currentColor'><path d='M13,24l-9-9,1.414-1.414L13,21.171,26.586,7.586,28,9Z'><\/path><\/svg><\/button><span class='ht-code-snippet__feedback'>Copied to clipboard<\/span><\/p>\n<pre class='ht-code-snippet__code' id='code-block-5'><code class=\"\" data-line=\"\">cd \/home\/username\/myapp &amp;&amp; \/usr\/local\/bin\/ea-php83 artisan schedule:run &gt;\/dev\/null 2&gt;&amp;1<\/code><\/pre>\n<\/div>\n<p><strong>A dated backup archive.<\/strong> In a cron command, the percent sign has a special meaning, so each <code class=\"\" data-line=\"\">%<\/code> must be escaped with a backslash. The same command typed in Terminal doesn&#8217;t need the backslashes:<\/p>\n<div class='ht-code-snippet'><button class='ht-code-snippet__copy' onclick='htCopyCode(\"code-block-6\")' type='button' aria-label='Copy code'><svg class='ht-copy-icon' viewBox='0 0 32 32' width='16' height='16' fill='currentColor'><path d='M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z'><\/path><path d='M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z'><\/path><\/svg><svg class='ht-check-icon' viewBox='0 0 32 32' width='16' height='16' fill='currentColor'><path d='M13,24l-9-9,1.414-1.414L13,21.171,26.586,7.586,28,9Z'><\/path><\/svg><\/button><span class='ht-code-snippet__feedback'>Copied to clipboard<\/span><\/p>\n<pre class='ht-code-snippet__code' id='code-block-6'><code class=\"\" data-line=\"\">tar -czf \/home\/username\/backups\/site-$(date +&#092;%F).tar.gz -C \/home\/username public_html<\/code><\/pre>\n<\/div>\n<p>Old archives pile up and count against your disk and file limits, so delete them on a schedule as well. If you&#8217;re already near the limit, see <a href=\"https:\/\/hostandtech.com\/kb\/shared\/cpanel-inode-limit-reduce-inode-usage\/\">what inodes are and how to reduce them<\/a>.<\/p>\n<h3>Step 5: Add the job and check the list<\/h3>\n<p>Click <strong>Add New Cron Job<\/strong>. The job appears under <strong>Current Cron Jobs<\/strong>, where <strong>Edit<\/strong> and <strong>Delete<\/strong> sit next to each line. To pause a job without losing it, edit it and put <code class=\"\" data-line=\"\">#<\/code> in front of the command, or simply delete it and add it again later.<\/p>\n<h2>Verify the cron job runs<\/h2>\n<ol>\n<li>Temporarily set the schedule to every minute and log the output to a file, as in Step 4.<\/li>\n<li>After two minutes, check the log in Terminal: <code class=\"\" data-line=\"\">tail -n 20 ~\/logs\/cron.log<\/code>. No file at all usually means the path to the log folder doesn&#8217;t exist; create it with <code class=\"\" data-line=\"\">mkdir -p ~\/logs<\/code>.<\/li>\n<li>Put the real schedule back once you see the expected output.<\/li>\n<\/ol>\n<p>For WordPress, <strong>Tools &gt; Site Health<\/strong> reports when a scheduled event has failed or is late, which is a quick check that the real cron is doing its job.<\/p>\n<h2>Common Issues &amp; Troubleshooting<\/h2>\n<h3>php: command not found<\/h3>\n<p><strong>Cause:<\/strong> the command starts with plain <code class=\"\" data-line=\"\">php<\/code>, and cron&#8217;s environment doesn&#8217;t have the same search path as your Terminal session.<\/p>\n<p><strong>Fix:<\/strong> use the full binary path, <code class=\"\" data-line=\"\">\/usr\/local\/bin\/php<\/code> or <code class=\"\" data-line=\"\">\/usr\/local\/bin\/ea-php83<\/code>.<\/p>\n<h3>Could not open input file: cron.php<\/h3>\n<p><strong>Cause:<\/strong> the script path is relative. Cron starts in your home directory, not in <code class=\"\" data-line=\"\">public_html<\/code>.<\/p>\n<p><strong>Fix:<\/strong> give the full path (<code class=\"\" data-line=\"\">\/home\/username\/public_html\/cron.php<\/code>) or <code class=\"\" data-line=\"\">cd<\/code> into the folder first, as in the WordPress example. Scripts that include other files with relative paths need the <code class=\"\" data-line=\"\">cd<\/code> as well.<\/p>\n<h3>\/bin\/sh: \/home\/username\/backup.sh: Permission denied<\/h3>\n<p><strong>Cause:<\/strong> the shell script isn&#8217;t executable.<\/p>\n<p><strong>Fix:<\/strong> run <code class=\"\" data-line=\"\">chmod 750 ~\/backup.sh<\/code>, or call it through the shell: <code class=\"\" data-line=\"\">\/bin\/bash \/home\/username\/backup.sh<\/code>.<\/p>\n<h3>The job runs at the wrong time<\/h3>\n<p><strong>Cause:<\/strong> the hour is in server time. Many servers run on UTC, which is seven or eight hours ahead of Vancouver depending on daylight saving time.<\/p>\n<p><strong>Fix:<\/strong> check <code class=\"\" data-line=\"\">date<\/code> in Terminal and shift the hour field. Remember that a UTC server doesn&#8217;t move its clock for daylight saving time, so a job at 10:00 UTC runs at 2 a.m. or 3 a.m. Pacific depending on the season.<\/p>\n<h3>Runs overlap and the site shows 508 errors<\/h3>\n<p><strong>Cause:<\/strong> a job scheduled every minute sometimes takes longer than a minute, so copies stack up and use your account&#8217;s process and CPU limits.<\/p>\n<p><strong>Fix:<\/strong> wrap the command in <code class=\"\" data-line=\"\">flock<\/code>, which skips a run while the previous one is still going:<\/p>\n<div class='ht-code-snippet'><button class='ht-code-snippet__copy' onclick='htCopyCode(\"code-block-7\")' type='button' aria-label='Copy code'><svg class='ht-copy-icon' viewBox='0 0 32 32' width='16' height='16' fill='currentColor'><path d='M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z'><\/path><path d='M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z'><\/path><\/svg><svg class='ht-check-icon' viewBox='0 0 32 32' width='16' height='16' fill='currentColor'><path d='M13,24l-9-9,1.414-1.414L13,21.171,26.586,7.586,28,9Z'><\/path><\/svg><\/button><span class='ht-code-snippet__feedback'>Copied to clipboard<\/span><\/p>\n<pre class='ht-code-snippet__code' id='code-block-7'><code class=\"\" data-line=\"\">\/usr\/bin\/flock -n \/home\/username\/tmp\/cron.lock \/usr\/local\/bin\/ea-php83 \/home\/username\/public_html\/cron.php &gt;\/dev\/null 2&gt;&amp;1<\/code><\/pre>\n<\/div>\n<p>If 508 errors continue, read <a href=\"https:\/\/hostandtech.com\/kb\/shared\/fix-508-resource-limit-is-reached-cpanel\/\">how to find the cause of 508 Resource Limit Is Reached<\/a>. A script that fails silently will usually say why in its PHP error log; <a href=\"https:\/\/hostandtech.com\/kb\/cpanel\/how-to-enable-error-logging-cpanel\/\">enabling error logging in cPanel<\/a> shows how to turn it on.<\/p>\n<p>Cron Jobs is included on every <a href=\"https:\/\/hostandtech.com\/cloudlinux-cpanel-shared-hosting\">Host &amp; Tech cPanel hosting<\/a> plan. If you need jobs every few seconds or long-running workers, that&#8217;s a sign the app has outgrown shared hosting and belongs on a VPS.<\/p>\n<div class=\"ht-faq-section\">\n<h2>Frequently Asked Questions<\/h2>\n<div class=\"ht-faq-item\">\n<h3 class=\"ht-faq-question\">How do I run a cron job every 5 minutes in cPanel?<\/h3>\n<div class=\"ht-faq-answer\">\n<p>Set the minute field to *\/5 and leave the other four fields as *, or choose \u201cOnce Per Five Minutes\u201d from Common Settings. Use the full path to PHP and to your script in the command, and add &gt;\/dev\/null 2&gt;&amp;1 at the end if you don\u2019t want an email each time.<\/p>\n<\/div>\n<\/div>\n<div class=\"ht-faq-item\">\n<h3 class=\"ht-faq-question\">What time zone do cPanel cron jobs use?<\/h3>\n<div class=\"ht-faq-answer\">\n<p>They use the server\u2019s time zone, not the one on your computer or in WordPress. Run date in cPanel Terminal to see the server time and set the hour field to match. Servers on UTC don\u2019t change for daylight saving time.<\/p>\n<\/div>\n<\/div>\n<div class=\"ht-faq-item\">\n<h3 class=\"ht-faq-question\">How do I stop cron job emails in cPanel?<\/h3>\n<div class=\"ht-faq-answer\">\n<p>Add &gt;\/dev\/null 2&gt;&amp;1 to the end of the command for that job, or send the output to a log file instead. Clearing the Cron Email field stops the emails for every job on the account.<\/p>\n<\/div>\n<\/div>\n<div class=\"ht-faq-item\">\n<h3 class=\"ht-faq-question\">Why is my cron job not running in cPanel?<\/h3>\n<div class=\"ht-faq-answer\">\n<p>The usual causes are a relative path to PHP or the script, the wrong PHP version, a non-executable shell script, or the job running at a different hour than expected because of the server\u2019s time zone. Run the exact command in Terminal first and log the output to a file to see the error.<\/p>\n<\/div>\n<\/div>\n<div class=\"ht-faq-item\">\n<h3 class=\"ht-faq-question\">How often can a cron job run on shared hosting?<\/h3>\n<div class=\"ht-faq-answer\">\n<p>Cron can run as often as once a minute, but frequent jobs use your account\u2019s CPU and process limits. Every 5 or 15 minutes is enough for most sites, and flock stops slow runs from overlapping.<\/p>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Create a cron job in cPanel that runs first time: full PHP paths, schedule syntax, ready-made commands for WordPress, Laravel and backups, and fixes for jobs that run late, overlap or never start.<\/p>\n","protected":false},"author":1,"featured_media":346,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[77],"tags":[40,692,53,8,92],"class_list":["post-355","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-shared","tag-cpanel","tag-cron-jobs","tag-php","tag-shared-hosting","tag-wordpress"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Set Up a Cron Job in cPanel: Schedules and Commands<\/title>\n<meta name=\"description\" content=\"Set up a cron job in cPanel step by step: the right PHP path, schedule syntax, WordPress and Laravel commands, logging, and fixes when the job won&#039;t run.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hostandtech.com\/kb\/shared\/how-to-set-up-cron-job-cpanel\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Set Up a Cron Job in cPanel: Schedules and Commands\" \/>\n<meta property=\"og:description\" content=\"Set up a cron job in cPanel step by step: the right PHP path, schedule syntax, WordPress and Laravel commands, logging, and fixes when the job won&#039;t run.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hostandtech.com\/kb\/shared\/how-to-set-up-cron-job-cpanel\/\" \/>\n<meta property=\"og:site_name\" content=\"Host And Tech knowledge base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/stshostandtech\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-17T20:05:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/hostandtech.com\/kb\/wp-content\/uploads\/2026\/11\/how-to-set-up-cron-job-cpanel.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@stshostandtech\" \/>\n<meta name=\"twitter:site\" content=\"@stshostandtech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/shared\\\/how-to-set-up-cron-job-cpanel\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/shared\\\/how-to-set-up-cron-job-cpanel\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#\\\/schema\\\/person\\\/b6fa79c48ddaba71af32e395c5b017ee\"},\"headline\":\"How to Set Up a Cron Job in cPanel (With Commands That Actually Run)\",\"datePublished\":\"2026-11-17T20:05:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/shared\\\/how-to-set-up-cron-job-cpanel\\\/\"},\"wordCount\":1403,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/shared\\\/how-to-set-up-cron-job-cpanel\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/how-to-set-up-cron-job-cpanel.webp\",\"keywords\":[\"cPanel\",\"cron jobs\",\"PHP\",\"shared hosting\",\"wordpress\"],\"articleSection\":[\"Shared Hosting\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/hostandtech.com\\\/kb\\\/shared\\\/how-to-set-up-cron-job-cpanel\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/shared\\\/how-to-set-up-cron-job-cpanel\\\/\",\"url\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/shared\\\/how-to-set-up-cron-job-cpanel\\\/\",\"name\":\"How to Set Up a Cron Job in cPanel: Schedules and Commands\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/shared\\\/how-to-set-up-cron-job-cpanel\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/shared\\\/how-to-set-up-cron-job-cpanel\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/how-to-set-up-cron-job-cpanel.webp\",\"datePublished\":\"2026-11-17T20:05:50+00:00\",\"description\":\"Set up a cron job in cPanel step by step: the right PHP path, schedule syntax, WordPress and Laravel commands, logging, and fixes when the job won't run.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/shared\\\/how-to-set-up-cron-job-cpanel\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/hostandtech.com\\\/kb\\\/shared\\\/how-to-set-up-cron-job-cpanel\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/shared\\\/how-to-set-up-cron-job-cpanel\\\/#primaryimage\",\"url\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/how-to-set-up-cron-job-cpanel.webp\",\"contentUrl\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/how-to-set-up-cron-job-cpanel.webp\",\"width\":1200,\"height\":630,\"caption\":\"Cron job in cPanel: schedule *\\\/15 3 * * 1 with minute, hour, day, month and weekday fields labelled\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/shared\\\/how-to-set-up-cron-job-cpanel\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Set Up a Cron Job in cPanel (With Commands That Actually Run)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/\",\"name\":\"Host And Tech knowledge base\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#organization\",\"name\":\"Host And Tech knowledge base\",\"url\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/logo-dark.png\",\"contentUrl\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/logo-dark.png\",\"width\":1134,\"height\":395,\"caption\":\"Host And Tech knowledge base\"},\"image\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/stshostandtech\",\"https:\\\/\\\/x.com\\\/stshostandtech\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#\\\/schema\\\/person\\\/b6fa79c48ddaba71af32e395c5b017ee\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/aa1edac8bbadb442e059a5b65ad45a3b2e3ce689202373b96e3e567517ae4b39?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/aa1edac8bbadb442e059a5b65ad45a3b2e3ce689202373b96e3e567517ae4b39?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/aa1edac8bbadb442e059a5b65ad45a3b2e3ce689202373b96e3e567517ae4b39?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\\\/\\\/hostandtech.com\\\/kb\"],\"url\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/author\\\/admin_fjj7qydm\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Set Up a Cron Job in cPanel: Schedules and Commands","description":"Set up a cron job in cPanel step by step: the right PHP path, schedule syntax, WordPress and Laravel commands, logging, and fixes when the job won't run.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/hostandtech.com\/kb\/shared\/how-to-set-up-cron-job-cpanel\/","og_locale":"en_US","og_type":"article","og_title":"How to Set Up a Cron Job in cPanel: Schedules and Commands","og_description":"Set up a cron job in cPanel step by step: the right PHP path, schedule syntax, WordPress and Laravel commands, logging, and fixes when the job won't run.","og_url":"https:\/\/hostandtech.com\/kb\/shared\/how-to-set-up-cron-job-cpanel\/","og_site_name":"Host And Tech knowledge base","article_publisher":"https:\/\/www.facebook.com\/stshostandtech","article_published_time":"2026-11-17T20:05:50+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/hostandtech.com\/kb\/wp-content\/uploads\/2026\/11\/how-to-set-up-cron-job-cpanel.webp","type":"image\/webp"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@stshostandtech","twitter_site":"@stshostandtech","twitter_misc":{"Written by":"admin","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/hostandtech.com\/kb\/shared\/how-to-set-up-cron-job-cpanel\/#article","isPartOf":{"@id":"https:\/\/hostandtech.com\/kb\/shared\/how-to-set-up-cron-job-cpanel\/"},"author":{"name":"admin","@id":"https:\/\/hostandtech.com\/kb\/#\/schema\/person\/b6fa79c48ddaba71af32e395c5b017ee"},"headline":"How to Set Up a Cron Job in cPanel (With Commands That Actually Run)","datePublished":"2026-11-17T20:05:50+00:00","mainEntityOfPage":{"@id":"https:\/\/hostandtech.com\/kb\/shared\/how-to-set-up-cron-job-cpanel\/"},"wordCount":1403,"commentCount":0,"publisher":{"@id":"https:\/\/hostandtech.com\/kb\/#organization"},"image":{"@id":"https:\/\/hostandtech.com\/kb\/shared\/how-to-set-up-cron-job-cpanel\/#primaryimage"},"thumbnailUrl":"https:\/\/hostandtech.com\/kb\/wp-content\/uploads\/2026\/11\/how-to-set-up-cron-job-cpanel.webp","keywords":["cPanel","cron jobs","PHP","shared hosting","wordpress"],"articleSection":["Shared Hosting"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/hostandtech.com\/kb\/shared\/how-to-set-up-cron-job-cpanel\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/hostandtech.com\/kb\/shared\/how-to-set-up-cron-job-cpanel\/","url":"https:\/\/hostandtech.com\/kb\/shared\/how-to-set-up-cron-job-cpanel\/","name":"How to Set Up a Cron Job in cPanel: Schedules and Commands","isPartOf":{"@id":"https:\/\/hostandtech.com\/kb\/#website"},"primaryImageOfPage":{"@id":"https:\/\/hostandtech.com\/kb\/shared\/how-to-set-up-cron-job-cpanel\/#primaryimage"},"image":{"@id":"https:\/\/hostandtech.com\/kb\/shared\/how-to-set-up-cron-job-cpanel\/#primaryimage"},"thumbnailUrl":"https:\/\/hostandtech.com\/kb\/wp-content\/uploads\/2026\/11\/how-to-set-up-cron-job-cpanel.webp","datePublished":"2026-11-17T20:05:50+00:00","description":"Set up a cron job in cPanel step by step: the right PHP path, schedule syntax, WordPress and Laravel commands, logging, and fixes when the job won't run.","breadcrumb":{"@id":"https:\/\/hostandtech.com\/kb\/shared\/how-to-set-up-cron-job-cpanel\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hostandtech.com\/kb\/shared\/how-to-set-up-cron-job-cpanel\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hostandtech.com\/kb\/shared\/how-to-set-up-cron-job-cpanel\/#primaryimage","url":"https:\/\/hostandtech.com\/kb\/wp-content\/uploads\/2026\/11\/how-to-set-up-cron-job-cpanel.webp","contentUrl":"https:\/\/hostandtech.com\/kb\/wp-content\/uploads\/2026\/11\/how-to-set-up-cron-job-cpanel.webp","width":1200,"height":630,"caption":"Cron job in cPanel: schedule *\/15 3 * * 1 with minute, hour, day, month and weekday fields labelled"},{"@type":"BreadcrumbList","@id":"https:\/\/hostandtech.com\/kb\/shared\/how-to-set-up-cron-job-cpanel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/hostandtech.com\/kb\/"},{"@type":"ListItem","position":2,"name":"How to Set Up a Cron Job in cPanel (With Commands That Actually Run)"}]},{"@type":"WebSite","@id":"https:\/\/hostandtech.com\/kb\/#website","url":"https:\/\/hostandtech.com\/kb\/","name":"Host And Tech knowledge base","description":"","publisher":{"@id":"https:\/\/hostandtech.com\/kb\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hostandtech.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/hostandtech.com\/kb\/#organization","name":"Host And Tech knowledge base","url":"https:\/\/hostandtech.com\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hostandtech.com\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/hostandtech.com\/kb\/wp-content\/uploads\/2026\/05\/logo-dark.png","contentUrl":"https:\/\/hostandtech.com\/kb\/wp-content\/uploads\/2026\/05\/logo-dark.png","width":1134,"height":395,"caption":"Host And Tech knowledge base"},"image":{"@id":"https:\/\/hostandtech.com\/kb\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/stshostandtech","https:\/\/x.com\/stshostandtech"]},{"@type":"Person","@id":"https:\/\/hostandtech.com\/kb\/#\/schema\/person\/b6fa79c48ddaba71af32e395c5b017ee","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/aa1edac8bbadb442e059a5b65ad45a3b2e3ce689202373b96e3e567517ae4b39?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/aa1edac8bbadb442e059a5b65ad45a3b2e3ce689202373b96e3e567517ae4b39?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/aa1edac8bbadb442e059a5b65ad45a3b2e3ce689202373b96e3e567517ae4b39?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/hostandtech.com\/kb"],"url":"https:\/\/hostandtech.com\/kb\/author\/admin_fjj7qydm\/"}]}},"_links":{"self":[{"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/posts\/355","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/comments?post=355"}],"version-history":[{"count":1,"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/posts\/355\/revisions"}],"predecessor-version":[{"id":360,"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/posts\/355\/revisions\/360"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/media\/346"}],"wp:attachment":[{"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/media?parent=355"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/categories?post=355"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/tags?post=355"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}