How to Use Cron Jobs in cPanel 2026 | Complete Scheduled Tasks Guide

How to Use Cron Jobs in cPanel 2026 | Complete Scheduled Tasks Guide

How to Use Cron Jobs in cPanel – Complete 2026 Guide

Cron Jobs allow you to schedule automatic tasks on your server. Ideal for backups, cache clearing, database maintenance, and many other repetitive tasks.

How to Access Cron Jobs

  1. Log into cPanel
  2. Go to AdvancedCron Jobs

Creating a New Cron Job

  1. Click “Add New Cron Job”
  2. Set the time interval (Common Settings has presets)
  3. Enter the command you want to run
  4. Click “Add Cron Job”

Popular Cron Job Examples

**1. WordPress Backup / WP-Cron** ```bash 0 3 * * * /usr/local/bin/php /home/username/public_html/wp-cron.php

2. LiteSpeed Cache Purge 0 4 * * * /usr/local/bin/php /home/username/public_html/wp-content/plugins/litespeed-cache/bin/clear.sh

3. Database Optimization 30 2 * * * /usr/local/bin/php /home/username/public_html/wp-admin/admin-ajax.php?action=wp_optimize

Pro Tips

  • Always use full paths to PHP and files
  • Redirect output to null if you don’t want email notifications: `> /dev/null 2>&1`
  • Test your cron jobs before relying on them
0850 308 15 09 908503081509