{"id":50380,"date":"2026-11-20T05:24:08","date_gmt":"2026-11-20T05:24:08","guid":{"rendered":"https:\/\/kickhost.com\/guides\/how-to-create-a-cronjob-in-cpanel\/"},"modified":"2026-11-28T08:50:22","modified_gmt":"2026-11-28T08:50:22","slug":"how-to-create-a-cronjob-in-cpanel","status":"publish","type":"kickhost_tutorial","link":"https:\/\/kickhost.com\/en-ke\/guides\/how-to-create-a-cronjob-in-cpanel\/","title":{"rendered":"How to Create a Cronjob in cPanel"},"content":{"rendered":"<p>Cron jobs run commands at set times, such as clearing a cache or sending reports. cPanel provides a simple form so you do not need to edit server files.<\/p>\n<p><strong>1.<\/strong> Log in to your cPanel account.<\/p>\n<p><strong>2.<\/strong> In the <strong>Advanced<\/strong> section, click on <strong>Cron Jobs<\/strong>.<br \/> <img decoding=\"async\" src=\"https:\/\/kickhost.com\/img\/cronjob-icon.gif\" alt=\"\" align=\"middle\" loading=\"lazy\"><\/p>\n<p><strong>3.<\/strong> Under <strong>Add New Cron Job<\/strong>, click on the <strong>Common Settings<\/strong> drop-down menu and select an appropriate option such as <strong>Once Per Day<\/strong> or another suitable option.<\/p>\n<p><strong>4.<\/strong> Enter your cronjob PHP file location or the command you want to run in the Command field.<\/p>\n<p><strong>5.<\/strong> Click on <strong>Add New Cron Job<\/strong>. <br \/><img decoding=\"async\" src=\"https:\/\/kickhost.com\/img\/add-cronjob.gif\" alt=\"\" loading=\"lazy\"><\/p>\n<h2>Choose a sensible schedule<\/h2>\n<p>Do not run heavy tasks too often. Once per day or every few hours is enough for most jobs. Very frequent jobs can slow your website.<\/p>\n<h2>Test the command<\/h2>\n<p>Run the command once manually, or set it to run in a few minutes and check the result. Add an email address to receive output if you need it.<\/p>\n<h2>Frequently asked questions<\/h2>\n<p><strong>What does a PHP cron command look like?<\/strong> It uses the PHP path followed by your script path. Ask support if you are not sure about the correct path.<\/p>\n<p><strong>How do I stop a cron job?<\/strong> Delete it from the Current Cron Jobs list in the same page.<\/p>\n<h2>Related guides<\/h2>\n<ul>\n<li><a href=\"https:\/\/kickhost.com\/en-ke\/guides\/how-to-remove-parked-domains-aliases-in-cpanel\/\">Remove a parked domain<\/a><\/li>\n<li><a href=\"https:\/\/kickhost.com\/en-ke\/guides\/how-to-add-a-user-to-a-database-and-grant-privileges\/\">Add a user to a database<\/a><\/li>\n<\/ul>\n<p>Need cPanel hosting in Kenya? <a href=\"https:\/\/kickhost.com\/en-ke\/web-hosting\/\">See KickHost hosting plans<\/a> or <a href=\"https:\/\/kickhost.com\/en-ke\/contact\/\">contact our team<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Create a cron job in cPanel to run a script automatically. Steps for KickHost customers in Kenya.<\/p>\n","protected":false},"featured_media":0,"template":"","class_list":["post-50380","kickhost_tutorial","type-kickhost_tutorial","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/kickhost_tutorial\/50380","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/kickhost_tutorial"}],"about":[{"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/types\/kickhost_tutorial"}],"version-history":[{"count":2,"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/kickhost_tutorial\/50380\/revisions"}],"predecessor-version":[{"id":53365,"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/kickhost_tutorial\/50380\/revisions\/53365"}],"wp:attachment":[{"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/media?parent=50380"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}