Cron job question

Discussion in 'General' started by autogun, Dec 22, 2009.

  1. autogun

    autogun New Member


    A client of mine is using ISPconfig's hosting control panel and trying to setup a cron job using "Sites > Cron jobs".

    Cron job looks like this -
    */5 * * * * php -f /var/www/ > /var/www/
    The problem is, the "test.log" file is being created empty -
    -rw-r--r-- 1 web4     client2      0 2009-12-22 04:35 test.log
    The right output should be -
    2009-12-21 04:35:49: start...
    2009-12-21 04:36:34: done...
    Can somebody suggest why this is not working?

    Thanks in advance!
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    I guess the php interpreter is not found on your system. Use the full path to php in your command like:

    /usr/bin/php -f /var/www/ > /var/www/
  3. autogun

    autogun New Member

    You nailed it Till,
    Thanks you!

Share This Page