Cron Jobs on Hosting: A Practical Automation Guide
26/07/2026
Cron jobs are scheduled tasks the server runs automatically at exact times — every minute, hour, day, or on a custom schedule. It is the simplest way to automate repetitive work without doing it by hand.
What people usually automate
- Database and file backups in the early morning.
- Data syncing and feed imports.
- Cleaning temporary files and old logs.
- Running WordPress cron (wp-cron.php) at the system level.
- Sending newsletters and reports.
How to read cron syntax
Five fields: minute, hour, day of month, month, day of week. Examples:
0 3 * * *— every day at 3 a.m.*/15 * * * *— every 15 minutes0 0 * * 0— every Sunday at midnight
How to set it up
cPanel has a „Cron Jobs" section where you pick a schedule and a command. Over SSH, use crontab -e. To call a script you typically use php /path/script.php or wget -q -O - https://domain.com/task.
Common mistakes
A wrong PHP path, too short an interval that overloads the server, a cron overlapping itself because the previous run is still going, and no logging so you cannot tell if it succeeded. Always redirect output to a log and test the command manually before scheduling it.
On our plans you set up cron from cPanel in a couple of clicks; more on a fast base in the SEO hosting guide.