OSTicket Cron

Discussion in 'General' started by dinakar, Oct 16, 2017.

  1. dinakar

    dinakar New Member

    Hello

    iam trying to setup a cron for OSTicket - PHP website application hosted withing ISPConfig 3.1 Dev with no success for quite sometime now..

    the cron entry for the website looks like this

    [email protected]:/etc/cron.d# ll
    total 48
    drwxr-xr-x 2 root root 4096 Oct 16 06:26 ./
    drwxr-xr-x 120 root root 12288 Oct 16 06:26 ../
    -rw-r--r-- 1 root root 281 Feb 18 2016 amavisd-new
    -rw-r--r-- 1 root root 260 Sep 4 2016 awstats
    -rw-r--r-- 1 root root 238 Oct 16 06:26 ispc_chrooted_web36
    -rw-r--r-- 1 root root 1566 May 14 2015 mailman
    -rw-r--r-- 1 root root 589 Jul 16 2014 mdadm
    -rw-r--r-- 1 root root 670 Mar 1 2016 php
    -rw-r--r-- 1 root root 102 Apr 5 2016 .placeholder
    -rw-r--r-- 1 root root 190 Sep 4 2016 popularity-contest
    [email protected]:/etc/cron.d# vi ispc_chrooted_web36
    MAILTO=''
    SHELL='/usr/sbin/jk_chrootsh'

    */2 * * * * web36 /usr/bin/wget -q -O /dev/null --user-agent=3477BC78CD8E5F4707B7F7897A163E9 http://servicedesk.domain.me/api/cron.php >>/private/cron.log 2>>/private/cron_error.log #servicedesk.domain.me


    no errors logged in website /private folder and syslog
    'System - Server config -> Jailkit -> Jailkit cron chrooted applications' has /usr/bin/wget entry as well..
    ispc_chrooted_web36 is owned by root - could this be a problem? but, it was automatically created by ispconfig.

    thanks for any quick help in this ...
     
  2. HSorgYves

    HSorgYves Active Member

    Can you resolve the domain name in the chroot?
     
  3. dinakar

    dinakar New Member

    Yes. It resolves the domain name and ping also works.
     
  4. dinakar

    dinakar New Member

    In some other post, ive seen creating a shell user for the website made it work. But, now after i created a shell user, putty closes out immediately after successful login for the ispconfig user.

    does anyone know how to resolve this. thx
     

Share This Page