Cronjob

6 years 1 week ago #2311 by Rene367

My cronjobs will not start

i used this example within brackets and without brackets but the job will not start

0 4 * * * (cd JOOMLA-ROOT/administrator/components/com_datafeeds;php feedcron.php)
what can be wrong



  • Posts: 109
  • Thank you received:

  • Gender: Unknown
  • Birthdate: Unknown
  • Please Log in to join the conversation.

    6 years 1 week ago #2316 by bram

    Mostly you will receive email from the cronjob with to output or error messages.

    'does not start' is a bit disambiguous

    did you replace JOOMLA-ROOT with the real path?
    does you host allow command line PHP ?



  • Posts: 1494
  • Karma: 57
  • Thank you received: 247

  • Gender: Unknown
  • Birthdate: Unknown
  • Please Log in to join the conversation.

    6 years 1 week ago - 6 years 5 days ago #2319 by Rene367

    Yes my host provides me with access.
    I had not set up my emailadress, done that today.
    get error message
    Could not open input file: feedcron.php

    /bin/sh: line 0: cd: /var/www/vhosts/xxxx.nl/httpdocs/webshop/administrator/components/com_datafeeds: No such file or directory
    Could not open input file: feedcron.php



  • Posts: 109
  • Thank you received:

  • Gender: Unknown
  • Birthdate: Unknown
  • Last Edit: 6 years 5 days ago by Rene367.

    Please Log in to join the conversation.

    6 years 1 week ago #2320 by bram

    looks like the path /var/www/vhosts/beginop.nl/httpdocs/webshop/administrator/components/com_datafeeds is not correct

    and it should be ../com_datafeeds/cron



  • Posts: 1494
  • Karma: 57
  • Thank you received: 247

  • Gender: Unknown
  • Birthdate: Unknown
  • Please Log in to join the conversation.

    6 years 1 week ago - 6 years 5 days ago #2325 by Rene367

    i used path.php to find the correct path

    well hopefully was this last piece the wrong thing so if i am correct i must use


    /var/www/vhosts/xxxx.nl/httpdocs/webshop/administrator/components/com_datafeeds/cron

    is that within or without brackets

    ( cd //var/www/vhosts/xxxp.nl/httpdocs/webshop/administrator/components/com_datafeeds/cron)



  • Posts: 109
  • Thank you received:

  • Gender: Unknown
  • Birthdate: Unknown
  • Last Edit: 6 years 5 days ago by Rene367.

    Please Log in to join the conversation.

    6 years 1 week ago - 6 years 1 week ago #2331 by Rene367

    it works through a wget call



  • Posts: 109
  • Thank you received:

  • Gender: Unknown
  • Birthdate: Unknown
  • Last Edit: 6 years 1 week ago by Rene367.

    Please Log in to join the conversation.

    Time to create page: 0.042 seconds
    Powered by Kunena Forum