在php.ini中,log_errors_max_len = 1024,但是php日志持续增长 [英] log_errors_max_len = 1024 in php.ini, but php log keeps growing

查看:331
本文介绍了在php.ini中,log_errors_max_len = 1024,但是php日志持续增长的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正如标题所述,我已经设置了php错误日志的最大长度,但它似乎一直在增长,远大于1024.我使用的是正确的php.ini,我已经重新启动了apache等. php日志上的权限为666.

As the title says, I've set the max length for the php error log, but it seems to keep growing much much larger than 1024. I am using the correct php.ini, I've restarted apache, etc. The permissions on the php log are 666.

推荐答案

正如PHP的典型用法,从配置设置的名称甚至

As is typical for PHP, it is not really obvious from the name of the configuration setting, or even the documentation, but this directive applies to the length of a single log message, not the length of the log file as a whole.

使用logrotate或类似工具进行尝试.

Use logrotate or a similar tool for what you are trying to do.

这篇关于在php.ini中,log_errors_max_len = 1024,但是php日志持续增长的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆