cron question for one site

Discussion in 'General' started by unsichtbare, Oct 22, 2016.

  1. unsichtbare

    unsichtbare Member HowtoForge Supporter

    I am hosting an installation of osTicket and need to schedule a cron job. Unfortunately, I am coming up blank on how to implement this:
    Code:
    */5 * * * * nobody /path/to/php /path/to/api/cron.php
    for a single site on ISPconfig3 (ubuntu 14.04 LTS)
    Can somebody set me on the right path?

    Thanks!
     
  2. sjau

    sjau Local Meanie Moderator

    There's a cron section in ISPC. As command you could put in like:
    https://domain.tld/api/cron.php
    or write a wrapper script like "/var/www/domain.tld/wrapper.sh"
    Code:
    #!/usr/bin/env bash
    php /path/to/api/cron.php
    
    and then fill in
    /var/www/domain.tld/wrapper.sh
     

Share This Page