Re: PHP run from cron fails occasionally
| From: | Aziz Saleh | Date: | Sun, 13 Oct 2024 20:45:38 +0000 |
| Subject: | Re: PHP run from cron fails occasionally | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-328563@lists.php.net to get a copy of this message | ||
Try using absolute paths for the php binary and the job itself.
On Sun, Oct 13, 2024 at 4:20 PM Steve Matzura <sm@noisynotes.com> wrote:
> This is the strangest thing I've encountered yet. I thought the original
> problem was the "-f" in the command, so I removed it. Still, every
> couple days the command that runs the PHP script fails to execute. Since no
> log is generated, I don't know what else to do to diagnose this. If I run
> the script from the terminal, it always works, creates the report and mails
> it. I've even looked in syslog for when the cron job runs, and it indeed
> runs to completion with no errors. Suggestions as to how to trace this one
> down most welcome.
>