cron job not doing as expect… not working properly?

VoronskyVam

New Member
I have a cron job setup to run every minute.\[code\]/usr/bin/php -q /home/domain/public_html/ajax/cron.php > /home/domain/public_html/ajax/cron_output.log\[/code\]Inside the cron.php, I have\[code\]#!/usr/bin/php<?phpecho 'cron ran';?>\[/code\]The cron_output.log I can see the modified date is updating each minute, but the contents off it is blank. Why wouldn't it have "cron ran"?This is a starting point for me, because I have a lot more code I'm trying to run, and it's not running. I'm also writing to an error_log, but it's not writing to that log either. However, the update date is changing on cron_output.log....Any help would be awesome!
 
Back
Top