I have a cron job scheduled to run under the root user, but it is silently failing.
The command calls a php script which among other things runs mysqldump via exec, this dump is not being created. There are no error messages in the apache log but other cron jobs are running ok. I'm not receiving any email errors (although despite having setup MAILTO I don't ever get emails even when removing > /dev/null)
When I run the same command directly via terminal everything runs ok, so I'm at a loss as to what's going wrong!
Update: I've add a database insert to the php script to try and figure out what's going on. This isn't working either but there are no entries in the apache log. As the script is being run via the terminal not as a webserver would error messages be logged elsewhere?
I've also tried changing the cron command to curl to the php script rather than run it directly but this isn't working either...