Get answers quicker by searching

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

Cron jobs with Plesk
  • Vote Up0Vote Down bplumbbplumb
    Posts: 4Sendy user

    Hello,

    I have followed all documentation regarding cron jobs, but cannot get any of them to work. This is particularly frustrating when trying to import subscribers.

    To clarify, I have tried:

    */1 *   *   *   *   php /var/www/vhosts/mydata/myurl/import-csv.php > /dev/null 2>&1
    */1 *   *   *   *   wget -O - -q -t 1 http://myurl/import-csv.php
    

    still neither work. Any suggestions? It is kind of vital to me that the cron jobs work, but so far I am struggling and my dedicated server managers also cannot understand why this is not working...

    Many thanks,

    b

  • 4 Comments
  • Vote Up0Vote Down BenBen
    Posts: 3,549Sendy support

    Hi,

    Can you check with your host what is the full path to php so you can use the full path to php in your cron job command. Some servers requires the full path to php in the cron job command.

    Thanks.

    Best regards,
    Ben

  • Vote Up0Vote Down bplumbbplumb
    Posts: 4Sendy user

    Hi Ben, they said it is

    /usr/bin/php

    does that make sense to you?

    Cheers,

    Bryan

  • Vote Up0Vote Down BenBen
    Posts: 3,549Sendy support

    Yes it makes sense to me.

    Replace php with /usr/bin/php in your cron job command.

    Best regards,
    Ben

  • Vote Up0Vote Down bplumbbplumb
    Posts: 4Sendy user

    Brilliant! Thanks Ben!

This discussion has been closed.
All Discussions