Cron jobs are commands that will tell the server to run specific PHP files at specific time intervals. There are many web scripts that need cron jobs to run properly.
To create cron jobs in CWP:
- We assume you are logged on
- Look for CWP Settings->Crontab
- Here you have three sections to add a cron job.
In the first one, choose a common time setting (for example every minute) and the command and click the Save changes button.
In the second one choose time interval details from drop-down lists. Enter the command and click the Save changes button.
In the third one, you have full control, and you can customize the time interval as you wish. As in previous two cases, click the Save changes button in the end.
CWP tells you how the command should look like:
# Example of job definition: # .---------------- minutes (0 - 59) # | .------------- Hour (0 - 23) # | | .---------- day of month (1 - 31) # | | | .------- month (1 - 12) OR jan,feb,mar,apr ... # | | | | .---- day of week (0 - 6) (Sunday=0 or 7) # | | | | | # * * * * * user-name command to be executed
The video tutorial for this KB article: