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