[nycbug-talk] php scripts from crontab

David Lawson dave at donnerjack.com
Mon Oct 30 22:32:43 EST 2006


On Oct 30, 2006, at 10:26 PM, Dan Langille wrote:

> On 30 Oct 2006 at 20:00, Matthew Terenzio wrote:
>
>>
>> Anyone have any experience running PHP scripts from /etc/crontab
>>
>> The cron log  shows it's happening but it seems like it's shooting
>> blanks.
>>
>> The same command works perfectly when I just run it manually from the
>> command line.
>>
>> php /path/to/script/cron.php

I'd put in the full path to the php interpreter.  Keep in mind that  
cron runs with a different environment than you as a user do, so  
unless you've set up a full PATH and the like in your crontab, I'd  
fully qualify the paths to everything in there.

--Dave



More information about the talk mailing list