Knowledge base › Databases & PHP

How to create a cron job (scheduled task)

Run a script automatically, e.g. every hour.

Where
cPanel → Advanced → Cron Jobs
Time
3 minutes
You need
The command your software tells you to run
  1. 1

    Open Cron Jobs

    In cPanel, in the Advanced section, click Cron Jobs.

  2. 2

    Choose how often

    Under Add New Cron Job, use Common Settings to pick a schedule such as Once Per Hour.

  3. 3

    Enter the command

    Paste the command provided by your software into Command.

  4. 4

    Add it

    Click Add New Cron Job. It appears in the list below, where you can edit or delete it.

cPanel Add New Cron Job form
Pick a schedule in Common Settings, paste the command and click Add New Cron Job.
Good to know
  • Don’t run cron jobs more often than you need: every 15 minutes is enough for most websites.

Stuck on a step? Open a ticket and tell us the step number.

← All 31 guides