{"id":2323,"date":"2023-12-21T15:34:35","date_gmt":"2023-12-21T07:34:35","guid":{"rendered":"https:\/\/ebuildhost.com\/?post_type=docs&#038;p=2323"},"modified":"2023-12-21T15:34:36","modified_gmt":"2023-12-21T07:34:36","slug":"add-cron-jobs-in-cpanel","status":"publish","type":"docs","link":"https:\/\/ebuildhost.com\/en\/docs\/products\/web-hosting\/cpanel\/add-cron-jobs-in-cpanel\/","title":{"rendered":"Add Cron jobs in cPanel"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In EBuildHost cPanel, you can create cron jobs by yourself in cPanel. In this tutorial, we will cover how to use the cPanel cronjob feature to restore your file backups. This powerful feature can help you add the cronjob task easily.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1: Log in to cPanel<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">First, you&#8217;ll need to log into your cPanel account. You can find the cPanel URL in our welcome letter.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Enter your cPanel username and password, then click &#8220;Log in&#8221;.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"401\" height=\"461\" src=\"https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-10-at-10.21.04-PM.png\" alt=\"\" class=\"wp-image-2159\" title=\"\" srcset=\"https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-10-at-10.21.04-PM.png 401w, https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-10-at-10.21.04-PM-261x300.png 261w, https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-10-at-10.21.04-PM-130x150.png 130w, https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-10-at-10.21.04-PM-21x24.png 21w, https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-10-at-10.21.04-PM-31x36.png 31w, https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-10-at-10.21.04-PM-42x48.png 42w\" sizes=\"auto, (max-width: 401px) 100vw, 401px\" \/><figcaption><\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Or you can log in to cPanel by using our Client Area one-click login feature.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Services -&gt; My Services -&gt; Select your hosting service -&gt; In Actions you can find &#8220;Login to cPanel&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"417\" height=\"428\" src=\"https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-10-at-10.24.24-PM.png\" alt=\"\" class=\"wp-image-2163\" title=\"\" srcset=\"https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-10-at-10.24.24-PM.png 417w, https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-10-at-10.24.24-PM-292x300.png 292w, https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-10-at-10.24.24-PM-146x150.png 146w, https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-10-at-10.24.24-PM-24x24.png 24w, https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-10-at-10.24.24-PM-36x36.png 36w, https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-10-at-10.24.24-PM-48x48.png 48w\" sizes=\"auto, (max-width: 417px) 100vw, 417px\" \/><figcaption><\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2: Locate the Cron Jobs<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">On your cPanel home page, find the &#8220;Advance&#8221; section. In this section, you should see the &#8220;Cron Jobs&#8221; option. Click on it.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"280\" src=\"https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-3.26.52\u202fPM-1024x280.png\" alt=\"\" class=\"wp-image-2324\" title=\"\" srcset=\"https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-3.26.52\u202fPM-1024x280.png 1024w, https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-3.26.52\u202fPM-300x82.png 300w, https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-3.26.52\u202fPM-150x41.png 150w, https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-3.26.52\u202fPM-768x210.png 768w, https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-3.26.52\u202fPM-1536x419.png 1536w, https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-3.26.52\u202fPM-24x7.png 24w, https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-3.26.52\u202fPM-36x10.png 36w, https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-3.26.52\u202fPM-48x13.png 48w, https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-3.26.52\u202fPM.png 2000w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption><\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3: New Cron Job<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Here you can add the cron job:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><em>Common Settings<\/em>&nbsp;\u2014 Select a commonly-used interval. The system will configure the appropriate settings in the&nbsp;<em>Minute<\/em>,&nbsp;<em>Hour<\/em>,&nbsp;<em>Day<\/em>,&nbsp;<em>Month<\/em>, and&nbsp;<em>Weekday<\/em>&nbsp;text boxes for you.<\/li>\n\n\n\n<li><em>Minute<\/em>&nbsp;\u2014 The number of minutes between each time the cron job runs, or the minute of each hour on which you wish to run the cron job.<\/li>\n\n\n\n<li><em>Hour<\/em>&nbsp;\u2014 The number of hours between each time the cron job runs, or the hour of each day on which you wish to run the cron job.<\/li>\n\n\n\n<li><em>Day<\/em>&nbsp;\u2014 The number of days between each time the cron job runs, or the day of the month on which you wish to run the cron job.<\/li>\n\n\n\n<li><em>Month<\/em>&nbsp;\u2014 The number of months between each time the cron job runs, or the month of the year in which you wish to run the cron job.<\/li>\n\n\n\n<li><em>Weekday<\/em>\u00a0\u2014 The days of the week on which you wish to run the cron job.<\/li>\n\n\n\n<li>In the\u00a0<em>Command<\/em>\u00a0text box, enter the command that you wish the system to run.<br>Example: php \/home\/ebuildhost\/wordpress_dir\/wp-cron.php<\/li>\n<\/ul>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>Important<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You&nbsp;<strong>must<\/strong>&nbsp;specify settings for the&nbsp;<em>Minute<\/em>,&nbsp;<em>Hour<\/em>,&nbsp;<em>Day<\/em>,&nbsp;<em>Month<\/em>,&nbsp;<em>Weekday<\/em>, and&nbsp;<em>Command<\/em>&nbsp;text boxes.<\/li>\n\n\n\n<li>Exercise&nbsp;<strong>extreme<\/strong>&nbsp;caution when you use the&nbsp;<code>rm<\/code>&nbsp;command in a cron job. If you do&nbsp;<strong>not<\/strong>&nbsp;declare the correct options, you may delete your home directory\u2019s data.<\/li>\n\n\n\n<li>If your cron job runs a custom script, the script requires the execute permission. Please contact <a href=\"https:\/\/ebuildhost.com\/contact-us\/\">EBuildHost customer service<\/a>.<\/li>\n<\/ul>\n<\/blockquote>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"876\" src=\"https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-3.27.48\u202fPM-1024x876.png\" alt=\"\" class=\"wp-image-2328\" title=\"\" srcset=\"https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-3.27.48\u202fPM-1024x876.png 1024w, https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-3.27.48\u202fPM-300x257.png 300w, https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-3.27.48\u202fPM-150x128.png 150w, https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-3.27.48\u202fPM-768x657.png 768w, https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-3.27.48\u202fPM-24x21.png 24w, https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-3.27.48\u202fPM-36x31.png 36w, https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-3.27.48\u202fPM-48x41.png 48w, https:\/\/ebuildhost.com\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-3.27.48\u202fPM.png 1358w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption><\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>In EBuildHost cPanel, you can create cron jobs by yours [&hellip;]<\/p>\n","protected":false},"featured_media":0,"parent":0,"menu_order":0,"template":"","format":"standard","meta":{"footnotes":""},"docs_categories":[45],"class_list":["post-2323","docs","type-docs","status-publish","format-standard","hentry","docs_categories-cpanel"],"_links":{"self":[{"href":"https:\/\/ebuildhost.com\/cn\/wp-json\/wp\/v2\/docs\/2323","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ebuildhost.com\/cn\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/ebuildhost.com\/cn\/wp-json\/wp\/v2\/types\/docs"}],"version-history":[{"count":1,"href":"https:\/\/ebuildhost.com\/cn\/wp-json\/wp\/v2\/docs\/2323\/revisions"}],"predecessor-version":[{"id":2332,"href":"https:\/\/ebuildhost.com\/cn\/wp-json\/wp\/v2\/docs\/2323\/revisions\/2332"}],"wp:attachment":[{"href":"https:\/\/ebuildhost.com\/cn\/wp-json\/wp\/v2\/media?parent=2323"}],"wp:term":[{"taxonomy":"docs_categories","embeddable":true,"href":"https:\/\/ebuildhost.com\/cn\/wp-json\/wp\/v2\/docs_categories?post=2323"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}