Cron Daemon is a tool on Unix type servers which allows you to schedule the running of tasks, chronologically. The job board needs to process the Outgoing Email queue every few minutes and process the email alerts every hour. Additionally, several other 'house keeping' tasks need to be performed. (Note: On Windows a similar tool exists in the System Tools folder called 'Scheduled Tasks')
It is recommended that you set up a Cron job / scheduled task for the Job Board. If your hosting company does not provide this service then the job board can emulate a cron job, although this approach is not recommended for large websites. You can turn cron emulation On / Off from the Main Config.
The script that needs to be scheduled to run every minute is called cron.php and it's located in the cron/ directory. On this server, the full path to this script is:/home/jamit/public_html/demo/cron/cron.php and the http address is: http://www.jamit.com/demo/cron/cron.php (assuming from your settings in Main Config)
For Cpanel based hosting accounts:
Cpanel based accounts are fortunate to be able to setup cron jobs via web-based interface. Simply go to the Cron jobs page and add the following command in to run every five minutes:
nice /usr/bin/php -f /home/jamit/public_html/demo/cron/cron.phpFor accounts with shell access (SSH):
crontab -eInput the following line in this file:
*/5 * * * * nice /usr/bin/php -f /home/jamit/public_html/demo/cron/cron.phpSave this file. (If you are using VIM editor press I to insert, then to save & quit press Esc and then type in :wq and press Enter. If you are using Gnu Nano / Pico then press Ctrl+O then Ctrl+X
Note: If the above command does not work, you may try other froms of the command. Once common way is to get a web browser / http client to request the cron.php page.
This can be done in the following ways:
- If your server supports curl:
*/5 * * * * curl -s -o /dev/null http://www.jamit.com/demo/cron/cron.php
*/5 * * * * fetch -o /dev/null http://www.jamit.com/demo/cron/cron.php
*/5 * * * * lynx > /dev/null -dump http://www.jamit.com/demo/cron/cron.php
*/5 * * * * wget -q -O /dev/null http://www.jamit.com/demo/cron/cron.php