0 Members and 1 Guest are viewing this topic.
pm.max_requests = 200
<?php $userinfo = posix_getpwnam($user); if ($userinfo) { $fpmport = (50000 + $userinfo['uid']); } else { return false; } if ($user == 'apache') { $pool = 'default'; } else { $pool = $user; } if ($user === 'riginta') { $startserver = '20'; $minspareserver = '20'; $maxspareserver = '40'; $maxchildren = '200'; } else { $startserver = '2'; $minspareserver = '2'; $maxspareserver = '4'; $maxchildren = '10'; }?>[<?php echo $pool; ?>]listen = 127.0.0.1:<?php echo $fpmport; ?>listen.backlog = -1listen.allowed_clients = 127.0.0.1user = <?php echo $user; ?>group = <?php echo $user; ?>pm = dynamicpm.max_children = <?php echo $maxchildren; ?>pm.start_servers = <?php echo $startserver; ?>pm.min_spare_servers = <?php echo $minspareserver; ?>pm.max_spare_servers = <?php echo $maxspareserver; ?>pm.max_requests = 500;pm.status_path = /status;ping.path = /ping;ping.response = pongrequest_terminate_timeout = 0request_slowlog_timeout = 0slowlog = /var/log/php-fpm/slow.logrlimit_files = 1024rlimit_core = 0;chroot = ;chdir = /var/wwwcatch_workers_output = yessecurity.limit_extensions = .php .php3 .php4 .php5env[HOSTNAME] = $HOSTNAMEenv[PATH] = /usr/local/bin:/usr/bin:/binenv[TMP] = /tmpenv[TMPDIR] = /tmpenv[TEMP] = /tmp;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f webmaster@domain.com;php_flag[display_errors] = offphp_admin_value[error_log] = /var/log/php-fpm/error.logphp_admin_value[session.save_path] = /var/lib/php/sessionphp_admin_flag[log_errors] = onphp_admin_value[memory_limit] = 64M
$startserver = '2'; $minspareserver = '2'; $maxspareserver = '4'; $maxchildren = '4';
Page created in 0.028 seconds with 17 queries.