I am trying to run a php file that performs an update using Cron. My crontab currently says
00 7 * * * XXXXX php /home/XXXXX/webapps/ogroster/update.php >> /home/XXXXX/webapps/ogroster/cronlogs/update.log 2>&1
I have substituted XXXXX for my account name.
I think I might need a path to the PHP interpreter but I can't seem to find what it would be.
Can anyone help?
asked Feb 06 '11 at 09:07
Yes, you do need the path to the PHP interpreter. The default path to the PHP binary on our side is /usr/local/bin/php (you can see it anytime by running "which php" in the SSH terminal)
answered Feb 06 '11 at 09:10