Adding a cron jobs

To add a cron job login to your hosting panel using the “admin“.

user > (youruser) > login as > cron

You will need to set the minute, hour, day, month, and day of week.

  • min (0 – 59)
  • hour (0 – 23)
  • day of month (1 – 31)
  • month (1 – 12)
  • day of week (0 – 6) (where 0 is Sunday and 6 is Saturday)

Example Time:

Every minute = * * * * *
Every hour at 15 minute = 15 * * * *
Every day at 11:15pm = 15 23 * * *
Every 4 hours at 5 minute = 5 */4 * * *
Every 15th of the month = 0 0 15 * *
Every Sunday of the week = 0 0 * * 0

The full path of your app should be
/home/your_username/web/your_domain.com/public_html/

Example command:
php /home/your_username/web/domain.com/public_html/cron.php