Cron runs scheduled commands automatically.
Common uses
- Run scripts for automation
- Trigger application maintenance tasks
- WHMCS-related scripts (if hosted)
How to create
1) Advanced → Cron Jobs → Add.
2) Choose schedule:
- Every 5 minutes: */5 * * * *
- Daily 2 AM: 0 2 * * *
3) Command example:
- php /home/USER/public_html/cron.php
Best practices
- Always test the command manually first (if you have SSH or logs).
- Log output to a file to debug:
php /path/script.php >> /path/cron.log 2>&1
- Avoid too-frequent jobs that can overload shared hosting.