Im trying to run a PHP script, once a day, on ubuntu 13.10 server with php5.
I have cron jobs set up, via ajenti control panel, verified with crontab -l
, for this command.
php /path/script.php site_id=2 table=clicks
I have been adjusting the time while trying to get it to run, but basically I want to run it at 2am.
0 2 * * *
I have tried running the script directly, running it via /usr/bin/php
, /usr/bin/php5/
, and php
, and nothing ever leaves a trace in syslog, or the apache log or error files (trace level 8)
I was trying to run it at 2am, so I set it that way, but running a date
on the terminal shows the current time as
Thu Feb 6 07:44:29 UTC 2014
I have tried running the cron jobs at 7something am too, and again, nothing runs.
Any ideas? Besides syslog, is there any ubuntu logging for cron jobs, to see if they run or don't and why?
Also, is that the proper way to send arguments? Does the script need to accept them any differently than a web based script?