why a php script won't run when place in cron.. fine when i run it manually..

gundamz

Well-Known Member
Mar 27, 2002
245
0
316
Hi all,

I couldn't find any error to trace down the reason why my php script did not run though cron indicate that it was started. When i run the script manually, it works.

I couldn't remember what caused this.
 

mohakevin

Well-Known Member
Jan 19, 2005
84
0
156
If you try to run the script in the command line, in example:

php your_script.php
does it say any errors ?

Besides, check if there are several php installed.

You can try with:

whereis php


or with:

locate php

Regards
 

AndyReed

Well-Known Member
PartnerNOC
May 29, 2004
2,217
4
193
Minneapolis, MN
I couldn't find any error to trace down the reason why my php script did not run though cron indicate that it was started. When i run the script manually, it works.
Did you restart crond? If yes, it is very likely the entry in crontab is not correct.