Cron jobs in cPanel: run scripts on a schedule

  1. Open "Cron Jobs" (group "Advanced").
  2. In "Add New Cron Job", pick a schedule in "Common Settings", for example "Once Per Day(0 0 * * *)". Or fill in minute, hour, day, month and weekday by hand.
  3. Enter the command in "Command".
  4. Click "Add New Cron Job".
New cron job
New cron job

The job appears under "Current Cron Jobs", where it can be edited or deleted.

Cron job list
Cron job list

Command examples

TaskCommand
PHP script/usr/local/bin/php /home/USERNAME/public_html/cron.php
WordPress (instead of wp-cron)/usr/local/bin/php /home/USERNAME/public_html/wp-cron.php >/dev/null 2>&1
Open a URL/usr/bin/curl -s https://example.com/cron/ >/dev/null

USERNAME is your cPanel username. The full path to the site folder is shown in the File Manager.

In "Cron Email" you can enter an address to receive the output of every run. To get no emails, add >/dev/null 2>&1 to the end of the command.

Questions and answers
At most once a minute. For most tasks every 5-15 minutes is enough.
Add >/dev/null 2>&1 to the end of the command or clear the address in "Cron Email".