Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    1
    Trophy Points:
    166
    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,
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. netwrkr

    netwrkr Well-Known Member

    Joined:
    Apr 12, 2003
    Messages:
    203
    Likes Received:
    0
    Trophy Points:
    166
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. WebHostDog

    WebHostDog Well-Known Member

    Joined:
    Sep 3, 2006
    Messages:
    144
    Likes Received:
    1
    Trophy Points:
    166
    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 ?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. netwrkr

    netwrkr Well-Known Member

    Joined:
    Apr 12, 2003
    Messages:
    203
    Likes Received:
    0
    Trophy Points:
    166
    Thats correct. httpd.conf
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice