Offer Shared Hosting Ultra-fast Performance! 29$ using coupon new-2026 1st/y

Claim Offer
Print

How to Set Up Cron Jobs in cPanel

Cron Jobs in cPanel

Cron jobs allow you to schedule commands or scripts to run automatically at specified intervals.

Creating a Cron Job

  1. Log in to cPanel
  2. Go to Advanced section
  3. Click Cron Jobs
  4. Set the schedule using the time fields:
    Minute0-59
    Hour0-23
    Day1-31
    Month1-12
    Weekday0-6 (0=Sunday)
  5. Enter the command
  6. Click Add New Cron Job

Common Examples

# Run every hour\n0 * * * * /usr/local/bin/php /home/user/public_html/cron.php\n\n# Run daily at midnight\n0 0 * * * /usr/local/bin/php /home/user/script.php\n\n# Run every 5 minutes\n*/5 * * * * /usr/local/bin/php /home/user/check.php

Email Notifications

Set the Cron Email at the top of the page to receive output from your cron jobs. To suppress emails, append > /dev/null 2>&1 to the command.

WordPress Cron

For better WordPress performance, disable WP-Cron in wp-config.php:
define('DISABLE_WP_CRON', true);
Then set a real cron job to run wp-cron.php every 5 minutes.

Was this answer helpful?

Your feedback helps us improve our content