mod_fcgid saves notices in error.log !!

Discussion in 'Installation/Configuration' started by 007007, Jan 11, 2011.

  1. 007007

    007007 New Member

    Hello,

    is that possible for mod_fcgid does not log notices in the error.log, only the warning ?

    example in /var/log/apache2/error.log :

    Code:
    [Tue Jan 11 17:33:50 2011] [notice] mod_fcgid: call /var/www/site.com/web/forum/index.php with wrapper /var/www/php-fcgi-scripts/web1/.php-fcgi-starter
    [Tue Jan 11 17:33:50 2011] [notice] mod_fcgid: call /var/www/site.com/web/forum/index.php with wrapper /var/www/php-fcgi-scripts/web1/.php-fcgi-starter
    [Tue Jan 11 17:33:50 2011] [notice] mod_fcgid: call /var/www/site.com/web/index.php with wrapper /var/www/php-fcgi-scripts/web1/.php-fcgi-starter
    [Tue Jan 11 17:33:50 2011] [notice] mod_fcgid: call /var/www/site.com/web/index.php with wrapper /var/www/php-fcgi-scripts/web1/.php-fcgi-starter
    [Tue Jan 11 17:33:50 2011] [notice] mod_fcgid: call /var/www/site.com/web/forum/index.php with wrapper /var/www/php-fcgi-scripts/web1/.php-fcgi-starter
    [Tue Jan 11 17:33:50 2011] [notice] mod_fcgid: call /var/www/site.com/web/plugins/content/jw_allvideos/includes/jw_allvideos_scripts.php with wrapper
    example in /var/log/ispconfig/httpd/mysite.com/error.log :

    Code:
    on line 207
    [Mon Jan 10 16:14:47 2011] [warn] mod_fcgid: stderr: PHP Notice:  Undefined index: user8 in /var/www/clients/client1/web1/web/templates/voxpopuli/index.php on line 207
    [Mon Jan 10 16:14:48 2011] [warn] mod_fcgid: stderr: PHP Notice:  Undefined index: user8 in /var/www/clients/client1/web1/web/templates/voxpopuli/index.php on line 207
    [Mon Jan 10 16:14:48 2011] [warn] mod_fcgid: stderr: PHP Notice:  Undefined index: user8 in /var/www/clients/client1/web1/web/templates/voxpopuli/index.php on line 207
    [Mon Jan 10 16:14:48 2011] [warn] mod_fcgid: stderr: PHP Notice:  Undefined index: user8 in /var/www/clients/client1/web1/web/templates/voxpopuli/index.php on line 207
    [Mon Jan 10 16:14:48 2011] [warn] mod_fcgid: stderr: PHP Notice:  Undefined index: user8 in /var/www/clients/client1/web1/web/templates/voxpopuli/index.php on line 207
    [Mon Jan 10 16:14:58 2011] [warn] mod_fcgid: stderr: PHP Notice:  Undefined index: user8 in /var/www/clients/client1/web1/web/templates/voxpopuli/index.php on line 207
    [Mon Jan 10 16:14:58 2011] [warn] mod_fcgid: stderr: PHP Notice:  Undefined index: user8 in /var/www/clients/client1/web1/web/templates/voxpopuli/index.php on line 207
    [Mon Jan 10 16:15:04 2011] [warn] mod_fcgid: stderr: PHP Notice:  Undefined index: user8 in /var/www/clients/client1/web1/web/templates/voxpopuli/index.php on line 207
    [Mon Jan 10 16:15:04 2011] [warn] mod_fcgid: stderr: PHP Notice:  Undefined index: user8 in /var/www/clients/client1/web1/web/templates/voxpopuli/index.php on line 207
    it increases the size of log files unnecessarily

    thank you
     
    Last edited: Jan 11, 2011
  2. till

    till Super Moderator

    Please edit the php.ini file(s) on your server and change error_reporting to:

    error_reporting = E_ALL & ~E_NOTICE

    and then restart apache.
     
  3. 007007

    007007 New Member

    thx

    i have

    error_reporting = E_ALL & ~E_DEPRECATED

    it's no good ?
     
  4. till

    till Super Moderator

    No. As this will cause php to send a lot of notices and that is what you get now in the error log.

    If you dont want to see deprecated warnings too, try this:

    error_reporting = E_ALL & ~E_NOTICE | E_DEPRECATED
     
  5. 007007

    007007 New Member

    ok i did (in all php.ini, apache2, cgi, cli)

    but messages deprecated still logged in error.log

    Code:
    [Tue Jan 11 22:13:45 2011] [warn] mod_fcgid: stderr: PHP Deprecated:  Function split() is deprecated in /var/www/clients/client1/web1/web/modules/mod_jaslideshow2/mod_jaslideshow2.php on line 30
    [Tue Jan 11 22:13:45 2011] [warn] mod_fcgid: stderr: PHP Deprecated:  Function eregi() is deprecated in /var/www/clients/client1/web1/web/components/com_sh404sef/sef_ext/com_hwdvideoshare.php on line 32
    [Tue Jan 11 22:13:45 2011] [warn] mod_fcgid: stderr: PHP Deprecated:  Function split() is deprecated in /var/www/clients/client1/web1/web/modules/mod_jaslideshow2/mod_jaslideshow2.php on line 30
     
  6. 007007

    007007 New Member

    to ignore notices and deprecated in error.log, I must do this ?

    error_reporting = E_ALL & ~ E_NOTICE & ~ E_DEPRECATED
     
  7. 007007

    007007 New Member

    up please ^^
     
  8. Warg

    Warg New Member

    I'm also tormented by those excessive notices in the log.
    Have you found any solution? mod_fcgid doesn't seem to respect Apache's LogLevel directive.
    Also in php.ini error_reporting is set to E_ALL & ~E_NOTICE (I don't have "deprecated" messages).
     
    Last edited: May 28, 2011
  9. esmiz

    esmiz New Member

    Hi

    I do also have that problem after upgrading from debian lenny to squeeze that uses php 5.3.
    For me the fix it has been to set error_reporting in the /etc/php5/*/php.ini files to
    Code:
    error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED
    Restart apache, and then make sure the offending php.ini in /var/www/conf/web*/ picked up the settings
    If it didn't make any change in the custom php.ini settings in ispconfig3 control panel and save.

    Regards
     

Share This Page