whmcs cron script

Discussion in 'ISPConfig 3 Priority Support' started by Honza, Dec 16, 2016.

  1. Honza

    Honza Member

    Hi,
    I need to run following cron command in order to make my WHMCS script work (it's generated by the script itself):
    Code:
    */5 * * * * php -q /var/www/clients/client1/web1/web/crons/cron.php
    In means of ISPConfig:
    Logged in as admin and I setup for the client1:
    (Cron Job Limits section)
    Max. number of cron jobs: 999
    Max. Allowed Cronjob types (chrooted and full implies url): Full Cron
    Min. delay between executions: 5

    As for the client1/web1 settings I did following:
    (Cron Job section)
    Parent website: servers.example.com :: full.servername.com
    Minutes: */5
    Hours: *
    Days of month: *
    Months: *
    Days of week: *
    Command to run (commands are executed via sh, urls via wget): /var/www/clients/client1/web1/web/crons/cron.php
    Log output: [ticked]
    Active: [ticked]

    The questions:
    Can you please confirm that the configuration is correct?
    Does the "Command to run" need to be exactly same as the script generated it "php -q /var/www/clients/client1/web1/web/crons/cron.php" or the way I have it's correct and problem is somewhere else?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The command has to be:

    /usr/bin/php -q /var/www/clients/client1/web1/web/crons/cron.php

    Linux cronjobs require the full path to a binary like php and not just the binary name.
     
  3. Honza

    Honza Member

    Thank you that worked. /close
     

Share This Page