I am able to run the spider from the shell and index URLs in a file using
Code:
php -f spider.php newurls.txt >> spider.log
However, when I setup a cron job using
Code:
0 1 * * * php -f spider.php newurls.txt >> spider.log
it does not work. I get the following error:
Code:
/bin/sh: php: command not found
and do not know why. Which command is the error referring to? What do I need to change?
Any help would be appreciated.