Skip to content

Instantly share code, notes, and snippets.

@hendrauzia
Created March 10, 2013 09:22
Show Gist options
  • Save hendrauzia/5127756 to your computer and use it in GitHub Desktop.
Save hendrauzia/5127756 to your computer and use it in GitHub Desktop.
PHP-FPM Pool Configuration
[DOMAINNAME]
listen = /var/run/php5-fpm/DOMAINNAME.socket
listen.backlog = -1
; Unix user/group of processes
user = APPUSER
group = www-data
; Choose how the process manager will control the number of child processes.
pm = dynamic
pm.max_children = 75
pm.start_servers = 10
pm.min_spare_servers = 5
pm.max_spare_servers = 20
pm.max_requests = 500
; Pass environment variables
env[HOSTNAME] = $HOSTNAME
env[PATH] = /usr/local/bin:/usr/bin:/bin
env[TMP] = /tmp
env[TMPDIR] = /tmp
env[TEMP] = /tmp
pm.start_servers = 10
pm.min_spare_servers = 5
pm.max_spare_servers = 20
pm.max_requests = 500
; Pass environment variables
env[HOSTNAME] = $HOSTNAME
env[PATH] = /usr/local/bin:/usr/bin:/bin
env[TMP] = /tmp
env[TMPDIR] = /tmp
env[TEMP] = /tmp
; host-specific php ini settings here
php_value[short_open_tag] = On
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment