How to set up cron jobs in cPanel

Updated 1 month ago 22 views

Setting Up Cron Jobs

Cron jobs run scheduled tasks automatically:

  1. Log in to cPanel
  2. Go to Advanced > Cron Jobs
  3. Set the email address to receive cron output
  4. Under Add New Cron Job, set the schedule:
    • Common Settings dropdown for presets (every 5 min, hourly, daily, etc.)
    • Minute, Hour, Day, Month, Weekday for custom schedules
  5. Enter the command to run (full path)
  6. Click Add New Cron Job

Example cron schedule values:

  • */5 * * * * - Every 5 minutes
  • 0 * * * * - Every hour at minute 0
  • 0 2 * * * - Daily at 2:00 AM
  • 0 0 * * 0 - Every Sunday at midnight

Tip: Use absolute paths in your commands (e.g., /usr/bin/php /home/username/script.php).

Still need help?

If this article did not answer your question, our support team can help.

Contact support
Top