It looks like you're new here. If you want to get involved, click one of these buttons!
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...
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.
Hi Ben, they said it is
does that make sense to you?
Yes it makes sense to me.
Replace php with /usr/bin/php in your cron job command.
Brilliant! Thanks Ben!