Cron jobs with Plesk
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
This discussion has been closed.
Comments
Hi,
Can you check with your host what is the full path to
phpso you can use the full path tophpin your cron job command. Some servers requires the full path tophpin the cron job command.Thanks.
Best regards,
Ben
Hi Ben, they said it is
/usr/bin/phpdoes that make sense to you?
Cheers,
Bryan
Yes it makes sense to me.
Replace
phpwith/usr/bin/phpin your cron job command.Best regards,
Ben
Brilliant! Thanks Ben!