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