Script runs perfectly manually but not via cronjob

t04st3d151

Member
Dec 31, 2007
7
0
51
Hi,

I've setup a cronjob for one of my scripts.

If I tail the cron log file:

Jan 30 11:53:01 vps crond[7173]: (user) CMD (/usr/bin/php -f /home/user/public_html/cron.php)
Jan 30 11:54:01 vps crond[8043]: (root) CMD (/usr/bin/php -f /home/user/public_html/cron.php)
Jan 30 11:54:01 vps crond[8044]: (user) CMD (/usr/bin/php -f /home/user/public_html/cron.php)

The above shows crontab executing the command, however it doesnt actually run.

If I manually run - /usr/bin/php -f /home/user/public_html/cron.php it picks it up and works near immediately.

I've setup the cron under the users cpanel account as well as root to see if it was a permissions issue, but still same issue.

Any ideas?