Setting up cron jobs

Getting Started Updated Jan 18, 2026

Schedule Automated Tasks

Cron jobs run scripts automatically at specified times.

Creating a Cron Job

  1. Log in to cPanel
  2. Go to Cron Jobs
  3. Select the timing (minute, hour, day, month, weekday)
  4. Enter the command
  5. Click Add New Cron Job

Common Schedules

ScheduleSettings
Every hour0 * * * *
Every day at midnight0 0 * * *
Every day at 6am0 6 * * *
Every Monday at 9am0 9 * * 1
Every 5 minutes*/5 * * * *

Example Commands

Run a PHP Script

/usr/bin/php /home/user/public_html/cron.php

WordPress Cron

/usr/bin/php /home/user/public_html/wp-cron.php

Curl a URL

/usr/bin/curl -s https://yourdomain.com/cron.php

Disabling Email Notifications

Add to the end of your command:

>/dev/null 2>&1

Was this article helpful?