Setup a CRON job in cPanel

  Print

Setup a CRON job in cPanel

This demo assumes you've already logged in to cPanelNow let's learn how to setup a cron job

1) Click the Cron Jobs icon

4656e6712b1e2dcde2119096d295f86ca4c639ad?t=83696f75a84918399a1f97480327058b

2) Enter the email address where you want the cron job results sent after each time it runs

440438bdc4aeb0706a3dc25474d6fe508e20e86d?t=d68a165eccb520f08a16b1a158e2a230

Now you have to define exactly when and how often you want the cron job to run

This is made easier by using one of the pre-defined or common settings

326ca4ff3a8bd13f9da07f996b4eccce837dc55c?t=f9faff8a204d0bb88c0bad454de47f72


Notice that by choosing a common setting, all fields are filled in automatically. This also helps you understand what each field means

3) Let's choose Once a week

6a1ae10b4b27fda7fb1d3af52b6cd1da0070ad6b?t=52e6cf1705358571bfd2a03086955b63


4) Next, enter the command of the script you want to run, including the path (from root)

54c6223769a1233977e797bd70cdae4218275602?t=262f8c3768d9d28f4522ba5150c68116


5) When ready, click Add New Cron Job

d6c2655c4e44660cdd456e2283613b0a72e83a64?t=8570c82b97bf179bc42f5d734d9cea50


That's it! The cron job has been set as you can see here

c234d721b8c4b1089fcf647c3ff595b0d83cf7cb?t=e072e9db2ab59a0345d600bd9c14db5e


You can create additional cron jobs, and edit or delete existing ones

5776f4d985a48a28d7ca353494e3269a14857164?t=e600dda791c127865020d47180087739


This is the end of the tutorial. You now know how to setup cron jobs in cPanel


Related Articles


  • Comments

Add Comment

Replying to