From 2bb73f1f5e5698c0db81a0688ea380290d9b401b Mon Sep 17 00:00:00 2001 From: Edi Septriyanto Date: Sat, 12 Feb 2022 10:06:51 +0700 Subject: [PATCH] Update PHP FPM pool configuration --- etc/php/5.6/fpm/pool.d/lemper.conf | 58 ++++++++++++++++++------------ etc/php/5.6/fpm/pool.d/www.conf | 36 ++++++++++++------- etc/php/7.0/fpm/pool.d/lemper.conf | 55 ++++++++++++++++------------ etc/php/7.0/fpm/pool.d/www.conf | 36 ++++++++++++------- etc/php/7.1/fpm/pool.d/lemper.conf | 53 +++++++++++++++------------ etc/php/7.1/fpm/pool.d/www.conf | 36 ++++++++++++------- etc/php/7.2/fpm/pool.d/lemper.conf | 53 +++++++++++++++------------ etc/php/7.2/fpm/pool.d/www.conf | 36 ++++++++++++------- etc/php/7.3/fpm/pool.d/lemper.conf | 51 +++++++++++++++----------- etc/php/7.3/fpm/pool.d/www.conf | 36 ++++++++++++------- etc/php/7.4/fpm/pool.d/lemper.conf | 51 +++++++++++++++----------- etc/php/7.4/fpm/pool.d/www.conf | 36 ++++++++++++------- etc/php/8.0/fpm/pool.d/lemper.conf | 51 +++++++++++++++----------- etc/php/8.0/fpm/pool.d/www.conf | 36 ++++++++++++------- etc/php/8.1/fpm/pool.d/lemper.conf | 51 +++++++++++++++----------- etc/php/8.1/fpm/pool.d/www.conf | 36 ++++++++++++------- 16 files changed, 441 insertions(+), 270 deletions(-) diff --git a/etc/php/5.6/fpm/pool.d/lemper.conf b/etc/php/5.6/fpm/pool.d/lemper.conf index 3d50be5..c3ec932 100644 --- a/etc/php/5.6/fpm/pool.d/lemper.conf +++ b/etc/php/5.6/fpm/pool.d/lemper.conf @@ -5,19 +5,22 @@ group = lemper listen = /run/php/php5.6-fpm.$pool.sock listen.owner = lemper listen.group = lemper -listen.mode = 0666 -;listen.allowed_clients = 127.0.0.1 +listen.mode = 0660 +;listen.allowed_clients = 125.6.0.1 -; Custom PHP-FPM optimization here -; adjust to meet your needs. +; Custom PHP-FPM optimization, adjust here to meet your specs. +; Default value here is optimized for a single CPU with at least 1GB RAM. pm = dynamic -pm.max_children = 5 -pm.start_servers = 2 -pm.min_spare_servers = 1 -pm.max_spare_servers = 3 -pm.process_idle_timeout = 30s; +pm.max_children = 30 +pm.start_servers = 5 +pm.min_spare_servers = 5 +pm.max_spare_servers = 20 +pm.process_idle_timeout = 30s pm.max_requests = 500 +pm.status_path = /status +ping.path = /ping + slowlog = /home/lemper/logs/php/php5.6-fpm_slow.log request_slowlog_timeout = 10s @@ -29,20 +32,29 @@ chdir = /home/lemper security.limit_extensions = .php .php5 .php56 -; Custom PHP ini settings. -php_flag[display_errors] = On -;php_admin_value[error_reporting] = E_ALL & ~E_DEPRECATED & ~E_STRICT -;php_admin_value[disable_functions] = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,exec,passthru,popen,proc_open,shell_exec,system -php_admin_flag[log_errors] = On -;php_admin_value[error_log] = /var/log/php/php5.6-fpm.$pool.log -php_admin_value[error_log] = /home/lemper/logs/php/php5.6-fpm.log -php_admin_value[date.timezone] = UTC -php_admin_value[memory_limit] = 128M -php_admin_value[opcache.file_cache] = /home/lemper/.lemper/php/opcache +; Custom PHP ini settings for LEMPer Stack. php_admin_value[open_basedir] = /home/lemper -php_admin_value[session.save_path] = /home/lemper/.lemper/php/sessions +;php_admin_value[disable_functions] = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,exec,passthru,popen,proc_open,shell_exec,system +;php_admin_value[disable_classes] = +php_admin_flag[log_errors] = on +php_admin_value[error_log] = /home/lemper/logs/php/php5.6-fpm.log php_admin_value[sys_temp_dir] = /home/lemper/.lemper/tmp php_admin_value[upload_tmp_dir] = /home/lemper/.lemper/tmp -php_admin_value[upload_max_filesize] = 20M -php_admin_value[post_max_size] = 20M -;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f you@yourmail.com +;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com +php_admin_value[opcache.file_cache] = /home/lemper/.lemper/tmp/php_opcache + +; Configuration below can be overwritten from PHP call 'ini_set'. +php_flag[short_open_tag] = off +php_value[max_execution_time] = 300 +php_value[max_input_time] = 60 +php_value[memory_limit] = 128M +php_value[post_max_size] = 50M +php_flag[file_uploads] = on +php_value[upload_max_filesize] = 50M +php_value[max_file_uploads] = 20 +php_value[default_socket_timeout] = 60 +php_value[error_reporting] = E_ALL & ~E_DEPRECATED & ~E_STRICT +php_flag[display_errors] = on +php_flag[cgi.fix_pathinfo] = 1 +php_value[date.timezone] = UTC +php_value[session.save_path] = /home/lemper/.lemper/tmp/php_sessions diff --git a/etc/php/5.6/fpm/pool.d/www.conf b/etc/php/5.6/fpm/pool.d/www.conf index 0797a88..a89d675 100644 --- a/etc/php/5.6/fpm/pool.d/www.conf +++ b/etc/php/5.6/fpm/pool.d/www.conf @@ -368,18 +368,30 @@ security.limit_extensions = .php .php5 .php56 ; Default Value: nothing is defined by default except the values in php.ini and ; specified at startup with the -d argument -;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com -php_flag[display_errors] = On -;php_admin_value[error_reporting] = E_ALL & ~E_DEPRECATED & ~E_STRICT -;php_admin_value[disable_functions] = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,exec,passthru,popen,proc_open,shell_exec,system -php_admin_flag[log_errors] = On -php_admin_value[error_log] = /var/log/php/php5.6-fpm.$pool.log -php_admin_value[date.timezone] = UTC -php_admin_value[memory_limit] = 128M -php_admin_value[opcache.file_cache] = /usr/share/nginx/html/.lemper/php/opcache + +; Custom PHP ini settings for LEMPer Stack. php_admin_value[open_basedir] = /usr/share/nginx/html -php_admin_value[session.save_path] = /usr/share/nginx/html/.lemper/php/sessions +;php_admin_value[disable_functions] = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,exec,passthru,popen,proc_open,shell_exec,system +;php_admin_value[disable_classes] = +php_admin_flag[log_errors] = on +php_admin_value[error_log] = /var/log/php/php5.6-fpm.$pool.log php_admin_value[sys_temp_dir] = /usr/share/nginx/html/.lemper/tmp php_admin_value[upload_tmp_dir] = /usr/share/nginx/html/.lemper/tmp -php_admin_value[upload_max_filesize] = 20M -php_admin_value[post_max_size] = 20M +;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com +php_admin_value[opcache.file_cache] = /usr/share/nginx/html/.lemper/tmp/php_opcache + +; Configuration below can be overwritten from PHP call 'ini_set'. +php_flag[short_open_tag] = off +php_value[max_execution_time] = 300 +php_value[max_input_time] = 60 +php_value[memory_limit] = 128M +php_value[post_max_size] = 50M +php_flag[file_uploads] = on +php_value[upload_max_filesize] = 50M +php_value[max_file_uploads] = 20 +php_value[default_socket_timeout] = 60 +php_value[error_reporting] = E_ALL & ~E_DEPRECATED & ~E_STRICT +php_flag[display_errors] = on +php_flag[cgi.fix_pathinfo] = 1 +php_value[date.timezone] = UTC +php_value[session.save_path] = /usr/share/nginx/html/.lemper/tmp/php_sessions diff --git a/etc/php/7.0/fpm/pool.d/lemper.conf b/etc/php/7.0/fpm/pool.d/lemper.conf index 923f3e2..efc6e80 100644 --- a/etc/php/7.0/fpm/pool.d/lemper.conf +++ b/etc/php/7.0/fpm/pool.d/lemper.conf @@ -5,17 +5,17 @@ group = lemper listen = /run/php/php7.0-fpm.$pool.sock listen.owner = lemper listen.group = lemper -listen.mode = 0666 -;listen.allowed_clients = 127.0.0.1 +listen.mode = 0660 +;listen.allowed_clients = 127.1.0.1 -; Custom PHP-FPM optimization here -; adjust to meet your needs. +; Custom PHP-FPM optimization, adjust here to meet your specs. +; Default value here is optimized for a single CPU with at least 1GB RAM. pm = dynamic -pm.max_children = 5 -pm.start_servers = 2 -pm.min_spare_servers = 1 -pm.max_spare_servers = 3 -pm.process_idle_timeout = 30s; +pm.max_children = 30 +pm.start_servers = 5 +pm.min_spare_servers = 5 +pm.max_spare_servers = 20 +pm.process_idle_timeout = 30s pm.max_requests = 500 pm.status_path = /status @@ -32,20 +32,29 @@ chdir = /home/lemper security.limit_extensions = .php .php7 .php70 -; Custom PHP ini settings. -php_flag[display_errors] = On -;php_admin_value[error_reporting] = E_ALL & ~E_DEPRECATED & ~E_STRICT -;php_admin_value[disable_functions] = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,exec,passthru,popen,proc_open,shell_exec,system -php_admin_flag[log_errors] = On -;php_admin_value[error_log] = /var/log/php/php8.1-fpm.$pool.log -php_admin_value[error_log] = /home/lemper/logs/php/php7.0-fpm.log -php_admin_value[date.timezone] = UTC -php_admin_value[memory_limit] = 128M -php_admin_value[opcache.file_cache] = /home/lemper/.lemper/php/opcache +; Custom PHP ini settings for LEMPer Stack. php_admin_value[open_basedir] = /home/lemper -php_admin_value[session.save_path] = /home/lemper/.lemper/php/sessions +;php_admin_value[disable_functions] = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,exec,passthru,popen,proc_open,shell_exec,system +;php_admin_value[disable_classes] = +php_admin_flag[log_errors] = on +php_admin_value[error_log] = /home/lemper/logs/php/php7.0-fpm.log php_admin_value[sys_temp_dir] = /home/lemper/.lemper/tmp php_admin_value[upload_tmp_dir] = /home/lemper/.lemper/tmp -php_admin_value[upload_max_filesize] = 20M -php_admin_value[post_max_size] = 20M -;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f you@yourmail.com +;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com +php_admin_value[opcache.file_cache] = /home/lemper/.lemper/tmp/php_opcache + +; Configuration below can be overwritten from PHP call 'ini_set'. +php_flag[short_open_tag] = off +php_value[max_execution_time] = 300 +php_value[max_input_time] = 60 +php_value[memory_limit] = 128M +php_value[post_max_size] = 50M +php_flag[file_uploads] = on +php_value[upload_max_filesize] = 50M +php_value[max_file_uploads] = 20 +php_value[default_socket_timeout] = 60 +php_value[error_reporting] = E_ALL & ~E_DEPRECATED & ~E_STRICT +php_flag[display_errors] = on +php_flag[cgi.fix_pathinfo] = 1 +php_value[date.timezone] = UTC +php_value[session.save_path] = /home/lemper/.lemper/tmp/php_sessions diff --git a/etc/php/7.0/fpm/pool.d/www.conf b/etc/php/7.0/fpm/pool.d/www.conf index 9eabad5..4202640 100644 --- a/etc/php/7.0/fpm/pool.d/www.conf +++ b/etc/php/7.0/fpm/pool.d/www.conf @@ -412,18 +412,30 @@ security.limit_extensions = .php .php7 .php70 ; Default Value: nothing is defined by default except the values in php.ini and ; specified at startup with the -d argument -;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com -php_flag[display_errors] = On -;php_admin_value[error_reporting] = E_ALL & ~E_DEPRECATED & ~E_STRICT -;php_admin_value[disable_functions] = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,exec,passthru,popen,proc_open,shell_exec,system -php_admin_flag[log_errors] = On -php_admin_value[error_log] = /var/log/php/php7.0-fpm.$pool.log -php_admin_value[date.timezone] = UTC -php_admin_value[memory_limit] = 128M -php_admin_value[opcache.file_cache] = /usr/share/nginx/html/.lemper/php/opcache + +; Custom PHP ini settings for LEMPer Stack. php_admin_value[open_basedir] = /usr/share/nginx/html -php_admin_value[session.save_path] = /usr/share/nginx/html/.lemper/php/sessions +;php_admin_value[disable_functions] = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,exec,passthru,popen,proc_open,shell_exec,system +;php_admin_value[disable_classes] = +php_admin_flag[log_errors] = on +php_admin_value[error_log] = /var/log/php/php7.0-fpm.$pool.log php_admin_value[sys_temp_dir] = /usr/share/nginx/html/.lemper/tmp php_admin_value[upload_tmp_dir] = /usr/share/nginx/html/.lemper/tmp -php_admin_value[upload_max_filesize] = 20M -php_admin_value[post_max_size] = 20M +;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com +php_admin_value[opcache.file_cache] = /usr/share/nginx/html/.lemper/tmp/php_opcache + +; Configuration below can be overwritten from PHP call 'ini_set'. +php_flag[short_open_tag] = off +php_value[max_execution_time] = 300 +php_value[max_input_time] = 60 +php_value[memory_limit] = 128M +php_value[post_max_size] = 50M +php_flag[file_uploads] = on +php_value[upload_max_filesize] = 50M +php_value[max_file_uploads] = 20 +php_value[default_socket_timeout] = 60 +php_value[error_reporting] = E_ALL & ~E_DEPRECATED & ~E_STRICT +php_flag[display_errors] = on +php_flag[cgi.fix_pathinfo] = 1 +php_value[date.timezone] = UTC +php_value[session.save_path] = /usr/share/nginx/html/.lemper/tmp/php_sessions diff --git a/etc/php/7.1/fpm/pool.d/lemper.conf b/etc/php/7.1/fpm/pool.d/lemper.conf index 08a919b..39f3ef0 100644 --- a/etc/php/7.1/fpm/pool.d/lemper.conf +++ b/etc/php/7.1/fpm/pool.d/lemper.conf @@ -5,17 +5,17 @@ group = lemper listen = /run/php/php7.1-fpm.$pool.sock listen.owner = lemper listen.group = lemper -listen.mode = 0666 +listen.mode = 0660 ;listen.allowed_clients = 127.1.0.1 -; Custom PHP-FPM optimization here -; adjust to meet your needs. +; Custom PHP-FPM optimization, adjust here to meet your specs. +; Default value here is optimized for a single CPU with at least 1GB RAM. pm = dynamic -pm.max_children = 5 -pm.start_servers = 2 -pm.min_spare_servers = 1 -pm.max_spare_servers = 3 -pm.process_idle_timeout = 30s; +pm.max_children = 30 +pm.start_servers = 5 +pm.min_spare_servers = 5 +pm.max_spare_servers = 20 +pm.process_idle_timeout = 30s pm.max_requests = 500 pm.status_path = /status @@ -32,20 +32,29 @@ chdir = /home/lemper security.limit_extensions = .php .php7 .php71 -; Custom PHP ini settings. -php_flag[display_errors] = On -;php_admin_value[error_reporting] = E_ALL & ~E_DEPRECATED & ~E_STRICT -;php_admin_value[disable_functions] = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,exec,passthru,popen,proc_open,shell_exec,system -php_admin_flag[log_errors] = On -;php_admin_value[error_log] = /var/log/php/php7.1-fpm.$pool.log -php_admin_value[error_log] = /home/lemper/logs/php/php7.1-fpm.log -php_admin_value[date.timezone] = UTC -php_admin_value[memory_limit] = 128M -php_admin_value[opcache.file_cache] = /home/lemper/.lemper/php/opcache +; Custom PHP ini settings for LEMPer Stack. php_admin_value[open_basedir] = /home/lemper -php_admin_value[session.save_path] = /home/lemper/.lemper/php/sessions +;php_admin_value[disable_functions] = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,exec,passthru,popen,proc_open,shell_exec,system +;php_admin_value[disable_classes] = +php_admin_flag[log_errors] = on +php_admin_value[error_log] = /home/lemper/logs/php/php7.1-fpm.log php_admin_value[sys_temp_dir] = /home/lemper/.lemper/tmp php_admin_value[upload_tmp_dir] = /home/lemper/.lemper/tmp -php_admin_value[upload_max_filesize] = 20M -php_admin_value[post_max_size] = 20M -;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f you@yourmail.com +;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com +php_admin_value[opcache.file_cache] = /home/lemper/.lemper/tmp/php_opcache + +; Configuration below can be overwritten from PHP call 'ini_set'. +php_flag[short_open_tag] = off +php_value[max_execution_time] = 300 +php_value[max_input_time] = 60 +php_value[memory_limit] = 128M +php_value[post_max_size] = 50M +php_flag[file_uploads] = on +php_value[upload_max_filesize] = 50M +php_value[max_file_uploads] = 20 +php_value[default_socket_timeout] = 60 +php_value[error_reporting] = E_ALL & ~E_DEPRECATED & ~E_STRICT +php_flag[display_errors] = on +php_flag[cgi.fix_pathinfo] = 1 +php_value[date.timezone] = UTC +php_value[session.save_path] = /home/lemper/.lemper/tmp/php_sessions diff --git a/etc/php/7.1/fpm/pool.d/www.conf b/etc/php/7.1/fpm/pool.d/www.conf index 616ecec..604a35e 100644 --- a/etc/php/7.1/fpm/pool.d/www.conf +++ b/etc/php/7.1/fpm/pool.d/www.conf @@ -412,18 +412,30 @@ security.limit_extensions = .php .php7 .php71 ; Default Value: nothing is defined by default except the values in php.ini and ; specified at startup with the -d argument -;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com -php_flag[display_errors] = On -;php_admin_value[error_reporting] = E_ALL & ~E_DEPRECATED & ~E_STRICT -;php_admin_value[disable_functions] = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,exec,passthru,popen,proc_open,shell_exec,system -php_admin_flag[log_errors] = On -php_admin_value[error_log] = /var/log/php/php7.1-fpm.$pool.log -php_admin_value[date.timezone] = UTC -php_admin_value[memory_limit] = 128M -php_admin_value[opcache.file_cache] = /usr/share/nginx/html/.lemper/php/opcache + +; Custom PHP ini settings for LEMPer Stack. php_admin_value[open_basedir] = /usr/share/nginx/html -php_admin_value[session.save_path] = /usr/share/nginx/html/.lemper/php/sessions +;php_admin_value[disable_functions] = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,exec,passthru,popen,proc_open,shell_exec,system +;php_admin_value[disable_classes] = +php_admin_flag[log_errors] = on +php_admin_value[error_log] = /var/log/php/php7.1-fpm.$pool.log php_admin_value[sys_temp_dir] = /usr/share/nginx/html/.lemper/tmp php_admin_value[upload_tmp_dir] = /usr/share/nginx/html/.lemper/tmp -php_admin_value[upload_max_filesize] = 20M -php_admin_value[post_max_size] = 20M +;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com +php_admin_value[opcache.file_cache] = /usr/share/nginx/html/.lemper/tmp/php_opcache + +; Configuration below can be overwritten from PHP call 'ini_set'. +php_flag[short_open_tag] = off +php_value[max_execution_time] = 300 +php_value[max_input_time] = 60 +php_value[memory_limit] = 128M +php_value[post_max_size] = 50M +php_flag[file_uploads] = on +php_value[upload_max_filesize] = 50M +php_value[max_file_uploads] = 20 +php_value[default_socket_timeout] = 60 +php_value[error_reporting] = E_ALL & ~E_DEPRECATED & ~E_STRICT +php_flag[display_errors] = on +php_flag[cgi.fix_pathinfo] = 1 +php_value[date.timezone] = UTC +php_value[session.save_path] = /usr/share/nginx/html/.lemper/tmp/php_sessions diff --git a/etc/php/7.2/fpm/pool.d/lemper.conf b/etc/php/7.2/fpm/pool.d/lemper.conf index c876cb8..4bc564d 100644 --- a/etc/php/7.2/fpm/pool.d/lemper.conf +++ b/etc/php/7.2/fpm/pool.d/lemper.conf @@ -5,17 +5,17 @@ group = lemper listen = /run/php/php7.2-fpm.$pool.sock listen.owner = lemper listen.group = lemper -listen.mode = 0666 +listen.mode = 0660 ;listen.allowed_clients = 127.1.0.1 -; Custom PHP-FPM optimization here -; adjust to meet your needs. +; Custom PHP-FPM optimization, adjust here to meet your specs. +; Default value here is optimized for a single CPU with at least 1GB RAM. pm = dynamic -pm.max_children = 5 -pm.start_servers = 2 -pm.min_spare_servers = 1 -pm.max_spare_servers = 3 -pm.process_idle_timeout = 30s; +pm.max_children = 30 +pm.start_servers = 5 +pm.min_spare_servers = 5 +pm.max_spare_servers = 20 +pm.process_idle_timeout = 30s pm.max_requests = 500 pm.status_path = /status @@ -32,20 +32,29 @@ chdir = /home/lemper security.limit_extensions = .php .php7 .php72 -; Custom PHP ini settings. -php_flag[display_errors] = On -;php_admin_value[error_reporting] = E_ALL & ~E_DEPRECATED & ~E_STRICT -;php_admin_value[disable_functions] = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,exec,passthru,popen,proc_open,shell_exec,system -php_admin_flag[log_errors] = On -;php_admin_value[error_log] = /var/log/php/php7.2-fpm.$pool.log -php_admin_value[error_log] = /home/lemper/logs/php/php7.2-fpm.log -php_admin_value[date.timezone] = UTC -php_admin_value[memory_limit] = 128M -php_admin_value[opcache.file_cache] = /home/lemper/.lemper/php/opcache +; Custom PHP ini settings for LEMPer Stack. php_admin_value[open_basedir] = /home/lemper -php_admin_value[session.save_path] = /home/lemper/.lemper/php/sessions +;php_admin_value[disable_functions] = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,exec,passthru,popen,proc_open,shell_exec,system +;php_admin_value[disable_classes] = +php_admin_flag[log_errors] = on +php_admin_value[error_log] = /home/lemper/logs/php/php7.2-fpm.log php_admin_value[sys_temp_dir] = /home/lemper/.lemper/tmp php_admin_value[upload_tmp_dir] = /home/lemper/.lemper/tmp -php_admin_value[upload_max_filesize] = 20M -php_admin_value[post_max_size] = 20M -;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f you@yourmail.com +;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com +php_admin_value[opcache.file_cache] = /home/lemper/.lemper/tmp/php_opcache + +; Configuration below can be overwritten from PHP call 'ini_set'. +php_flag[short_open_tag] = off +php_value[max_execution_time] = 300 +php_value[max_input_time] = 60 +php_value[memory_limit] = 128M +php_value[post_max_size] = 50M +php_flag[file_uploads] = on +php_value[upload_max_filesize] = 50M +php_value[max_file_uploads] = 20 +php_value[default_socket_timeout] = 60 +php_value[error_reporting] = E_ALL & ~E_DEPRECATED & ~E_STRICT +php_flag[display_errors] = on +php_flag[cgi.fix_pathinfo] = 1 +php_value[date.timezone] = UTC +php_value[session.save_path] = /home/lemper/.lemper/tmp/php_sessions diff --git a/etc/php/7.2/fpm/pool.d/www.conf b/etc/php/7.2/fpm/pool.d/www.conf index 962db7a..956350f 100644 --- a/etc/php/7.2/fpm/pool.d/www.conf +++ b/etc/php/7.2/fpm/pool.d/www.conf @@ -412,18 +412,30 @@ security.limit_extensions = .php .php7 .php72 ; Default Value: nothing is defined by default except the values in php.ini and ; specified at startup with the -d argument -;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com -php_flag[display_errors] = On -;php_admin_value[error_reporting] = E_ALL & ~E_DEPRECATED & ~E_STRICT -;php_admin_value[disable_functions] = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,exec,passthru,popen,proc_open,shell_exec,system -php_admin_flag[log_errors] = On -php_admin_value[error_log] = /var/log/php/php7.2-fpm.$pool.log -php_admin_value[date.timezone] = UTC -php_admin_value[memory_limit] = 128M -php_admin_value[opcache.file_cache] = /usr/share/nginx/html/.lemper/php/opcache + +; Custom PHP ini settings for LEMPer Stack. php_admin_value[open_basedir] = /usr/share/nginx/html -php_admin_value[session.save_path] = /usr/share/nginx/html/.lemper/php/sessions +;php_admin_value[disable_functions] = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,exec,passthru,popen,proc_open,shell_exec,system +;php_admin_value[disable_classes] = +php_admin_flag[log_errors] = on +php_admin_value[error_log] = /var/log/php/php7.2-fpm.$pool.log php_admin_value[sys_temp_dir] = /usr/share/nginx/html/.lemper/tmp php_admin_value[upload_tmp_dir] = /usr/share/nginx/html/.lemper/tmp -php_admin_value[upload_max_filesize] = 20M -php_admin_value[post_max_size] = 20M +;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com +php_admin_value[opcache.file_cache] = /usr/share/nginx/html/.lemper/tmp/php_opcache + +; Configuration below can be overwritten from PHP call 'ini_set'. +php_flag[short_open_tag] = off +php_value[max_execution_time] = 300 +php_value[max_input_time] = 60 +php_value[memory_limit] = 128M +php_value[post_max_size] = 50M +php_flag[file_uploads] = on +php_value[upload_max_filesize] = 50M +php_value[max_file_uploads] = 20 +php_value[default_socket_timeout] = 60 +php_value[error_reporting] = E_ALL & ~E_DEPRECATED & ~E_STRICT +php_flag[display_errors] = on +php_flag[cgi.fix_pathinfo] = 1 +php_value[date.timezone] = UTC +php_value[session.save_path] = /usr/share/nginx/html/.lemper/tmp/php_sessions diff --git a/etc/php/7.3/fpm/pool.d/lemper.conf b/etc/php/7.3/fpm/pool.d/lemper.conf index 538ed8e..5064c21 100644 --- a/etc/php/7.3/fpm/pool.d/lemper.conf +++ b/etc/php/7.3/fpm/pool.d/lemper.conf @@ -5,16 +5,16 @@ group = lemper listen = /run/php/php7.3-fpm.$pool.sock listen.owner = lemper listen.group = lemper -listen.mode = 0666 +listen.mode = 0660 ;listen.allowed_clients = 127.1.0.1 -; Custom PHP-FPM optimization -; adjust here to meet your needs. +; Custom PHP-FPM optimization, adjust here to meet your specs. +; Default value here is optimized for a single CPU with at least 1GB RAM. pm = dynamic -pm.max_children = 5 -pm.start_servers = 2 -pm.min_spare_servers = 1 -pm.max_spare_servers = 3 +pm.max_children = 30 +pm.start_servers = 5 +pm.min_spare_servers = 5 +pm.max_spare_servers = 20 pm.process_idle_timeout = 30s pm.max_requests = 500 @@ -32,20 +32,29 @@ chdir = /home/lemper security.limit_extensions = .php .php7 .php73 -; Custom PHP ini settings. -php_flag[display_errors] = On -;php_admin_value[error_reporting] = E_ALL & ~E_DEPRECATED & ~E_STRICT -;php_admin_value[disable_functions] = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,exec,passthru,popen,proc_open,shell_exec,system -php_admin_flag[log_errors] = On -;php_admin_value[error_log] = /var/log/php/php7.3-fpm.$pool.log -php_admin_value[error_log] = /home/lemper/logs/php/php7.3-fpm.log -php_admin_value[date.timezone] = UTC -php_admin_value[memory_limit] = 128M -php_admin_value[opcache.file_cache] = /home/lemper/.lemper/php/opcache +; Custom PHP ini settings for LEMPer Stack. php_admin_value[open_basedir] = /home/lemper -php_admin_value[session.save_path] = /home/lemper/.lemper/php/sessions +;php_admin_value[disable_functions] = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,exec,passthru,popen,proc_open,shell_exec,system +;php_admin_value[disable_classes] = +php_admin_flag[log_errors] = on +php_admin_value[error_log] = /home/lemper/logs/php/php7.3-fpm.log php_admin_value[sys_temp_dir] = /home/lemper/.lemper/tmp php_admin_value[upload_tmp_dir] = /home/lemper/.lemper/tmp -php_admin_value[upload_max_filesize] = 20M -php_admin_value[post_max_size] = 20M -;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f you@yourmail.com +;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com +php_admin_value[opcache.file_cache] = /home/lemper/.lemper/tmp/php_opcache + +; Configuration below can be overwritten from PHP call 'ini_set'. +php_flag[short_open_tag] = off +php_value[max_execution_time] = 300 +php_value[max_input_time] = 60 +php_value[memory_limit] = 128M +php_value[post_max_size] = 50M +php_flag[file_uploads] = on +php_value[upload_max_filesize] = 50M +php_value[max_file_uploads] = 20 +php_value[default_socket_timeout] = 60 +php_value[error_reporting] = E_ALL & ~E_DEPRECATED & ~E_STRICT +php_flag[display_errors] = on +php_flag[cgi.fix_pathinfo] = 1 +php_value[date.timezone] = UTC +php_value[session.save_path] = /home/lemper/.lemper/tmp/php_sessions diff --git a/etc/php/7.3/fpm/pool.d/www.conf b/etc/php/7.3/fpm/pool.d/www.conf index 753001e..c119cce 100644 --- a/etc/php/7.3/fpm/pool.d/www.conf +++ b/etc/php/7.3/fpm/pool.d/www.conf @@ -428,18 +428,30 @@ security.limit_extensions = .php .php7 .php73 ; Default Value: nothing is defined by default except the values in php.ini and ; specified at startup with the -d argument -;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com -php_flag[display_errors] = On -;php_admin_value[error_reporting] = E_ALL & ~E_DEPRECATED & ~E_STRICT -;php_admin_value[disable_functions] = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,exec,passthru,popen,proc_open,shell_exec,system -php_admin_flag[log_errors] = On -php_admin_value[error_log] = /var/log/php/php7.3-fpm.$pool.log -php_admin_value[date.timezone] = UTC -php_admin_value[memory_limit] = 128M -php_admin_value[opcache.file_cache] = /usr/share/nginx/html/.lemper/php/opcache + +; Custom PHP ini settings for LEMPer Stack. php_admin_value[open_basedir] = /usr/share/nginx/html -php_admin_value[session.save_path] = /usr/share/nginx/html/.lemper/php/sessions +;php_admin_value[disable_functions] = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,exec,passthru,popen,proc_open,shell_exec,system +;php_admin_value[disable_classes] = +php_admin_flag[log_errors] = on +php_admin_value[error_log] = /var/log/php/php7.3-fpm.$pool.log php_admin_value[sys_temp_dir] = /usr/share/nginx/html/.lemper/tmp php_admin_value[upload_tmp_dir] = /usr/share/nginx/html/.lemper/tmp -php_admin_value[upload_max_filesize] = 20M -php_admin_value[post_max_size] = 20M +;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com +php_admin_value[opcache.file_cache] = /usr/share/nginx/html/.lemper/tmp/php_opcache + +; Configuration below can be overwritten from PHP call 'ini_set'. +php_flag[short_open_tag] = off +php_value[max_execution_time] = 300 +php_value[max_input_time] = 60 +php_value[memory_limit] = 128M +php_value[post_max_size] = 50M +php_flag[file_uploads] = on +php_value[upload_max_filesize] = 50M +php_value[max_file_uploads] = 20 +php_value[default_socket_timeout] = 60 +php_value[error_reporting] = E_ALL & ~E_DEPRECATED & ~E_STRICT +php_flag[display_errors] = on +php_flag[cgi.fix_pathinfo] = 1 +php_value[date.timezone] = UTC +php_value[session.save_path] = /usr/share/nginx/html/.lemper/tmp/php_sessions diff --git a/etc/php/7.4/fpm/pool.d/lemper.conf b/etc/php/7.4/fpm/pool.d/lemper.conf index f74abd6..2d490ff 100644 --- a/etc/php/7.4/fpm/pool.d/lemper.conf +++ b/etc/php/7.4/fpm/pool.d/lemper.conf @@ -5,16 +5,16 @@ group = lemper listen = /run/php/php7.4-fpm.$pool.sock listen.owner = lemper listen.group = lemper -listen.mode = 0666 +listen.mode = 0660 ;listen.allowed_clients = 127.1.0.1 -; Custom PHP-FPM optimization -; adjust here to meet your needs. +; Custom PHP-FPM optimization, adjust here to meet your specs. +; Default value here is optimized for a single CPU with at least 1GB RAM. pm = dynamic -pm.max_children = 5 -pm.start_servers = 2 -pm.min_spare_servers = 1 -pm.max_spare_servers = 3 +pm.max_children = 30 +pm.start_servers = 5 +pm.min_spare_servers = 5 +pm.max_spare_servers = 20 pm.process_idle_timeout = 30s pm.max_requests = 500 @@ -32,20 +32,29 @@ chdir = /home/lemper security.limit_extensions = .php .php7 .php74 -; Custom PHP ini settings. -php_flag[display_errors] = On -;php_admin_value[error_reporting] = E_ALL & ~E_DEPRECATED & ~E_STRICT -;php_admin_value[disable_functions] = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,exec,passthru,popen,proc_open,shell_exec,system -php_admin_flag[log_errors] = On -;php_admin_value[error_log] = /var/log/php/php7.4-fpm.$pool.log -php_admin_value[error_log] = /home/lemper/logs/php/php7.4-fpm.log -php_admin_value[date.timezone] = UTC -php_admin_value[memory_limit] = 128M -php_admin_value[opcache.file_cache] = /home/lemper/.lemper/php/opcache +; Custom PHP ini settings for LEMPer Stack. php_admin_value[open_basedir] = /home/lemper -php_admin_value[session.save_path] = /home/lemper/.lemper/php/sessions +;php_admin_value[disable_functions] = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,exec,passthru,popen,proc_open,shell_exec,system +;php_admin_value[disable_classes] = +php_admin_flag[log_errors] = on +php_admin_value[error_log] = /home/lemper/logs/php/php7.4-fpm.log php_admin_value[sys_temp_dir] = /home/lemper/.lemper/tmp php_admin_value[upload_tmp_dir] = /home/lemper/.lemper/tmp -php_admin_value[upload_max_filesize] = 20M -php_admin_value[post_max_size] = 20M -;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f you@yourmail.com +;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com +php_admin_value[opcache.file_cache] = /home/lemper/.lemper/tmp/php_opcache + +; Configuration below can be overwritten from PHP call 'ini_set'. +php_flag[short_open_tag] = off +php_value[max_execution_time] = 300 +php_value[max_input_time] = 60 +php_value[memory_limit] = 128M +php_value[post_max_size] = 50M +php_flag[file_uploads] = on +php_value[upload_max_filesize] = 50M +php_value[max_file_uploads] = 20 +php_value[default_socket_timeout] = 60 +php_value[error_reporting] = E_ALL & ~E_DEPRECATED & ~E_STRICT +php_flag[display_errors] = on +php_flag[cgi.fix_pathinfo] = 1 +php_value[date.timezone] = UTC +php_value[session.save_path] = /home/lemper/.lemper/tmp/php_sessions diff --git a/etc/php/7.4/fpm/pool.d/www.conf b/etc/php/7.4/fpm/pool.d/www.conf index 698d037..80a85d7 100644 --- a/etc/php/7.4/fpm/pool.d/www.conf +++ b/etc/php/7.4/fpm/pool.d/www.conf @@ -429,18 +429,30 @@ security.limit_extensions = .php .php7 .php74 ; Default Value: nothing is defined by default except the values in php.ini and ; specified at startup with the -d argument -;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com -php_flag[display_errors] = On -;php_admin_value[error_reporting] = E_ALL & ~E_DEPRECATED & ~E_STRICT -;php_admin_value[disable_functions] = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,exec,passthru,popen,proc_open,shell_exec,system -php_admin_flag[log_errors] = On -php_admin_value[error_log] = /var/log/php/php7.4-fpm.$pool.log -php_admin_value[date.timezone] = UTC -php_admin_value[memory_limit] = 128M -php_admin_value[opcache.file_cache] = /usr/share/nginx/html/.lemper/php/opcache + +; Custom PHP ini settings for LEMPer Stack. php_admin_value[open_basedir] = /usr/share/nginx/html -php_admin_value[session.save_path] = /usr/share/nginx/html/.lemper/php/sessions +;php_admin_value[disable_functions] = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,exec,passthru,popen,proc_open,shell_exec,system +;php_admin_value[disable_classes] = +php_admin_flag[log_errors] = on +php_admin_value[error_log] = /var/log/php/php7.4-fpm.$pool.log php_admin_value[sys_temp_dir] = /usr/share/nginx/html/.lemper/tmp php_admin_value[upload_tmp_dir] = /usr/share/nginx/html/.lemper/tmp -php_admin_value[upload_max_filesize] = 20M -php_admin_value[post_max_size] = 20M +;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com +php_admin_value[opcache.file_cache] = /usr/share/nginx/html/.lemper/tmp/php_opcache + +; Configuration below can be overwritten from PHP call 'ini_set'. +php_flag[short_open_tag] = off +php_value[max_execution_time] = 300 +php_value[max_input_time] = 60 +php_value[memory_limit] = 128M +php_value[post_max_size] = 50M +php_flag[file_uploads] = on +php_value[upload_max_filesize] = 50M +php_value[max_file_uploads] = 20 +php_value[default_socket_timeout] = 60 +php_value[error_reporting] = E_ALL & ~E_DEPRECATED & ~E_STRICT +php_flag[display_errors] = on +php_flag[cgi.fix_pathinfo] = 1 +php_value[date.timezone] = UTC +php_value[session.save_path] = /usr/share/nginx/html/.lemper/tmp/php_sessions diff --git a/etc/php/8.0/fpm/pool.d/lemper.conf b/etc/php/8.0/fpm/pool.d/lemper.conf index 7242b11..181ffd4 100644 --- a/etc/php/8.0/fpm/pool.d/lemper.conf +++ b/etc/php/8.0/fpm/pool.d/lemper.conf @@ -5,16 +5,16 @@ group = lemper listen = /run/php/php8.0-fpm.$pool.sock listen.owner = lemper listen.group = lemper -listen.mode = 0666 +listen.mode = 0660 ;listen.allowed_clients = 127.1.0.1 -; Custom PHP-FPM optimization -; adjust here to meet your needs. +; Custom PHP-FPM optimization, adjust here to meet your specs. +; Default value here is optimized for a single CPU with at least 1GB RAM. pm = dynamic -pm.max_children = 5 -pm.start_servers = 2 -pm.min_spare_servers = 1 -pm.max_spare_servers = 3 +pm.max_children = 30 +pm.start_servers = 5 +pm.min_spare_servers = 5 +pm.max_spare_servers = 20 pm.process_idle_timeout = 30s pm.max_requests = 500 @@ -32,20 +32,29 @@ chdir = /home/lemper security.limit_extensions = .php .php8 .php80 -; Custom PHP ini settings. -php_flag[display_errors] = On -;php_admin_value[error_reporting] = E_ALL & ~E_DEPRECATED & ~E_STRICT -;php_admin_value[disable_functions] = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,exec,passthru,popen,proc_open,shell_exec,system -php_admin_flag[log_errors] = On -;php_admin_value[error_log] = /var/log/php/php8.0-fpm.$pool.log -php_admin_value[error_log] = /home/lemper/logs/php/php8.0-fpm.log -php_admin_value[date.timezone] = UTC -php_admin_value[memory_limit] = 128M -php_admin_value[opcache.file_cache] = /home/lemper/.lemper/php/opcache +; Custom PHP ini settings for LEMPer Stack. php_admin_value[open_basedir] = /home/lemper -php_admin_value[session.save_path] = /home/lemper/.lemper/php/sessions +;php_admin_value[disable_functions] = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,exec,passthru,popen,proc_open,shell_exec,system +;php_admin_value[disable_classes] = +php_admin_flag[log_errors] = on +php_admin_value[error_log] = /home/lemper/logs/php/php8.0-fpm.log php_admin_value[sys_temp_dir] = /home/lemper/.lemper/tmp php_admin_value[upload_tmp_dir] = /home/lemper/.lemper/tmp -php_admin_value[upload_max_filesize] = 20M -php_admin_value[post_max_size] = 20M -;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f you@yourmail.com +;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com +php_admin_value[opcache.file_cache] = /home/lemper/.lemper/tmp/php_opcache + +; Configuration below can be overwritten from PHP call 'ini_set'. +php_flag[short_open_tag] = off +php_value[max_execution_time] = 300 +php_value[max_input_time] = 60 +php_value[memory_limit] = 128M +php_value[post_max_size] = 50M +php_flag[file_uploads] = on +php_value[upload_max_filesize] = 50M +php_value[max_file_uploads] = 20 +php_value[default_socket_timeout] = 60 +php_value[error_reporting] = E_ALL & ~E_DEPRECATED & ~E_STRICT +php_flag[display_errors] = on +php_flag[cgi.fix_pathinfo] = 1 +php_value[date.timezone] = UTC +php_value[session.save_path] = /home/lemper/.lemper/tmp/php_sessions diff --git a/etc/php/8.0/fpm/pool.d/www.conf b/etc/php/8.0/fpm/pool.d/www.conf index 687bbc6..d25d349 100644 --- a/etc/php/8.0/fpm/pool.d/www.conf +++ b/etc/php/8.0/fpm/pool.d/www.conf @@ -429,18 +429,30 @@ security.limit_extensions = .php .php8 .php80 ; Default Value: nothing is defined by default except the values in php.ini and ; specified at startup with the -d argument -;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com -php_flag[display_errors] = On -;php_admin_value[error_reporting] = E_ALL & ~E_DEPRECATED & ~E_STRICT -;php_admin_value[disable_functions] = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,exec,passthru,popen,proc_open,shell_exec,system -php_admin_flag[log_errors] = On -php_admin_value[error_log] = /var/log/php/php8.0-fpm.$pool.log -php_admin_value[date.timezone] = UTC -php_admin_value[memory_limit] = 128M -php_admin_value[opcache.file_cache] = /usr/share/nginx/html/.lemper/php/opcache + +; Custom PHP ini settings for LEMPer Stack. php_admin_value[open_basedir] = /usr/share/nginx/html -php_admin_value[session.save_path] = /usr/share/nginx/html/.lemper/php/sessions +;php_admin_value[disable_functions] = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,exec,passthru,popen,proc_open,shell_exec,system +;php_admin_value[disable_classes] = +php_admin_flag[log_errors] = on +php_admin_value[error_log] = /var/log/php/php8.0-fpm.$pool.log php_admin_value[sys_temp_dir] = /usr/share/nginx/html/.lemper/tmp php_admin_value[upload_tmp_dir] = /usr/share/nginx/html/.lemper/tmp -php_admin_value[upload_max_filesize] = 20M -php_admin_value[post_max_size] = 20M +;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com +php_admin_value[opcache.file_cache] = /usr/share/nginx/html/.lemper/tmp/php_opcache + +; Configuration below can be overwritten from PHP call 'ini_set'. +php_flag[short_open_tag] = off +php_value[max_execution_time] = 300 +php_value[max_input_time] = 60 +php_value[memory_limit] = 128M +php_value[post_max_size] = 50M +php_flag[file_uploads] = on +php_value[upload_max_filesize] = 50M +php_value[max_file_uploads] = 20 +php_value[default_socket_timeout] = 60 +php_value[error_reporting] = E_ALL & ~E_DEPRECATED & ~E_STRICT +php_flag[display_errors] = on +php_flag[cgi.fix_pathinfo] = 1 +php_value[date.timezone] = UTC +php_value[session.save_path] = /usr/share/nginx/html/.lemper/tmp/php_sessions diff --git a/etc/php/8.1/fpm/pool.d/lemper.conf b/etc/php/8.1/fpm/pool.d/lemper.conf index 131d01d..f5bd373 100644 --- a/etc/php/8.1/fpm/pool.d/lemper.conf +++ b/etc/php/8.1/fpm/pool.d/lemper.conf @@ -5,16 +5,16 @@ group = lemper listen = /run/php/php8.1-fpm.$pool.sock listen.owner = lemper listen.group = lemper -listen.mode = 0666 +listen.mode = 0660 ;listen.allowed_clients = 127.1.0.1 -; Custom PHP-FPM optimization -; adjust here to meet your needs. +; Custom PHP-FPM optimization, adjust here to meet your specs. +; Default value here is optimized for a single CPU with at least 1GB RAM. pm = dynamic -pm.max_children = 5 -pm.start_servers = 2 -pm.min_spare_servers = 1 -pm.max_spare_servers = 3 +pm.max_children = 30 +pm.start_servers = 5 +pm.min_spare_servers = 5 +pm.max_spare_servers = 20 pm.process_idle_timeout = 30s pm.max_requests = 500 @@ -32,20 +32,29 @@ chdir = /home/lemper security.limit_extensions = .php .php8 .php81 -; Custom PHP ini settings. -php_flag[display_errors] = On -;php_admin_value[error_reporting] = E_ALL & ~E_DEPRECATED & ~E_STRICT -;php_admin_value[disable_functions] = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,exec,passthru,popen,proc_open,shell_exec,system -php_admin_flag[log_errors] = On -;php_admin_value[error_log] = /var/log/php/php8.1-fpm.$pool.log -php_admin_value[error_log] = /home/lemper/logs/php/php8.1-fpm.log -php_admin_value[date.timezone] = UTC -php_admin_value[memory_limit] = 128M -php_admin_value[opcache.file_cache] = /home/lemper/.lemper/php/opcache +; Custom PHP ini settings for LEMPer Stack. php_admin_value[open_basedir] = /home/lemper -php_admin_value[session.save_path] = /home/lemper/.lemper/php/sessions +;php_admin_value[disable_functions] = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,exec,passthru,popen,proc_open,shell_exec,system +;php_admin_value[disable_classes] = +php_admin_flag[log_errors] = on +php_admin_value[error_log] = /home/lemper/logs/php/php8.1-fpm.log php_admin_value[sys_temp_dir] = /home/lemper/.lemper/tmp php_admin_value[upload_tmp_dir] = /home/lemper/.lemper/tmp -php_admin_value[upload_max_filesize] = 20M -php_admin_value[post_max_size] = 20M -;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f you@yourmail.com +;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com +php_admin_value[opcache.file_cache] = /home/lemper/.lemper/tmp/php_opcache + +; Configuration below can be overwritten from PHP call 'ini_set'. +php_flag[short_open_tag] = off +php_value[max_execution_time] = 300 +php_value[max_input_time] = 60 +php_value[memory_limit] = 128M +php_value[post_max_size] = 50M +php_flag[file_uploads] = on +php_value[upload_max_filesize] = 50M +php_value[max_file_uploads] = 20 +php_value[default_socket_timeout] = 60 +php_value[error_reporting] = E_ALL & ~E_DEPRECATED & ~E_STRICT +php_flag[display_errors] = on +php_flag[cgi.fix_pathinfo] = 1 +php_value[date.timezone] = UTC +php_value[session.save_path] = /home/lemper/.lemper/tmp/php_sessions diff --git a/etc/php/8.1/fpm/pool.d/www.conf b/etc/php/8.1/fpm/pool.d/www.conf index d3803b9..8240fb8 100644 --- a/etc/php/8.1/fpm/pool.d/www.conf +++ b/etc/php/8.1/fpm/pool.d/www.conf @@ -429,18 +429,30 @@ security.limit_extensions = .php .php8 .php81 ; Default Value: nothing is defined by default except the values in php.ini and ; specified at startup with the -d argument -;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com -php_flag[display_errors] = On -;php_admin_value[error_reporting] = E_ALL & ~E_DEPRECATED & ~E_STRICT -;php_admin_value[disable_functions] = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,exec,passthru,popen,proc_open,shell_exec,system -php_admin_flag[log_errors] = On -php_admin_value[error_log] = /var/log/php/php8.1-fpm.$pool.log -php_admin_value[date.timezone] = UTC -php_admin_value[memory_limit] = 128M -php_admin_value[opcache.file_cache] = /usr/share/nginx/html/.lemper/php/opcache + +; Custom PHP ini settings for LEMPer Stack. php_admin_value[open_basedir] = /usr/share/nginx/html -php_admin_value[session.save_path] = /usr/share/nginx/html/.lemper/php/sessions +;php_admin_value[disable_functions] = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,exec,passthru,popen,proc_open,shell_exec,system +;php_admin_value[disable_classes] = +php_admin_flag[log_errors] = on +php_admin_value[error_log] = /var/log/php/php8.1-fpm.$pool.log php_admin_value[sys_temp_dir] = /usr/share/nginx/html/.lemper/tmp php_admin_value[upload_tmp_dir] = /usr/share/nginx/html/.lemper/tmp -php_admin_value[upload_max_filesize] = 20M -php_admin_value[post_max_size] = 20M +;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com +php_admin_value[opcache.file_cache] = /usr/share/nginx/html/.lemper/tmp/php_opcache + +; Configuration below can be overwritten from PHP call 'ini_set'. +php_flag[short_open_tag] = off +php_value[max_execution_time] = 300 +php_value[max_input_time] = 60 +php_value[memory_limit] = 128M +php_value[post_max_size] = 50M +php_flag[file_uploads] = on +php_value[upload_max_filesize] = 50M +php_value[max_file_uploads] = 20 +php_value[default_socket_timeout] = 60 +php_value[error_reporting] = E_ALL & ~E_DEPRECATED & ~E_STRICT +php_flag[display_errors] = on +php_flag[cgi.fix_pathinfo] = 1 +php_value[date.timezone] = UTC +php_value[session.save_path] = /usr/share/nginx/html/.lemper/tmp/php_sessions