Submitted by Ion on Tue, 01/10/2012 - 04:12
my virtual min log in grow in 1gb size per 2 days due to php notices logged how to disable notices PHP in virtualmin? E_ALL & ~E_DEPRECATED & ~E_NOTICE in both php.ini and php5.ini configuratin doesnt seem to be helpful
Status:
Active
Comments
Submitted by andreychek on Tue, 01/10/2012 - 09:44 Comment #1
Howdy -- if that Virtual Server is setup to use CGI or FCGID, you'd want to look in $HOME/etc/php.ini, and tweak the error_reporting line in that file.
If that Virtual Server is using mod_php, you'd need to edit the system-wide php.ini file in /etc/php.ini.
You'd want to make sure that there is only one error_reporting line. You could try setting it to this to make sure only errors are being reported:
error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR
However, remember that this Support area here is for Virtualmin Pro customers -- if you're using Virtualmin GPL, you'd want to use the Forums to obtain support. We monitor the forums, as well as lots of wonderful folks in the community. Thanks!
Submitted by Ion on Wed, 01/11/2012 - 04:26 Comment #2
thnk I really apreciate it yes I use fgci I ve tried $HOME/etc/php.ini there is link to php5/php.ini I put error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR there but it still drops lines like this [Wed Jan 11 05:14:48 2012] [warn] [client 208.80.194.37] mod_fcgid: stderr: PHP Warning: include(): http:// wrapper is disabled in bla bla bla tried everything i thinks its vitrualmin logs or something pls assist
Submitted by andreychek on Wed, 01/11/2012 - 09:51 Comment #3
Well, you're seeing a PHP issue of some sort. It looks like the way include() is being used in the code won't work properly.
That's not just a deprecated message, but one showing that the code isn't going to work as such; that may be a legitimate error :-)
However, if you'd like to review those issues further, we'd encourage you to post your questions over in the Forums. Thanks!