For security reasons, I am anonymizing the path to my file and my email. Trust that it is written correctly in the actual cron. That has been checked and rechecked as I try to solve this.
*/10 * * * * sh -c $'/usr/local/php5/bin/php /home/myuser/mysite/myfolder/myfile.php'
myfile.php has the following permissions: (chmod 744)
I get nothing in my email from the cron.
If I run the script (sh -c $'/...) from an SSH session, I get nothing. Nothing that is, unless I am running it from the /home/myuser/mysite/myfolder directory.
If I run it from there, it works just fine. What can I do to fix this?