Overview:
Cron is a time-based scheduler. It allows server administrators to run scripts known as cron jobs automatically at scheduled intervals. cPanel runs several essential server maintenance scripts in this way, and you or your users can schedule scripts too. You might, for example, configure a custom backup script to run at 8 a.m. each morning. Cron job use-cases include:
|
Notes: The cPanel presentation may differs in your server, please search for the Cron Job menu in your cPanel page. |
1. Login into your cPanel.
2. Search for Cron Jobs and click it.
3. Common settings: Select the most common Cron job interval. Refer to cPanel Cron job intervals manual here.
4. Command: Enter the Cron command here. General example:
usr/bin/php /home/user/public_html/task_cli.php > /home/user/public_html/system/logs/tasks.log 2>&1
5. Click the Add New Cron Job button.
6. This is cron command.
7. Click Edit to edit the selected cron job.
8. Click Delete to delete the selected cron job.