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