I know there must be a guru in here somewhere who happens to know both PHP and crontab & how to run a PHP file from within cron. suexec is compiled within Apache.
The file seems to run from a browser when I navigate directly to it but it doesn't run from within cron (Linux).
I do not see any errors, but I may be looking in the wrongplace. Sometimes running the command at the console will email the [email protected] to say "bash/sh: Command not Found 'php'". Sometimes it does not provide any errors at all.
Here's another little tip to keep in mind as well:
php can call the script all you want, in fact that's good. HOWEVER, if this is, say, for a billing client, or something else that's part of a larger store, you have to keep in mind that functions WILL stop it from working properly, unless you call it as such:
This will allow the functions in public_html to be called if necessary, and the includes to be loaded properly.
I know, it's confusing, but best practice is ALWAYS to put in that second argument, for the working directory.
WHMCS Guru - WHMCS addons, management, support and more. WHMCS Notifications Extended - Add slack, hipchat, SMS, pushover to WHMCS !!
Linux Problems? WHMCS Issues? +1-866-546-8914 (linux-14) or @whmcsguru on twitter!