;
;  roundcubemail php-fpm configuration
;

[nethserver-roundcubemail]
listen = /var/run/rh-php73-php-fpm/nethserver-roundcubemail-php73.sock

;Logs
php_admin_value[error_log] = /var/opt/rh/rh-php73/log/php-fpm/error-roundcubemail.log
php_admin_flag[log_errors] = on

pm = dynamic
pm.max_children = 50
pm.start_servers = 5
pm.min_spare_servers = 5
pm.max_spare_servers = 35
; CVE-2026-109619: serve one request per worker, so no stale
; global state can leak from one request to the next
pm.max_requests = 1

user = apache;
group = apache
listen.owner = root
listen.group = apache
listen.mode = 0660

; Set data paths to directories owned by process user
php_value[session.save_handler] = files
php_value[session.save_path]    = /var/opt/rh/rh-php73/lib/php/session
php_value[soap.wsdl_cache_dir]  = /var/opt/rh/rh-php73/lib/php/wsdlcache

; Set opcache settings 
php_value[opcache.file_cache]  = /var/opt/rh/rh-php73/lib/php/opcache
php_value[opcache.enable_cli]  = 1
php_value[opcache.interned_strings_buffer]  = 8
php_value[opcache.max_accelerated_files]  = 10000
php_value[opcache.memory_consumption]  = 128
php_value[opcache.save_comments]  = 1
php_value[opcache.revalidate_freq]  = 1

