Skip to content

Instantly share code, notes, and snippets.

@mohamednizar
Created March 20, 2019 06:05
Show Gist options
  • Save mohamednizar/15cdb42bd09c3041066e64ab6acd10c7 to your computer and use it in GitHub Desktop.
Save mohamednizar/15cdb42bd09c3041066e64ab6acd10c7 to your computer and use it in GitHub Desktop.
[global]
; Override default pid file
pid = /run/php-fpm.pid
; Avoid logs being sent to syslog
error_log = /proc/self/fd/2
[www]
; Access from webserver container is via network, not socket file
listen = [::]:9000
pm = dynamic
pm.max_children = 500
pm.max_requests = 5000
pm.start_servers = 100
pm.min_spare_servers = 100
pm.max_spare_servers = 300
; Redirect logs to stdout - FPM closes /dev/std* on startup
access.log = /proc/self/fd/2
catch_workers_output = yes
; Required to allow config-by-environment
clear_env = no
upload_max_filesize = 100M
post_max_size = 108M
memory_limit = 512M
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment