HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   mod_fcgid saves notices in error.log !! (http://www.howtoforge.com/forums/showthread.php?t=50897)

007007 11th January 2011 18:43

mod_fcgid saves notices in error.log !!
 
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

till 11th January 2011 21:38

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.

007007 11th January 2011 21:42

thx

i have

error_reporting = E_ALL & ~E_DEPRECATED

it's no good ?

till 11th January 2011 21:44

Quote:

it's no good ?
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

007007 11th January 2011 22:16

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


007007 15th January 2011 11:14

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

error_reporting = E_ALL & ~ E_NOTICE & ~ E_DEPRECATED

007007 28th January 2011 23:42

up please ^^

Warg 28th May 2011 20:51

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).

esmiz 4th August 2011 00:46

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


All times are GMT +2. The time now is 20:11.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.