Skip to content

Instantly share code, notes, and snippets.

@ysasaki
Created July 23, 2015 12:05
Show Gist options
  • Save ysasaki/b746c4761ac7aa6c1055 to your computer and use it in GitHub Desktop.
Save ysasaki/b746c4761ac7aa6c1055 to your computer and use it in GitHub Desktop.
Hot deploy php-fpm using Server::Starter
[global]
pid = /var/run/php-fpm/php-fpm.pid
error_log = /var/log/php-fpm/php-fpm-error_log
daemonize = no
[www]
listen = /var/run/php-fpm/php-fpm.sock
listen.backlog = 256
listen.allowed_clients = 127.0.0.1
listen.mode = 0660
pm = dynamic
pm.max_children = 50
pm.start_servers = 5
pm.min_spare_servers = 5
pm.max_spare_servers = 35
slowlog = /var/log/php-fpm/slow_log
php_admin_value[error_log] = /var/log/php-fpm/error_log
php_admin_flag[log_errors] = on
#!/bin/bash
start_server --path=/var/run/php-fpm/php-fpm.sock \
--interval=15 \
--signal-on-hup=QUIT -- \
sh -c 'FPM_SOCKETS=$SERVER_STARTER_PORT php-fpm -y php-fpm.conf'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment