Braysons Host logo
Order NowGet Started Free
Hosting Setup Guides

How to Set Up Cron Jobs in cPanel

Automate repetitive tasks like sending emails, clearing caches, and running backups using cPanel cron jobs.

5 min read
Updated 18 August 2026

Setting Up Cron Jobs in cPanel

Cron jobs are scheduled tasks that run automatically at set intervals. Common uses include sending automated emails, clearing caches, running database maintenance, and triggering WordPress scheduled events.

Accessing Cron Jobs

  1. Log into cPanel
  2. Go to Advanced → Cron Jobs

Understanding Cron Syntax

A cron job has 5 time fields followed by the command:

* * * * * command

│ │ │ │ │

│ │ │ │ └── Day of week (0–7, 0 and 7 = Sunday)

│ │ │ └──── Month (1–12)

│ │ └────── Day of month (1–31)

│ └──────── Hour (0–23)

└────────── Minute (0–59)

Common Cron Schedules

ScheduleCron Expression
Every minute* * * * *
Every hour0 * * * *
Every day at midnight0 0 * * *
Every Monday at 8 AM0 8 * * 1
Every 1st of month0 0 1 * *

WordPress Cron Job Example

WordPress has its own cron system (WP-Cron) that can be unreliable on low-traffic sites. Replace it with a real cron job:

Step 1 — Disable WP-Cron in wp-config.php:
define('DISABLE_WP_CRON', true);
Step 2 — Add a cPanel cron job:
*/15 * * * * php /home/yourusername/public_html/wp-cron.php

This runs WP-Cron every 15 minutes reliably.

Adding a Cron Job

  1. In the Cron Jobs page, scroll to Add New Cron Job
  2. Select a common setting from the dropdown, or enter custom timing
  3. In the Command field, enter your command
  4. Click Add New Cron Job

Finding Your PHP Path

Run this command in Terminal (if available) or ask support:

which php

Common paths: /usr/bin/php or /usr/local/bin/php

Tags:cron jobsautomationcPanelscheduled tasks

Still need help?

Our Kenyan support team is on WhatsApp — real people, not bots. We respond in under 15 minutes.

WhatsApp Us
Braysons Host — Kenyan Hosting with WhatsApp Support