Crontab error


#1

i keep getting the following email…

/bin/sh: /home/USERNAME/pop.cron.php: /usr/bin/php: bad interpreter: No such file or directory

But my cron has been set as…

*/1 * * * * /home/USERNAME/pop.cron.php

Im wanting this to run every minute, btw ive edited out username, help is appreciated.

Thanks :)!


#2

/usr/bin/php: bad interpreter: No such file or directory

$ ls /usr/bin/php ls: /usr/bin/php: No such file or directory $ which php /usr/local/bin/php
If you want useful replies, ask smart questions.


#3

Sorry i dont understand, atm ive got it working by WGET … but rather use normal cron. so can u elaberate more plz?


#4

the script that cron is calling, pop.cron.php, is referencing php from the wrong location. if you’ve got a line at the top of the script that says

#!/usr/bin/php

change it to

#!/usr/bin/local/php