Help, cron job related

Discussion in 'Installation/Configuration' started by Apryaldy, Aug 1, 2017.

  1. Apryaldy

    Apryaldy Member

    Hi,

    I have created a cron job using GUI:
    Code:
    /usr/bin/php -q /var/www/clients/client1/web2/web/cron.php
    I see in /etc/cron.d there was ispc_chrooted_web2 with content:
    Code:
    MAILTO=''
    SHELL='/usr/sbin/jk_chrootsh'
    
    *       *       *       *       *       web2    /usr/bin/php -q /var/www/clients/client1/web2/web/cron.php >>/private/cron.log 2>>/private/cron_error.log #domain.com
    and in my syslog :
    Code:
    Jul 31 21:33:01 galaxy CRON[2059]: (root) CMD (/usr/local/ispconfig/server/cron.sh 2>&1 | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done)
    Jul 31 21:33:01 galaxy CRON[2060]: (root) CMD (/usr/local/ispconfig/server/server.sh 2>&1 | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done)
    Jul 31 21:33:01 galaxy CRON[2061]: (web2) CMD (/usr/bin/php -q /var/www/clients/client1/web2/web/cron.php >>/private/cron.log 2>>/private/cron_error.log #domain.com)
    
    The cron is not working.
    If, i try to run manually by using:
    Code:
    /usr/bin/php -q /var/www/clients/client1/web2/web/cron.php
    it run without problem.

    any idea what should i do?

    i installed the server following this guide: https://www.howtoforge.com/tutorial...8-4-jessie-apache-bind-dovecot-ispconfig-3-1/
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Use the URL as cron command, Just enter:

    http://yourdomain.tld/cron.php

    in the command field.your cronjob did not work because you created a jailed cronjob which tries to call a program that's not in the jail and a script that is not in that path in the jail.
     

Share This Page