-
-
Save eksiscloud/f7d57a57509e8a419a21bcc4ee99a80a to your computer and use it in GitHub Desktop.
PHP-FPM basics
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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