Cron job format

Discussion in 'ISPConfig 3 Priority Support' started by Matthias Reich, Oct 3, 2019.

Tags:
  1. I'm trying to implement a cron-job for Mautic (https://www.mautic.org/) using the ISPConfig interface and this is the format that they have given me:
    /usr/bin/php web_root/app/console mautic:emails:send

    However, this doesn't seem to work - is there a change I've to make for the PHP directory? The PHP being used is PHP-FPM and the version is PHP 7.2.21-1+ubuntu18.04.1 - running on nginx.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The command you posted looks wrong, I doubt that the absolute path to the PHP script that you try to execute is "web_root/app/console". And ensure that you either created a cronjob without chroot or that you installed a php binary with all required modules into the chroor environment if you want to use a chrooted cronjob.
     
  3. The documentation of the software I'm trying to use doesn't mention anything about chroot.
    https://www.mautic.org/docs/en/setup/cron_jobs.html
    Under section Optional> Process Email Queue - is the cron job command I'm trying to execute. So in that context, is the one I posted correct?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    To me, it does not look correct for neither chroot nor outside of chroot. The mautic docs show the correct command with a full path btw. which would be in your case:

    /usr/bin/php /var/www/yourdomain.tld/web/app/console mautic:emails:send

    this is for a non chrroted cronjob, so ensure that you have set the cron limits on limits tab of the client to full cron before you create that cronjob.
     

Share This Page