|
|
1ceb81 |
;;;;;;;;;;;;;;;;;;;;;
|
|
|
1ceb81 |
; FPM Configuration ;
|
|
|
1ceb81 |
;;;;;;;;;;;;;;;;;;;;;
|
|
|
1ceb81 |
|
|
|
1ceb81 |
; All relative paths in this configuration file are relative to PHP's install
|
|
|
1ceb81 |
; prefix.
|
|
|
1ceb81 |
|
|
|
1ceb81 |
; Include one or more files. If glob(3) exists, it is used to include a bunch of
|
|
|
1ceb81 |
; files from a glob(3) pattern. This directive can be used everywhere in the
|
|
|
1ceb81 |
; file.
|
|
|
1ceb81 |
include=/etc/php-fpm.d/*.conf
|
|
|
1ceb81 |
|
|
|
1ceb81 |
;;;;;;;;;;;;;;;;;;
|
|
|
1ceb81 |
; Global Options ;
|
|
|
1ceb81 |
;;;;;;;;;;;;;;;;;;
|
|
|
1ceb81 |
|
|
|
1ceb81 |
[global]
|
|
|
1ceb81 |
; Pid file
|
|
|
1ceb81 |
; Default Value: none
|
|
|
1ceb81 |
pid = /run/php-fpm/php-fpm.pid
|
|
|
1ceb81 |
|
|
|
1ceb81 |
; Error log file
|
|
|
1ceb81 |
; If it's set to "syslog", log is sent to syslogd instead of being written
|
|
|
1ceb81 |
; in a local file.
|
|
|
1ceb81 |
; Default Value: /var/log/php-fpm.log
|
|
|
1ceb81 |
error_log = /var/log/php-fpm/error.log
|
|
|
1ceb81 |
|
|
|
1ceb81 |
; syslog_facility is used to specify what type of program is logging the
|
|
|
1ceb81 |
; message. This lets syslogd specify that messages from different facilities
|
|
|
1ceb81 |
; will be handled differently.
|
|
|
1ceb81 |
; See syslog(3) for possible values (ex daemon equiv LOG_DAEMON)
|
|
|
1ceb81 |
; Default Value: daemon
|
|
|
1ceb81 |
;syslog.facility = daemon
|
|
|
1ceb81 |
|
|
|
1ceb81 |
; syslog_ident is prepended to every message. If you have multiple FPM
|
|
|
1ceb81 |
; instances running on the same server, you can change the default value
|
|
|
1ceb81 |
; which must suit common needs.
|
|
|
1ceb81 |
; Default Value: php-fpm
|
|
|
1ceb81 |
;syslog.ident = php-fpm
|
|
|
1ceb81 |
|
|
|
1ceb81 |
; Log level
|
|
|
1ceb81 |
; Possible Values: alert, error, warning, notice, debug
|
|
|
1ceb81 |
; Default Value: notice
|
|
|
1ceb81 |
;log_level = notice
|
|
|
1ceb81 |
|
|
|
1ceb81 |
; Log limit on number of characters in the single line (log entry). If the
|
|
|
1ceb81 |
; line is over the limit, it is wrapped on multiple lines. The limit is for
|
|
|
1ceb81 |
; all logged characters including message prefix and suffix if present. However
|
|
|
1ceb81 |
; the new line character does not count into it as it is present only when
|
|
|
1ceb81 |
; logging to a file descriptor. It means the new line character is not present
|
|
|
1ceb81 |
; when logging to syslog.
|
|
|
1ceb81 |
; Default Value: 1024
|
|
|
1ceb81 |
;log_limit = 4096
|
|
|
1ceb81 |
|
|
|
1ceb81 |
; Log buffering specifies if the log line is buffered which means that the
|
|
|
1ceb81 |
; line is written in a single write operation. If the value is false, then the
|
|
|
1ceb81 |
; data is written directly into the file descriptor. It is an experimental
|
|
|
1ceb81 |
; option that can potentionaly improve logging performance and memory usage
|
|
|
1ceb81 |
; for some heavy logging scenarios. This option is ignored if logging to syslog
|
|
|
1ceb81 |
; as it has to be always buffered.
|
|
|
1ceb81 |
; Default value: yes
|
|
|
1ceb81 |
;log_buffering = no
|
|
|
1ceb81 |
|
|
|
1ceb81 |
; If this number of child processes exit with SIGSEGV or SIGBUS within the time
|
|
|
1ceb81 |
; interval set by emergency_restart_interval then FPM will restart. A value
|
|
|
1ceb81 |
; of '0' means 'Off'.
|
|
|
1ceb81 |
; Default Value: 0
|
|
|
1ceb81 |
;emergency_restart_threshold = 0
|
|
|
1ceb81 |
|
|
|
1ceb81 |
; Interval of time used by emergency_restart_interval to determine when
|
|
|
1ceb81 |
; a graceful restart will be initiated. This can be useful to work around
|
|
|
1ceb81 |
; accidental corruptions in an accelerator's shared memory.
|
|
|
1ceb81 |
; Available Units: s(econds), m(inutes), h(ours), or d(ays)
|
|
|
1ceb81 |
; Default Unit: seconds
|
|
|
1ceb81 |
; Default Value: 0
|
|
|
1ceb81 |
;emergency_restart_interval = 0
|
|
|
1ceb81 |
|
|
|
1ceb81 |
; Time limit for child processes to wait for a reaction on signals from master.
|
|
|
1ceb81 |
; Available units: s(econds), m(inutes), h(ours), or d(ays)
|
|
|
1ceb81 |
; Default Unit: seconds
|
|
|
1ceb81 |
; Default Value: 0
|
|
|
1ceb81 |
;process_control_timeout = 0
|
|
|
1ceb81 |
|
|
|
1ceb81 |
; The maximum number of processes FPM will fork. This has been designed to control
|
|
|
1ceb81 |
; the global number of processes when using dynamic PM within a lot of pools.
|
|
|
1ceb81 |
; Use it with caution.
|
|
|
1ceb81 |
; Note: A value of 0 indicates no limit
|
|
|
1ceb81 |
; Default Value: 0
|
|
|
1ceb81 |
;process.max = 128
|
|
|
1ceb81 |
|
|
|
1ceb81 |
; Specify the nice(2) priority to apply to the master process (only if set)
|
|
|
1ceb81 |
; The value can vary from -19 (highest priority) to 20 (lowest priority)
|
|
|
1ceb81 |
; Note: - It will only work if the FPM master process is launched as root
|
|
|
1ceb81 |
; - The pool process will inherit the master process priority
|
|
|
1ceb81 |
; unless specified otherwise
|
|
|
1ceb81 |
; Default Value: no set
|
|
|
1ceb81 |
;process.priority = -19
|
|
|
1ceb81 |
|
|
|
1ceb81 |
; Send FPM to background. Set to 'no' to keep FPM in foreground for debugging.
|
|
|
1ceb81 |
; Default Value: yes
|
|
|
1ceb81 |
daemonize = yes
|
|
|
1ceb81 |
|
|
|
1ceb81 |
; Set open file descriptor rlimit for the master process.
|
|
|
1ceb81 |
; Default Value: system defined value
|
|
|
1ceb81 |
;rlimit_files = 1024
|
|
|
1ceb81 |
|
|
|
1ceb81 |
; Set max core size rlimit for the master process.
|
|
|
1ceb81 |
; Possible Values: 'unlimited' or an integer greater or equal to 0
|
|
|
1ceb81 |
; Default Value: system defined value
|
|
|
1ceb81 |
;rlimit_core = 0
|
|
|
1ceb81 |
|
|
|
1ceb81 |
; Specify the event mechanism FPM will use. The following is available:
|
|
|
1ceb81 |
; - select (any POSIX os)
|
|
|
1ceb81 |
; - poll (any POSIX os)
|
|
|
1ceb81 |
; - epoll (linux >= 2.5.44)
|
|
|
1ceb81 |
; Default Value: not set (auto detection)
|
|
|
1ceb81 |
;events.mechanism = epoll
|
|
|
1ceb81 |
|
|
|
1ceb81 |
; When FPM is built with systemd integration, specify the interval,
|
|
|
1ceb81 |
; in seconds, between health report notification to systemd.
|
|
|
1ceb81 |
; Set to 0 to disable.
|
|
|
1ceb81 |
; Available Units: s(econds), m(inutes), h(ours)
|
|
|
1ceb81 |
; Default Unit: seconds
|
|
|
1ceb81 |
; Default value: 10
|
|
|
1ceb81 |
;systemd_interval = 10
|
|
|
1ceb81 |
|
|
|
1ceb81 |
;;;;;;;;;;;;;;;;;;;;
|
|
|
1ceb81 |
; Pool Definitions ;
|
|
|
1ceb81 |
;;;;;;;;;;;;;;;;;;;;
|
|
|
1ceb81 |
|
|
|
1ceb81 |
; Multiple pools of child processes may be started with different listening
|
|
|
1ceb81 |
; ports and different management options. The name of the pool will be
|
|
|
1ceb81 |
; used in logs and stats. There is no limitation on the number of pools which
|
|
|
1ceb81 |
; FPM can handle. Your system will tell you anyway :)
|
|
|
1ceb81 |
|
|
|
1ceb81 |
; See /etc/php-fpm.d/*.conf
|
|
|
1ceb81 |
|