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, 18: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 20:16.
Reply With Quote
Sponsored Links
  #2  
Old 11th January 2011, 21:38
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,176
Thanks: 829
Thanked 5,414 Times in 4,257 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, 21: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, 21:44
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,176
Thanks: 829
Thanked 5,414 Times in 4,257 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, 22: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, 11: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
  #7  
Old 28th January 2011, 23:42
007007 007007 is offline
Senior Member
 
Join Date: Jul 2010
Posts: 139
Thanks: 5
Thanked 0 Times in 0 Posts
Default

up please ^^
Reply With Quote
  #8  
Old 28th May 2011, 20:51
Warg Warg is offline
Junior Member
 
Join Date: May 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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 by Warg; 28th May 2011 at 20:57.
Reply With Quote
  #9  
Old 4th August 2011, 00:46
esmiz esmiz is offline
Member
 
Join Date: Dec 2009
Posts: 44
Thanks: 4
Thanked 3 Times in 3 Posts
 
Default

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
Reply With Quote
The Following User Says Thank You to esmiz For This Useful Post:
falko (4th August 2011)
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 16:05
Handling of error.log logrotate Andreas0815 Feature Requests 0 1st November 2010 13:31
Apache2 error.log problem Quissi Server Operation 2 18th September 2009 15:04
Fsck saves!!! matey HOWTO-Related Questions 0 19th August 2009 18:06
Server crashed by unlimited error.log size - how to set a limit? tom Installation/Configuration 16 22nd April 2008 12:16


All times are GMT +2. The time now is 18:07.


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