Skip to content

Instantly share code, notes, and snippets.

@eksiscloud
Created June 1, 2020 21:21
Show Gist options
  • Save eksiscloud/f7d57a57509e8a419a21bcc4ee99a80a to your computer and use it in GitHub Desktop.
Save eksiscloud/f7d57a57509e8a419a21bcc4ee99a80a to your computer and use it in GitHub Desktop.
PHP-FPM basics
[www]
user = www-data
group = www-data
listen = /run/php/php7.4-fpm.sock
listen.owner = www-data
listen.group = www-data
pm = static pm.max_children = 18
;pm.start_servers = 2
;pm.min_spare_servers = 2
;pm.max_spare_servers = 20
;pm.process_idle_timeout = 10s;
pm.max_requests = 3600
request_terminate_timeout = 10000
access.log = /var/log/php-fpm-access.$pool.log
access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%"
;slowlog = /var/log/php-fpm-$pool.log.slow
;request_slowlog_timeout = 20
;request_slowlog_trace_depth = 20
request_terminate_timeout = 10000
;chroot =
;chdir = /var/www
security.limit_extensions = .php
pm.status_path = /php-fpm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment