问题描述
正如标题所说,我已经为 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 日志一直在增长的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!



大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)