Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 11th January 2011, 19:43
007007 007007 is offline
Senior Member
 
Join Date: Jul 2010
Posts: 139
Thanks: 5
Thanked 0 Times in 0 Posts
Default 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

Last edited by 007007; 11th January 2011 at 21:16.
Reply With Quote
Sponsored Links
  #2  
Old 11th January 2011, 22:38
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,733
Thanks: 840
Thanked 5,597 Times in 4,407 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 11th January 2011, 22:42
007007 007007 is offline
Senior Member
 
Join Date: Jul 2010
Posts: 139
Thanks: 5
Thanked 0 Times in 0 Posts
Default

thx

i have

error_reporting = E_ALL & ~E_DEPRECATED

it's no good ?
Reply With Quote
  #4  
Old 11th January 2011, 22:44
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,733
Thanks: 840
Thanked 5,597 Times in 4,407 Posts
Default

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
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 11th January 2011, 23:16
007007 007007 is offline
Senior Member
 
Join Date: Jul 2010
Posts: 139
Thanks: 5
Thanked 0 Times in 0 Posts
Default

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
Reply With Quote
  #6  
Old 15th January 2011, 12:14
007007 007007 is offline
Senior Member
 
Join Date: Jul 2010
Posts: 139
Thanks: 5
Thanked 0 Times in 0 Posts
Default

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

error_reporting = E_ALL & ~ E_NOTICE & ~ E_DEPRECATED
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
error.log files are empty autogun General 2 13th December 2010 17:05
Handling of error.log logrotate Andreas0815 Feature Requests 0 1st November 2010 14:31
Apache2 error.log problem Quissi Server Operation 2 18th September 2009 16:04
Fsck saves!!! matey HOWTO-Related Questions 0 19th August 2009 19:06
Server crashed by unlimited error.log size - how to set a limit? tom Installation/Configuration 16 22nd April 2008 13:16


All times are GMT +2. The time now is 22:55.


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