empty upload_tmp_dir / session.save_path in php-fpm's pools

VIrtualmin sets upload_tmp_dir and session.save_path for virtualhosts when using mod_fcgid however I see these values are empty when using mod_fpm

This can be easily fixed by adding these values to the pool file:

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

I think it's also great having these values in the default pool.d template file:

php_admin_flag[display_errors] = off
php_admin_flag[log_errors] = on
php_admin_value[error_log] = /home/$USERNAME/logs/$USER_error_log

and these ones disabled so users could easily enable them if they were interested:

;php_admin_value[memory_limit] = 32M
;request_slowlog_timeout = 5
;slowlog = /home/$USER/logs/$USER_slow_log
Status: 
Closed (fixed)

Comments

Good suggestion - I will bring the php-fpm config into parity with the cgi / fcgid mode configs in the next release.

Status: Active ยป Fixed