Black FridayWebsites from R499 R999, domain and first year of hosting included. Ends 30 November 2026.See the specials →
South African web hosting, domains, web design and SEO since 2009083 678 9831info@webdesignhostingsa.co.zaClient area

How to Set Up Cron Jobs in cPanel

Last updated 6 June 2026

Automating Tasks with Cron Jobs

Cron jobs are scheduled tasks that run automatically at specified intervals on your hosting account. They are commonly used for scheduled backups, email sending, cache clearing, and WordPress maintenance tasks.

How to Create a Cron Job

  1. Log in to cPanel
  2. In the Advanced section, click Cron Jobs
  3. Under Add New Cron Job, use the dropdowns to set the frequency, or enter the cron expression manually
  4. Enter the command to run in the Command field
  5. Click Add New Cron Job

WordPress wp-cron Example

WordPress has its own cron system but it only runs when someone visits your site. To set up a proper server-side cron for WordPress:

  1. Disable wp-cron by adding this to your wp-config.php: define('DISABLE_WP_CRON', true);
  2. Create a cPanel cron job to run every 15 minutes: wget -q -O - https://yourdomain.co.za/wp-cron.php?doing_wp_cron

Common Cron Expressions

ExpressionRuns
* * * * *Every minute
0 * * * *Every hour
0 0 * * *Every day at midnight
0 0 * * 0Every Sunday at midnight

Need Assistance?

If you are unsure about setting up a cron job, open a support ticket and our team can help you configure it.