How to change PHP-FPM log level?
The top of this file says do not edit: /opt/cpanel/ea-php71/root/etc/php-fpm.conf
I But I would like to change the log level from notice to warning. Where within WHM can I make this change?
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; cPanel FPM Configuration ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; NOTICE This file is generated, please use our WHM User Interface
; to set these value.
include=/opt/cpanel/ea-php71/root/etc/php-fpm.d/*.conf
;;;;;;;;;;;;;;;;;;
; Global Options ;
;;;;;;;;;;;;;;;;;;
[global]
daemonize = no
emergency_restart_interval = 0
emergency_restart_threshold = 0
error_log = /opt/cpanel/ea-php71/root/usr/var/log/php-fpm/error.log
log_level = notice
pid = /opt/cpanel/ea-php71/root/usr/var/run/php-fpm/php-fpm.pid
process_control_timeout = 0
-
Hello, Please refer : Configurations Values of PHP-FPM - Documentation - cPanel Documentation Or try to edit it manually. 0 -
Hello, The following thread is helpful if you are attempting to change global PHP-FPM configuration values: PHP-FPM - Default Settings Thank you. 0 -
Please, finally Can someone help me change the log_level for PHP-FPM? I can't find where to change it in WHM If I modify /opt/cpanel/ea-php72/root/etc/php-fpm.conf, after rebuild php-fpm, changes don"t save. In system_pool_defaults.yaml only have php_admin_flag_allow_url_fopen: 'on' php_admin_flag_log_errors: 'on' php_admin_value_disable_functions: escapeshellcmd,pcntl_exec,parse_ini_file,ini_alter,popen,exec,proc_nice,proc_close,proc_get_status,proc_open,symlink,show_source,proc_terminate,passthru,shell_exec,system php_admin_value_doc_root: "\"[% documentroot %]/\"" php_admin_value_error_log: "[% homedir %]/logs/[% scrubbed_domain %].php.error.log" php_admin_value_short_open_tag: 'on' php_value_error_reporting: E_ALL & ~E_NOTICE pm_max_children: 5 pm_max_requests: 20 pm_process_idle_timeout: 10
~E_NOTICE does not prevent NOTICE displayed in /opt/cpanel/ea-php72/root/usr/var/log/php-fpm/error.log Thanks @cPanelMichael but I don"t find a solution in PHP-FPM - Default Settings Do you solved it @hydn79 ? Thanks for your help.0
Please sign in to leave a comment.
Comments
4 comments