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