Author Topic: Disable NOTICE Log PHP-FPM  (Read 13465 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Disable NOTICE Log PHP-FPM
« on: February 08, 2019, 04:33:53 AM »
Where i can config to disable NOTICE Log in /opt/alt/php-fpm56/usr/var/log, many error log (like below) shown in that's file and make my disk space is full.

Code: [Select]
[08-Feb-2019 11:14:03] NOTICE: [pool user1] child 16846 started
[08-Feb-2019 11:14:03] NOTICE: [pool user1] child 16841 exited with code 0 after 0.115749 seconds from start
[08-Feb-2019 11:14:03] NOTICE: [pool user1] child 16847 started
[08-Feb-2019 11:14:03] NOTICE: [pool user1] child 16844 exited with code 0 after 0.113085 seconds from start
[08-Feb-2019 11:14:03] NOTICE: [pool user1] child 16849 started
[08-Feb-2019 11:14:03] NOTICE: [pool user1] child 16842 exited with code 0 after 0.158420 seconds from start
[08-Feb-2019 11:14:03] NOTICE: [pool user1] child 16851 started
[08-Feb-2019 11:14:03] NOTICE: [pool user1] child 16846 exited with code 0 after 0.095787 seconds from start
[08-Feb-2019 11:14:03] NOTICE: [pool user1] child 16852 started
[08-Feb-2019 11:14:03] NOTICE: [pool user1] child 16847 exited with code 0 after 0.102354 seconds from start

Offline
**
Re: Disable NOTICE Log PHP-FPM
« Reply #1 on: February 08, 2019, 02:07:07 PM »
/opt/alt/php-fpm72/usr/php

php.ini line 460

Code: [Select]
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; This directive informs PHP of which errors, warnings and notices you would like
; it to take action for. The recommended way of setting values for this
; directive is through the use of the error level constants and bitwise
; operators. The error level constants are below here for convenience as well as
; some common settings and their meanings.
; By default, PHP is set to take action on all errors, notices and warnings EXCEPT
; those related to E_NOTICE and E_STRICT, which together cover best practices and
; recommended coding standards in PHP. For performance reasons, this is the
; recommend error reporting setting. Your production server shouldn't be wasting
; resources complaining about best practices and coding standards. That's what
; development servers and development settings are for.
; Note: The php.ini-development file has this setting as E_ALL. This
; means it pretty much reports everything which is exactly what you want during
; development and early testing.
;
; Error Level Constants:
; E_ALL             - All errors and warnings (includes E_STRICT as of PHP 5.4.0)
; E_ERROR           - fatal run-time errors
; E_RECOVERABLE_ERROR  - almost fatal run-time errors
; E_WARNING         - run-time warnings (non-fatal errors)
; E_PARSE           - compile-time parse errors
; E_NOTICE          - run-time notices (these are warnings which often result
;                     from a bug in your code, but it's possible that it was
;                     intentional (e.g., using an uninitialized variable and
;                     relying on the fact it is automatically initialized to an
;                     empty string)
; E_STRICT          - run-time notices, enable to have PHP suggest changes
;                     to your code which will ensure the best interoperability
;                     and forward compatibility of your code
; E_CORE_ERROR      - fatal errors that occur during PHP's initial startup
; E_CORE_WARNING    - warnings (non-fatal errors) that occur during PHP's
;                     initial startup
; E_COMPILE_ERROR   - fatal compile-time errors
; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
; E_USER_ERROR      - user-generated error message
; E_USER_WARNING    - user-generated warning message
; E_USER_NOTICE     - user-generated notice message
; E_DEPRECATED      - warn about code that will not work in future versions
;                     of PHP
; E_USER_DEPRECATED - user-generated deprecation warnings
;
; Common Values:
;   E_ALL (Show all errors, warnings and notices including coding standards.)
;   E_ALL & ~E_NOTICE  (Show all errors, except for notices)
;   E_ALL & ~E_NOTICE & ~E_STRICT  (Show all errors, except for notices and coding standards warnings.)
;   E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR  (Show only errors)
; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
; Development Value: E_ALL
; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
; http://php.net/error-reporting
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT


Offline
*
Re: Disable NOTICE Log PHP-FPM
« Reply #2 on: February 11, 2019, 09:23:18 AM »
My error_reporting value

Code: [Select]
error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT
NOTICE log still shown.

Offline
**
Re: Disable NOTICE Log PHP-FPM
« Reply #3 on: February 11, 2019, 07:03:04 PM »
Did you restart the webserver?

Offline
*
Re: Disable NOTICE Log PHP-FPM
« Reply #4 on: February 12, 2019, 01:26:57 AM »
Yes, i have. I restarted all service Nginx, Varnish, Apache.

Notice log still shown.

Offline
*
Re: Disable NOTICE Log PHP-FPM
« Reply #5 on: February 12, 2019, 06:34:45 AM »
for php-fpm you need to restart php-fpm from the php-fpm selector
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: Disable NOTICE Log PHP-FPM
« Reply #6 on: February 12, 2019, 06:59:42 AM »
Still same  :(