Solved php-fpm question

Hi,

I ahve installed lang/php71 and I use pfp-fpm to create isolated account..

So far I managed to get everything working except the error_reporting option:
In my php-fpm pool located at /usr/local/etc/php-fpm.d/yetiforce.conf, I have the following:
Code:
[yetiforce]
user = $pool
group = $pool

listen = /var/run/$pool.sock

listen.owner = www
listen.group = www
listen.mode = 0660

pm = ondemand
pm.max_children = 20
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3
pm.process_idle_timeout = 60s;
pm.max_requests = 200
pm.status_path = /status
request_terminate_timeout = 0

env[HOSTNAME] = $HOSTNAME
;env[PATH] = /usr/local/bin:/usr/bin:/bin
env[TMP] = /home/$pool/tmp
env[TMPDIR] = /home/$pool/tmp
env[TEMP] = /home/$pool/tmp

;php_admin_value[open_basedir]       = /home/$pool/public_html:/home/$pool/tmp:/usr/local/share/pear:/usr/local/lib/php
;php_admin_value[disable_functions]  = "exec,passthru,shell_exec,system,proc_open,popen,show_source"
php_admin_flag[allow_url_fopen]     = Off
php_value[session.cookie_httponly]  = On
php_value[short_open_tag]           = On
php_admin_value[date.timezone]      = Europe/London

php_flag[display_errors]            = Off
php_admin_flag[log_errors]          = On
php_admin_value[error_reporting]    = 3071
php_admin_value[error_log]          = /home/$pool/public_html/logs/php_error.$pool.log
php_admin_value[error_reporting]    = E_WARNING & E_ERROR & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT

php_admin_value[memory_limit]       = 512M
php_value[upload_max_filesize]      = 100M
php_value[max_execution_time]       = 600
php_value[max_input_time]           = 600
php_value[default_socket_timeout]   = 600
php_value[post_max_size]            = 50M
php_value[output_buffering]         = on
php_value[max_input_vars]           = 10000
php_value[session.gc_maxlifetime]   = 21600

php_admin_value[upload_tmp_dir]     = /home/$pool/tmp
php_admin_value[session.save_path]  = /home/$pool/tmp

chdir = /
the installation script for my yetiforce application is telling me
Code:
Recommended PHP settings   
Required value   error_reporting =   E_WARNING & E_ERROR & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT  
Present values error_reporting = E_ERROR | E_WARNING | E_PARSE | E_NOTICE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_USER_ERROR | E_USER_WARNING | E_STRICT
Could anyone please explain me why the system thing my present values are wrong?

Thank you
 
this line
Code:
php_admin_value[error_reporting]    = 3071
which is the bitmask equivalent of
E_ERROR | E_WARNING | E_PARSE | E_NOTICE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_USER_ERROR | E_USER_WARNING | E_STRICT
so is probably overriding this one a couple of lines later
Code:
php_admin_value[error_reporting]    = E_WARNING & E_ERROR & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT

edited to explain reason for future Googlers.
 
Back
Top