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