PHP error_log file delay in reporting errors

43 views Asked by At

My VPS server has Apache / PHP 8.1 and when a error found in a PHP file it creates error_log file.

That is very helpful for me to troubleshoot errors.

But the problem is that the error_log file appears in the server after a long time from the time of error triggers (30-40 minutes later).

How can I set the “error_log” file to update in real time as soon as an error is found?

I checked the “php.ini” file but didn’t see any time setting for the “error_log” file.

I read old posts on StackOverflow but no answer was found.

0

There are 0 answers