Apache + php-fpm AH01071:出现错误“日志缓冲区已满(1024)。访问日志请求已被截断

时间:2020-06-06 03:35:23

标签: php apache apache2 fpm

针对Apache和php环境出现以下错误。

public class Node {

    public Node previous;
    public Node next;


    public int size() {
    int count = 0;
    if (next == null) {
        count += 1;
    }
    if (next != null) {
        count = 1 + next.size();
    }
    return count; 
    }


    public Node get(int idx) { 
    int count = 0;
    if (next != null) {
        if (idx >= 0 && idx <= size()) {
            if (count == idx) {
                return next.previous;
            }
            count++;
        }
        //return get(idx);
    }
    return next.previous;
}

如何解决此问题?

1 个答案:

答案 0 :(得分:1)

打开/etc/php-fpm.conf并更新log_limit = 4096或更高的值,然后更新systemctl restart php-fpm