Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 22nd February 2013, 00:15
Norman Norman is offline
HowtoForge Supporter
 
Join Date: May 2006
Posts: 242
Thanks: 0
Thanked 18 Times in 14 Posts
Default Disabling PHP notices to error.log

Hi

What is the recommended way to disable PHP notices to a clients error log?
I dont want to disable it for all clients , but just for specific site.

Any ideas?

[Wed Feb 20 17:56:38 2013] [warn] [client x.x.x.x] mod_fcgid: stderr: PHP Notice: Undefined index: account_id in /var/www/clients/clientX/webX/web/backend/system/commons.php on line 188, referer: http://X

The PHP scripts already contain <?php ini_set('display_errors', 0); ini_set("log_errors", 0); ini_set("error_reporting", null); error_reporting(0); session_start(); but they still seem to report notices.
__________________
http://www.xh.se
Reply With Quote
Sponsored Links
  #2  
Old 22nd February 2013, 13:18
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,046
Thanks: 826
Thanked 5,385 Times in 4,231 Posts
Default

which php mode do ou use in that website?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 22nd February 2013, 14:27
Norman Norman is offline
HowtoForge Supporter
 
Join Date: May 2006
Posts: 242
Thanks: 0
Thanked 18 Times in 14 Posts
Default

Should be fast-cgi.
__________________
http://www.xh.se
Reply With Quote
  #4  
Old 22nd February 2013, 14:40
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,046
Thanks: 826
Thanked 5,385 Times in 4,231 Posts
Default

Then you can set a custom error reporting level for this site in the php.ini field of the options tab of the website.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 22nd February 2013, 14:43
Norman Norman is offline
HowtoForge Supporter
 
Join Date: May 2006
Posts: 242
Thanks: 0
Thanked 18 Times in 14 Posts
Default

To disable all notices to error log, what would I enter?
Im a bit uncertain of the syntax for this field.
__________________
http://www.xh.se
Reply With Quote
  #6  
Old 22nd February 2013, 15:02
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,046
Thanks: 826
Thanked 5,385 Times in 4,231 Posts
 
Default

To show all errors except of notices, use this level:

error_reporting = E_ALL & ~E_NOTICE
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
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
Only Problems since Updating from 3.0.3.3 to 3.0.4.1 mbay General 4 17th May 2012 12:56
ubuntu and nginx delgado2061 Installation/Configuration 0 27th November 2011 23:36
Problem with services!! banzaiwebstudio.com Installation/Configuration 7 19th May 2010 21:13
Unable to install ISPConfig bdonecker Installation/Configuration 21 26th May 2009 08:20
Apache2 Freezes celtic Server Operation 31 28th May 2007 17:18


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


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