Monday 23 September 2013

prestashop: setup php job in cron service

cron service time format:
* * * * * <instruction>
| | | | |
| | | | ----- Day of week (0 - 7) (Sunday=0 or 7)
| | | ------- Month (1 - 12)
| | --------- Day of month (1 - 31)
| ----------- Hour (0 - 23)
------------- Minute (0 - 59)

cron generators: here and here.

instruction format:
wget -q --spider http://example.com/modules/mymodule/cron.php
(or full path: /usr/bin/wget)
php -f /var/www/module/mymodule/cron.php
(or full path: /usr/bin/php)

Examples:
*/5 * * * * wget -q --spider http://example.com/modules/mymodule/cron.php
*/5 * * * * /usr/bin/php -f /var/www/module/mymodule/cron.php

2 comments:

  1. If you don't have privilege to setup cron job or don't know how to, a third party webcron(EasyCron.com) may be a good option for you.

    ReplyDelete
    Replies
    1. hosting companies normally offer cronjobs configuration options in webhosting packages

      Delete