The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to prevent /usr/locap/apache/logs/error_log flooding from PHP errors ?

Discussion in 'EasyApache' started by WebHostDog, Apr 16, 2007.

  1. WebHostDog

    WebHostDog Well-Known Member

    Joined:
    Sep 3, 2006
    Messages:
    144
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Website Owner
    Hello how to prevent /usr/locap/apache/logs/error_log flooding like this :



    [Mon Apr 16 08:34:08 2007] [error] PHP Warning: feof(): supplied argument is not a valid stream resource in /home/user/public_html/domain.com/download/alfgate on line 347
    [Mon Apr 16 08:34:08 2007] [error] PHP Warning: fread(): supplied argument is not a valid stream resource in /home/user/public_html/domain.com/download/alfgate on line 348
    [Mon Apr 16 08:34:08 2007] [error] PHP Warning: feof(): supplied argument is not a valid stream resource in /home/user/public_html/domain.com/download/alfgate on line 347
    [Mon Apr 16 08:34:08 2007] [error] PHP Warning: fread(): supplied argument is not a valid stream resource in /home/user/public_html/domain.com/download/alfgate on line 348
    [Mon Apr 16 08:34:08 2007] [error] PHP Warning: feof(): supplied argument is not a valid stream resource in /home/user/public_html/domain.com/download/alfgate on line 347
    [Mon Apr 16 08:34:08 2007] [error] PHP Warning: fread(): supplied argument is not a valid stream resource in /home/user/public_html/domain.com/download/alfgate on line 348
    [Mon Apr 16 08:34:08 2007] [error] PHP Warning: feof(): supplied argument is not a valid stream resource in /home/user/public_html/domain.com/download/alfgate on line 347
    [Mon Apr 16 08:34:08 2007] [error] PHP Warning: fread(): supplied argument is not a valid stream resource in /home/user/public_html/domain.com/download/alfgate on line 348
    [Mon Apr 16 08:34:08 2007] [error] PHP Warning: feof(): supplied argument is not a valid stream resource in /home/user/public_html/domain.com/download/alfgate on line 347
    [Mon Apr 16 08:34:08 2007] [error] PHP Warning: fread(): supplied argument is not a valid stream resource in /home/user/public_html/domain.com/download/alfgate on line 348
    [Mon Apr 16 08:34:08 2007] [error] PHP Warning: feof(): supplied argument is not a valid stream resource in /home/user/public_html/domain.com/download/alfgate on line 347
    [Mon Apr 16 08:34:08 2007] [error] PHP Warning: fread(): supplied argument is not a valid stream resource in /home/user/public_html/domain.com/download/alfgate on line 348
    [Mon Apr 16 08:34:08 2007] [error] PHP Warning: feof(): supplied argument is not a valid stream resource in /home/user/public_html/domain.com/download/alfgate on line 347
    [Mon Apr 16 08:34:08 2007] [error] PHP Warning: fread(): supplied argument is not a valid stream resource in /home/user/public_html/domain.com/download/alfgate on line 348
    [Mon Apr 16 08:34:08 2007] [error] PHP Warning: feof(): supplied argument is not a valid stream resource in /home/user/public_html/domain.com/download/alfgate on line 347
    [Mon Apr 16 08:34:08 2007] [error] PHP Warning: fread(): supplied argument is not a valid stream resource in /home/user/public_html/domain.com/download/alfgate on line 348
    [Mon Apr 16 08:34:08 2007] [error] PHP Warning: feof(): supplied argument is not a valid stream resource in /home/user/public_html/domain.com/download/alfgate on line 347
    [Mon Apr 16 08:34:08 2007] [error] PHP Warning: fread(): supplied argument is not a valid stream resource in /home/user/public_html/domain.com/download/alfgate on line 348
    [Mon Apr 16 08:34:08 2007] [error] PHP Warning: feof(): supplied argument is not a valid stream resource in /home/user/public_html/domain.com/download/alfgate on line 347
    [Mon Apr 16 08:34:08 2007] [error] PHP Warning: fread(): supplied argument is not a valid stream resource in /home/user/public_html/domain.com/download/alfgate on line 348
    [Mon Apr 16 08:34:08 2007] [error] PHP Warning: feof(): supplied argument is not a valid stream resource in /home/user/public_html/domain.com/download/alfgate on line 347
    [Mon Apr 16 08:34:08 2007] [error] PHP Warning: fread(): supplied argument is not a valid stream resource in /home/user/public_html/domain.com/download/alfgate on line 348
    [Mon Apr 16 08:34:08 2007] [error] PHP Warning: feof(): supplied argument is not a valid stream resource in /home/user/public_html/domain.com/download/alfgate on line 347
    [Mon Apr 16 08:34:08 2007] [error] PHP Warning: fread(): supplied argument is not a valid stream resource in /home/user/public_html/domain.com/download/alfgate on line 348
    [Mon Apr 16 08:34:08 2007] [error] PHP Warning: feof(): supplied argument is not a valid stream resource in /home/user/public_html/domain.com/download/alfgate on line 347
    [Mon Apr 16 08:34:08 2007] [error] PHP Warning: fread(): supplied argument is not a valid stream resource in /home/user/public_html/domain.com/download/alfgate on line 348
    [Mon Apr 16 08:34:08 2007] [error] PHP Warning: feof(): supplied argument is not a valid stream resource in /home/user/public_html/domain.com/download/alfgate on line 347
    [Mon Apr 16 08:34:08 2007] [error] PHP Warning: fread(): supplied argument is not a valid stream resource in /home/user/public_html/domain.com/download/alfgate on line 348
    [Mon Apr 16 08:34:08 2007] [error] PHP Warning: feof(): supplied argument is not a valid stream resource in /home/user/public_html/domain.com/download/alfgate on line 347
    [Mon Apr 16 08:34:08 2007] [error] PHP Warning: fread(): supplied argument is not a valid stream resource in /home/user/public_html/domain.com/download/alfgate on line 348
    [Mon Apr 16 08:34:08 2007] [error] PHP Warning: feof(): supplied argument is not a valid stream resource in /home/user/public_html/domain.com/download/alfgate on line 347
    [Mon Apr 16 08:34:08 2007] [error] PHP Warning: fread(): supplied argument is not a valid stream resource in /home/user/public_html/domain.com/download/alfgate on line 348



    both options in php.ini are On:


    ; Do not log repeated messages. Repeated errors must occur in same file on same
    ; line until ignore_repeated_source is set true.
    ignore_repeated_errors = On

    ; Ignore source of message when ignoring repeated messages. When this setting
    ; is On you will not log errors with repeated messages from different files or
    ; sourcelines.
    ignore_repeated_source = On



    Any ideas ?



    Thanks,
     
  2. netwrkr

    netwrkr Well-Known Member

    Joined:
    Apr 12, 2003
    Messages:
    203
    Likes Received:
    0
    Trophy Points:
    16
    httpd.conf

    #
    # LogLevel: Control the number of messages logged to the error_log.
    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    #
    LogLevel crit


    Tom
     
  3. WebHostDog

    WebHostDog Well-Known Member

    Joined:
    Sep 3, 2006
    Messages:
    144
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Website Owner
    Hello netwrkr,
    Thanks for your reply.
    So this is not dependant from this 2 PHP settings but you need to kick Apache's conf ?
     
  4. netwrkr

    netwrkr Well-Known Member

    Joined:
    Apr 12, 2003
    Messages:
    203
    Likes Received:
    0
    Trophy Points:
    16
    Thats correct. httpd.conf
     
Loading...

Share This Page