You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
2.2 KiB
58 lines
2.2 KiB
|
9 years ago
|
;;
|
||
|
|
;; php-fpm.conf -- PHP FastCGI Process Manager (FPM) Configuration
|
||
|
|
;;
|
||
|
|
|
||
|
|
include = @l_prefix@/etc/php-fpm/php-fpm.d/*.conf
|
||
|
|
|
||
|
|
[global]
|
||
|
|
|
||
|
|
pid = @l_prefix@/var/php-fpm/run/php-fpm.pid
|
||
|
|
error_log = @l_prefix@/var/php-fpm/log/php-fpm.log
|
||
|
|
|
||
|
|
daemonize = yes
|
||
|
|
emergency_restart_threshold = 4
|
||
|
|
emergency_restart_interval = 60s
|
||
|
|
process_control_timeout = 0
|
||
|
|
process.max = 128
|
||
|
|
|
||
|
|
[pool1]
|
||
|
|
|
||
|
|
user = openpkg-n
|
||
|
|
group = openpkg-n
|
||
|
|
listen = 127.0.0.1:9000
|
||
|
|
;listen.allowed_clients = 127.0.0.1
|
||
|
|
|
||
|
|
pm = dynamic
|
||
|
|
pm.max_children = 5
|
||
|
|
pm.start_servers = 2
|
||
|
|
pm.min_spare_servers = 1
|
||
|
|
pm.max_spare_servers = 3
|
||
|
|
pm.max_requests = 1000
|
||
|
|
pm.status_path = /status
|
||
|
|
;ping.path = /ping
|
||
|
|
;ping.response = pong
|
||
|
|
request_terminate_timeout = 120s
|
||
|
|
catch_workers_output = no
|
||
|
|
security.limit_extensions = .php
|
||
|
|
|
||
|
|
access.log = @l_prefix@/var/php-fpm/log/php-fpm.access.log
|
||
|
|
access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%"
|
||
|
|
|
||
|
|
;php_admin_flag[register_globals] = off
|
||
|
|
;php_admin_flag[allow_url_fopen] = off
|
||
|
|
;php_flag[display_errors] = off
|
||
|
|
;php_admin_flag[log_errors] = on
|
||
|
|
;php_admin_value[max_execution_time] = 60
|
||
|
|
;php_admin_value[max_input_time] = 60
|
||
|
|
;php_admin_value[memory_limit] = 128M
|
||
|
|
;php_admin_value[post_max_size] = 16M
|
||
|
|
;php_admin_value[realpath_cache_size] = 256K
|
||
|
|
;php_admin_value[realpath_cache_ttl] = 120
|
||
|
|
|
||
|
|
php_admin_value[error_log] = @l_prefix@/var/php-fpm/log/php-fpm.error.log
|
||
|
|
php_value[sendmail_path] = @l_prefix@/sbin/sendmail -t -i -f openpkg@example.com
|
||
|
|
|
||
|
|
;env[PATH] = /bin:/usr/bin:/sbin:/usr/sbin:@l_prefix@/bin:@l_prefix@/sbin
|
||
|
|
;env[TMPDIR] = /tmp
|
||
|
|
|