Cron jobs let you schedule scripts or tasks to run at regular intervals — perfect for backups, database syncs, or any recurring job.
Setting Up a Cron Job in cPanel:
- Log in to cPanel.
- Go to Cron Jobs under the Advanced section.
- Choose the time interval (e.g., once a day, every 5 minutes).
- Enter the command (e.g.,
/usr/bin/php /home/user/public_html/script.php
). - Click Add New Cron Job.
Use cron jobs responsibly — running scripts too frequently can increase your resource usage. Contact Aviumshost support if unsure.