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