Cron Job not working

Discussion in 'General' started by asn, Sep 13, 2011.

  1. asn

    asn New Member

    Sir, my cron job is not working.

    When I check in ISPConfig monitor tab
    Under monitor tab - ISPConfig Cron - Log, I see following output

    mkdir: cannot create directory `/var/www/clients/client1/web1/var': File exists
    mkdir: cannot create directory `/var/www/clients/client1/web1/var/run': File exists
    mkdir: cannot create directory `/var/www/clients/client1/web1/var/run/mysqld': File exists
    ln: creating hard link `/var/www/clients/client1/web1/var/run/mysqld/mysqld.sock': File exists
    invalid shell, /var/www/clients/client1/web1/bin/bash does not exist
    usermod: no changes

    Why this problem comes. Please help me.

    Thanks & Regards
    ASN
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the settings of your cronjob and the command that you execute.
     
  3. asn

    asn New Member

    Cron Job Command

    Thank you for replay

    In site cron job settings

    Minute - *
    Hours - *
    Days of month - *
    Months - *
    Days of week - *
    Command to run - /usr/bin/php -f /var/www/clients/client1/web1/web/admin/cron/cron.php

    Thanks & Regards
    ASN
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    According to the above errors, you created a jailed cronjob. But the php binary is not in the jail, so the cronjob can not work.

    As the cronjob is a php script, you should use a url cronjob instead. Enter as command the url to the php script, e.g.:

    http://www.yourdomain.tld/admin/cron/cron.php
     
  5. asn

    asn New Member

    Cron Job working

    Thank you very much for your reply.

    My cron job working.

    Thanks & Regards
    ASN
     

Share This Page