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