How do I set up a cron job in cPanel?

A cron job runs a command on a schedule, useful for scheduled tasks, reports, or reliable WordPress cron. This guide explains how to create one in cPanel.

Creating a cron job #

  1. Log in to cPanel.
  2. In the Advanced section, open Cron Jobs.
  3. Use the Common Settings dropdown to pick a schedule, or set the fields manually.
  4. Enter the command to run.
  5. Click Add New Cron Job.

Understanding the schedule fields #

  • Minute: 0-59, Hour: 0-23, Day: 1-31, Month: 1-12, Weekday: 0-6.
  • An asterisk means “every”.

Example: 0 3 * * * runs daily at 3 AM.

Tips #

  • Avoid scheduling heavy tasks too frequently.
  • Send output to a log file to review results.
  • Set a cron email address to catch errors, or silence output if it is noisy.

Troubleshooting #

  • Job not running: re-check the command path and schedule.
  • Too many emails: redirect output to a log instead.

Need help? #

Cron syntax can be confusing; our support team can help you set the right schedule over live chat.

What are your feelings