{"id":10899,"date":"2025-01-17T06:14:14","date_gmt":"2025-01-17T06:14:14","guid":{"rendered":"https:\/\/www.trustedhosting.in\/blog\/?p=10899"},"modified":"2025-01-17T06:14:14","modified_gmt":"2025-01-17T06:14:14","slug":"how-to-setup-the-whmcs-cron-job","status":"publish","type":"post","link":"https:\/\/www.webystrata.com\/blog\/how-to-setup-the-whmcs-cron-job\/","title":{"rendered":"How to Setup the WHMCS Cron Job"},"content":{"rendered":"<figure id=\"attachment_10903\" aria-describedby=\"caption-attachment-10903\" style=\"width: 2560px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.trustedhosting.in\/cpanel-hosting.html\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-10903 size-full\" title=\" How to Setup the WHMCS Cron Job\" src=\"https:\/\/www.trustedhosting.in\/blog\/wp-content\/uploads\/2025\/01\/4949435_19712-scaled.jpg\" alt=\" How to Setup the WHMCS Cron Job\" width=\"2560\" height=\"2029\" srcset=\"https:\/\/www.webystrata.com\/blog\/wp-content\/uploads\/2025\/01\/4949435_19712-scaled.jpg 2560w, https:\/\/www.webystrata.com\/blog\/wp-content\/uploads\/2025\/01\/4949435_19712-300x238.jpg 300w, https:\/\/www.webystrata.com\/blog\/wp-content\/uploads\/2025\/01\/4949435_19712-1024x812.jpg 1024w, https:\/\/www.webystrata.com\/blog\/wp-content\/uploads\/2025\/01\/4949435_19712-768x609.jpg 768w, https:\/\/www.webystrata.com\/blog\/wp-content\/uploads\/2025\/01\/4949435_19712-1536x1218.jpg 1536w, https:\/\/www.webystrata.com\/blog\/wp-content\/uploads\/2025\/01\/4949435_19712-2048x1623.jpg 2048w\" sizes=\"auto, (max-width: 2560px) 100vw, 2560px\" \/><\/a><figcaption id=\"caption-attachment-10903\" class=\"wp-caption-text\">\u00a0<\/figcaption><\/figure>\n<h1>How to Setup the WHMCS Cron Job<\/h1>\n<div class=\"instructions screensteps-textblock\" tabindex=\"0\">\n<div id=\"text-content_ececa49c-850e-4f16-8d5b-cacf0bde3bc7\" class=\"text-block-content\">\n<p>You will need to configure the cron job as soon as you finish installing <a href=\"https:\/\/www.trustedhosting.in\/cpanel-hosting.html\" target=\"_blank\" rel=\"noopener\">WHMCS.<\/a> The cron job executes WHMCS&#8217;s automation tasks, like generating renewal invoices and sending payment reminders.<\/p>\n<\/div>\n<\/div>\n<div class=\"instructions screensteps-textblock screensteps-wrapper--info screensteps-wrapper\" tabindex=\"0\" role=\"status\" aria-label=\"info\">\n<div id=\"text-content_e4412e2d-f61d-4f4d-8a4e-47c03ce8a402\" class=\"text-block-content\">\n<blockquote><p>This example uses a cPanel server. For other server types, see\u00a0<a href=\"https:\/\/docs.whmcs.com\/Crons\" target=\"\" rel=\"noopener\">Crons<\/a>.<\/p><\/blockquote>\n<\/div>\n<\/div>\n<div class=\"step step-depth-1\" data-step-uuid=\"da0e455d-cc2c-40ba-93e9-decb2040ca47\">\n<h2 id=\"set-up-the-cron-job\" tabindex=\"0\">Set Up the Cron Job<\/h2>\n<div class=\"instructions screensteps-textblock\" tabindex=\"0\">\n<div id=\"text-content_da8188a0-6069-421a-a716-5ea40d9a391c\" class=\"text-block-content\">\n<p>To set up the cron job in cPanel:<\/p>\n<p>1. Log in to the cPanel account that hosts your WHMCS installation.<\/p>\n<p>2. Go to\u00a0<strong>Advanced &gt;&gt; Cron Jobs<\/strong>.<\/p>\n<div class=\"instructions screensteps-textblock\" tabindex=\"0\">\n<div id=\"text-content_f899d164-1940-4048-ae78-6492fca58c30\" class=\"text-block-content\">\n<p>3. Select\u00a0<em>Once Per Five Minutes<\/em>\u00a0for\u00a0<strong>Common Settings<\/strong>.<\/p>\n<\/div>\n<\/div>\n<div class=\"instructions screensteps-textblock screensteps-wrapper--tip screensteps-wrapper\" tabindex=\"0\" role=\"status\" aria-label=\"tip\">\n<div id=\"text-content_85fc8c44-3ceb-4507-ab9d-fc9e64a89d4c\" class=\"text-block-content\">\n<blockquote><p>WHMCS only requires one cron job for automation. We recommend running it every 5 minutes, but, if your host does not allow that frequency, you\u00a0<strong>must<\/strong>\u00a0run it at least once per hour.<\/p><\/blockquote>\n<\/div>\n<\/div>\n<div class=\"instructions screensteps-textblock\" tabindex=\"0\">\n<div id=\"text-content_043e280b-3abc-450c-abf5-13f55fbbecac\" class=\"text-block-content\">\n<p>4. For\u00a0<strong>Command<\/strong>, enter the cron job command that you received during the installation process.<\/p>\n<\/div>\n<\/div>\n<div class=\"instructions screensteps-textblock screensteps-wrapper--tip screensteps-wrapper\" tabindex=\"0\" role=\"status\" aria-label=\"tip\">\n<div id=\"text-content_0b485273-ea0d-4aa9-aa3d-e1e34788a7fe\" class=\"text-block-content\">\n<blockquote><p>If you did not save the command during installation, see\u00a0<strong>Retrieving the Cron Command<\/strong>\u00a0below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10900\" src=\"https:\/\/www.trustedhosting.in\/blog\/wp-content\/uploads\/2025\/01\/0c9ec88b-b62f-4157-9516-ddc5392e69e6.png\" alt=\"\" width=\"559\" height=\"425\" srcset=\"https:\/\/www.webystrata.com\/blog\/wp-content\/uploads\/2025\/01\/0c9ec88b-b62f-4157-9516-ddc5392e69e6.png 559w, https:\/\/www.webystrata.com\/blog\/wp-content\/uploads\/2025\/01\/0c9ec88b-b62f-4157-9516-ddc5392e69e6-300x228.png 300w\" sizes=\"auto, (max-width: 559px) 100vw, 559px\" \/><\/p>\n<div class=\"instructions screensteps-textblock\" tabindex=\"0\">\n<div id=\"text-content_bffac829-9afe-49be-92a0-c1978bff9164\" class=\"text-block-content\">\n<p>5. Click<strong>\u00a0Add New Cron Job<\/strong>.<\/p>\n<\/div>\n<\/div>\n<div class=\"step step-depth-1\" data-step-uuid=\"dc49483b-519e-4c19-8d7f-431b21c0c4f3\">\n<h2 id=\"retrieving-the-cron-command\" tabindex=\"0\">Retrieving the Cron Command<\/h2>\n<div class=\"instructions screensteps-textblock\" tabindex=\"0\">\n<div id=\"text-content_30831583-bcd0-4c8f-8f51-e676503084ab\" class=\"text-block-content\">\n<p>If you didn&#8217;t note the cron job command during installation, you can find it within your WHMCS Administration Area.<\/p>\n<p>To do this:<\/p>\n<p>1. In the WHMCS Admin Area, go to\u00a0<strong>Utilities &gt; Automation Status<\/strong>\u00a0(<strong>Setup &gt; Automation Settings<\/strong>\u00a0prior to WHMCS 8.0).<\/p>\n<p>2. Click the top-left badge under the\u00a0<strong>Automation Status<\/strong>\u00a0heading.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10901\" src=\"https:\/\/www.trustedhosting.in\/blog\/wp-content\/uploads\/2025\/01\/65577fd3-d9ce-4b09-9629-36fd6b0cdce1.png\" alt=\"\" width=\"511\" height=\"153\" srcset=\"https:\/\/www.webystrata.com\/blog\/wp-content\/uploads\/2025\/01\/65577fd3-d9ce-4b09-9629-36fd6b0cdce1.png 511w, https:\/\/www.webystrata.com\/blog\/wp-content\/uploads\/2025\/01\/65577fd3-d9ce-4b09-9629-36fd6b0cdce1-300x90.png 300w\" sizes=\"auto, (max-width: 511px) 100vw, 511px\" \/><\/p>\n<p>3. Copy the command that displays under\u00a0<strong>Cron Command<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10902\" src=\"https:\/\/www.trustedhosting.in\/blog\/wp-content\/uploads\/2025\/01\/c7b1b6d4-102e-4b02-8b20-b9a553c83c82.png\" alt=\"\" width=\"599\" height=\"203\" srcset=\"https:\/\/www.webystrata.com\/blog\/wp-content\/uploads\/2025\/01\/c7b1b6d4-102e-4b02-8b20-b9a553c83c82.png 599w, https:\/\/www.webystrata.com\/blog\/wp-content\/uploads\/2025\/01\/c7b1b6d4-102e-4b02-8b20-b9a553c83c82-300x102.png 300w\" sizes=\"auto, (max-width: 599px) 100vw, 599px\" \/><\/p>\n<p>4. Paste the cron command into your server&#8217;s cron job configuration and continue with the steps above.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/blockquote>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>How to Setup the WHMCS Cron Job You will need to configure the cron job as soon as you finish&hellip;<\/p>\n","protected":false},"author":1,"featured_media":10903,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-10899","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-whmcs"],"_links":{"self":[{"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/posts\/10899","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/comments?post=10899"}],"version-history":[{"count":2,"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/posts\/10899\/revisions"}],"predecessor-version":[{"id":10905,"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/posts\/10899\/revisions\/10905"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/media\/10903"}],"wp:attachment":[{"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/media?parent=10899"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/categories?post=10899"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/tags?post=10899"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}