A cron job runs a command on a schedule, useful for scheduled tasks, reports, or reliable WordPress cron. This guide explains how to create one in cPanel.
Creating a cron job #
- Faça login no cPanel.
- No Advanced seção, abrir Empregos na Cron.
- Use o Common Settings dropdown to pick a schedule, or set the fields manually.
- Enter the command to run.
- Clique em Add New Cron Job.
Understanding the schedule fields #
- Minute: 0-59, Hour: 0-23, Day: 1-31, Month: 1-12, Weekday: 0-6.
- An asterisk means “every”.
Example: 0 3 * * * runs daily at 3 AM.
Tips #
- Avoid scheduling heavy tasks too frequently.
- Send output to a log file to review results.
- Set a cron email address to catch errors, or silence output if it is noisy.
Solução de problemas #
- Job not running: re-check the command path and schedule.
- Too many emails: redirect output to a log instead.
Precisa de ajuda? #
Cron syntax can be confusing; our support team can help you set the right schedule over live chat.