Cron job not executing for a web user

Discussion in 'ISPConfig 3 Priority Support' started by webguyz, Sep 18, 2015.

  1. webguyz

    webguyz Active Member HowtoForge Supporter

    First time attempt to run a cron job for a website. I have define the following for web1:

    /usr/bin/php -q /var/www/clients/client1/web1/web/home/admin/cron.php

    In the /var/syslog I see this entry at the appointed time:

    Sep 18 12:30:01 my /USR/SBIN/CRON[14041]: (web1) CMD (/usr/bin/php -q /var/www/clients/client1/web1/web/home/admin/cron.php #webdude.net)

    But nothing executes. This is an invoicing app but nothing runs. If I log in as root and execute the entry from the commandline as root then it does work. Does web 1 not have enough rights to run this maybe??

    Any ideas of where to start looking would be helpful.

    Thanks!
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Check that this is a full con and not jailed con.

    BTW. The easiest way for such a cro job is to enter just the URL starting with http in the command field.
     
  3. webguyz

    webguyz Active Member HowtoForge Supporter

  4. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPCOnfig creates the wget command on its own, so you can enter just the url http://my-website/admin/cron.php in ispconfig in the command field and ispconfig takes care to create the right wget command and inserts it in the crontab.
    in ispconfig
     
  5. webguyz

    webguyz Active Member HowtoForge Supporter

    Got it. Working fine.
    Thanks!
     

Share This Page