Cron jobs in cPanel allow you to schedule scripts or commands to run automatically at specified intervals. This is useful for automating tasks like backups, email notifications, or maintenance scripts. TZSMM Host guides you through the setup process.
Access your cPanel at https://yourdomain.com:2083 and log in using your credentials provided by TZSMM Host.
Scroll down to the Advanced section and click on Cron Jobs.
cPanel provides a Common Settings dropdown to quickly select standard intervals (every minute, every hour, daily, weekly, etc.). This simplifies scheduling for typical tasks.
In the Command field, enter the script or command you want to run. Example for a PHP script:
/usr/bin/php /home/username/public_html/cron-script.phpReplace username with your cPanel username and adjust the script path as needed.
Click Add New Cron Job to save your scheduled task. The script will now run automatically at the selected intervals.
By default, cPanel sends an email after each cron job runs. You can set or change the email address in the Cron Email section to monitor your scripts.
Setting up cron jobs in cPanel automates repetitive tasks, saving time and ensuring your scripts run reliably. TZSMM Host provides guidance and support to help you manage automated tasks efficiently on your hosting account.
39 Users Found This Useful (139 Votes)