Question

According to the manual log_errors_max_len

Set the maximum length of log_errors in bytes. In error_log information about the source is added. The default is 1024 and 0 allows to not apply any maximum length at all. This length is applied to logged errors, displayed errors and also to $php_errormsg.

When an integer is used, the value is measured in bytes. Shorthand notation, as described in this FAQ, may also be used.

However even when i set this setting, php still allows this file to reach unlimited file sizes. In my php.ini file the file size is still limited to 1024 as said in the manual. What could be wrong with it or possible overriding it?

Was it helpful?

Solution

log_errors_max_len sets maximum length of a single error message, it has nothing to do with log file size. You need to set log rotation if you don't want it to grow too much

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top