• <bdo id='k6741'></bdo><ul id='k6741'></ul>
    <i id='k6741'><tr id='k6741'><dt id='k6741'><q id='k6741'><span id='k6741'><b id='k6741'><form id='k6741'><ins id='k6741'></ins><ul id='k6741'></ul><sub id='k6741'></sub></form><legend id='k6741'></legend><bdo id='k6741'><pre id='k6741'><center id='k6741'></center></pre></bdo></b><th id='k6741'></th></span></q></dt></tr></i><div id='k6741'><tfoot id='k6741'></tfoot><dl id='k6741'><fieldset id='k6741'></fieldset></dl></div>

    1. <tfoot id='k6741'></tfoot>

        <small id='k6741'></small><noframes id='k6741'>

      1. <legend id='k6741'><style id='k6741'><dir id='k6741'><q id='k6741'></q></dir></style></legend>

        php.ini 中的 log_errors_max_len = 1024,但 php 日志一直在增长

        时间:2023-10-12
          <tbody id='kO6pQ'></tbody>
        • <bdo id='kO6pQ'></bdo><ul id='kO6pQ'></ul>
          <i id='kO6pQ'><tr id='kO6pQ'><dt id='kO6pQ'><q id='kO6pQ'><span id='kO6pQ'><b id='kO6pQ'><form id='kO6pQ'><ins id='kO6pQ'></ins><ul id='kO6pQ'></ul><sub id='kO6pQ'></sub></form><legend id='kO6pQ'></legend><bdo id='kO6pQ'><pre id='kO6pQ'><center id='kO6pQ'></center></pre></bdo></b><th id='kO6pQ'></th></span></q></dt></tr></i><div id='kO6pQ'><tfoot id='kO6pQ'></tfoot><dl id='kO6pQ'><fieldset id='kO6pQ'></fieldset></dl></div>
          <legend id='kO6pQ'><style id='kO6pQ'><dir id='kO6pQ'><q id='kO6pQ'></q></dir></style></legend>
            1. <small id='kO6pQ'></small><noframes id='kO6pQ'>

                1. <tfoot id='kO6pQ'></tfoot>

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

                  上一篇:由于只读属性,PHP mkdir 权限被拒绝在 Windows Server 2008 IIS 7 上运行? 下一篇:PHP:如何检查文件是否不存在或权限是否被拒绝?

                  相关文章

                    <tfoot id='ALKoZ'></tfoot>
                    <i id='ALKoZ'><tr id='ALKoZ'><dt id='ALKoZ'><q id='ALKoZ'><span id='ALKoZ'><b id='ALKoZ'><form id='ALKoZ'><ins id='ALKoZ'></ins><ul id='ALKoZ'></ul><sub id='ALKoZ'></sub></form><legend id='ALKoZ'></legend><bdo id='ALKoZ'><pre id='ALKoZ'><center id='ALKoZ'></center></pre></bdo></b><th id='ALKoZ'></th></span></q></dt></tr></i><div id='ALKoZ'><tfoot id='ALKoZ'></tfoot><dl id='ALKoZ'><fieldset id='ALKoZ'></fieldset></dl></div>
                  1. <small id='ALKoZ'></small><noframes id='ALKoZ'>

                  2. <legend id='ALKoZ'><style id='ALKoZ'><dir id='ALKoZ'><q id='ALKoZ'></q></dir></style></legend>
                        <bdo id='ALKoZ'></bdo><ul id='ALKoZ'></ul>