Mercurial > repos > other > Puppet
comparison modules/php/templates/fpm/php-fpm.conf.erb @ 386:3fce34f642f1
Add a PHP module to handle platform differences
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Mon, 03 Jan 2022 17:09:39 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
385:d9009f54eb23 | 386:3fce34f642f1 |
---|---|
1 ;;;;;;;;;;;;;;;;;;;;; | |
2 ; FPM Configuration ; | |
3 ;;;;;;;;;;;;;;;;;;;;; | |
4 | |
5 ; All relative paths in this configuration file are relative to PHP's install | |
6 ; prefix (/usr). This prefix can be dynamically changed by using the | |
7 ; '-p' argument from the command line. | |
8 | |
9 ; Include one or more files. If glob(3) exists, it is used to include a bunch of | |
10 ; files from a glob(3) pattern. This directive can be used everywhere in the | |
11 ; file. | |
12 ; Relative path can also be used. They will be prefixed by: | |
13 ; - the global prefix if it's been set (-p argument) | |
14 ; - /usr otherwise | |
15 ;include=/etc/php5/fpm/*.conf | |
16 | |
17 ;;;;;;;;;;;;;;;;;; | |
18 ; Global Options ; | |
19 ;;;;;;;;;;;;;;;;;; | |
20 | |
21 [global] | |
22 ; Pid file | |
23 ; Note: the default prefix is /var | |
24 ; Default Value: none | |
25 pid = <%= @pid_file %> | |
26 | |
27 ; Error log file | |
28 ; If it's set to "syslog", log is sent to syslogd instead of being written | |
29 ; in a local file. | |
30 ; Note: the default prefix is /var | |
31 ; Default Value: log/php-fpm.log | |
32 error_log = <%= @error_log %> | |
33 | |
34 ; syslog_facility is used to specify what type of program is logging the | |
35 ; message. This lets syslogd specify that messages from different facilities | |
36 ; will be handled differently. | |
37 ; See syslog(3) for possible values (ex daemon equiv LOG_DAEMON) | |
38 ; Default Value: daemon | |
39 syslog.facility = <%= @syslog_facility %> | |
40 | |
41 ; syslog_ident is prepended to every message. If you have multiple FPM | |
42 ; instances running on the same server, you can change the default value | |
43 ; which must suit common needs. | |
44 ; Default Value: php-fpm | |
45 syslog.ident = <%= @syslog_ident %> | |
46 | |
47 ; Log level | |
48 ; Possible Values: alert, error, warning, notice, debug | |
49 ; Default Value: notice | |
50 log_level = <%= @log_level %> | |
51 | |
52 ; If this number of child processes exit with SIGSEGV or SIGBUS within the time | |
53 ; interval set by emergency_restart_interval then FPM will restart. A value | |
54 ; of '0' means 'Off'. | |
55 ; Default Value: 0 | |
56 emergency_restart_threshold = <%= @emergency_restart_threshold %> | |
57 | |
58 ; Interval of time used by emergency_restart_interval to determine when | |
59 ; a graceful restart will be initiated. This can be useful to work around | |
60 ; accidental corruptions in an accelerator's shared memory. | |
61 ; Available Units: s(econds), m(inutes), h(ours), or d(ays) | |
62 ; Default Unit: seconds | |
63 ; Default Value: 0 | |
64 emergency_restart_interval = <%= @emergency_restart_interval %> | |
65 | |
66 ; Time limit for child processes to wait for a reaction on signals from master. | |
67 ; Available units: s(econds), m(inutes), h(ours), or d(ays) | |
68 ; Default Unit: seconds | |
69 ; Default Value: 0 | |
70 process_control_timeout = <%= @process_control_timeout %> | |
71 | |
72 ; The maximum number of processes FPM will fork. This has been design to control | |
73 ; the global number of processes when using dynamic PM within a lot of pools. | |
74 ; Use it with caution. | |
75 ; Note: A value of 0 indicates no limit | |
76 ; Default Value: 0 | |
77 process.max = <%= @process_max %> | |
78 | |
79 ; Specify the nice(2) priority to apply to the master process (only if set) | |
80 ; The value can vary from -19 (highest priority) to 20 (lower priority) | |
81 ; Note: - It will only work if the FPM master process is launched as root | |
82 ; - The pool process will inherit the master process priority | |
83 ; unless it specified otherwise | |
84 ; Default Value: no set | |
85 ; process.priority = -19 | |
86 | |
87 ; Send FPM to background. Set to 'no' to keep FPM in foreground for debugging. | |
88 ; Default Value: yes | |
89 ;daemonize = yes | |
90 | |
91 ; Set open file descriptor rlimit for the master process. | |
92 ; Default Value: system defined value | |
93 <% if @rlimit_files -%> | |
94 rlimit_files = <%= @rlimit_files %> | |
95 <% else -%> | |
96 ;rlimit_files = 1024 | |
97 <% end -%> | |
98 | |
99 ; Set max core size rlimit for the master process. | |
100 ; Possible Values: 'unlimited' or an integer greater or equal to 0 | |
101 ; Default Value: system defined value | |
102 ;rlimit_core = 0 | |
103 | |
104 ; Specify the event mechanism FPM will use. The following is available: | |
105 ; - select (any POSIX os) | |
106 ; - poll (any POSIX os) | |
107 ; - epoll (linux >= 2.5.44) | |
108 ; - kqueue (FreeBSD >= 4.1, OpenBSD >= 2.9, NetBSD >= 2.0) | |
109 ; - /dev/poll (Solaris >= 7) | |
110 ; - port (Solaris >= 10) | |
111 ; Default Value: not set (auto detection) | |
112 ;events.mechanism = epoll | |
113 | |
114 ; When FPM is build with systemd integration, specify the interval, | |
115 ; in second, between health report notification to systemd. | |
116 ; Set to 0 to disable. | |
117 ; Available Units: s(econds), m(inutes), h(ours) | |
118 ; Default Unit: seconds | |
119 ; Default value: 10 | |
120 <% if @systemd_interval -%> | |
121 systemd_interval = <%= @systemd_interval %> | |
122 <% else -%> | |
123 ;systemd_interval = 10 | |
124 <% end -%> | |
125 | |
126 ;;;;;;;;;;;;;;;;;;;; | |
127 ; Pool Definitions ; | |
128 ;;;;;;;;;;;;;;;;;;;; | |
129 | |
130 ; Multiple pools of child processes may be started with different listening | |
131 ; ports and different management options. The name of the pool will be | |
132 ; used in logs and stats. There is no limitation on the number of pools which | |
133 ; FPM can handle. Your system will tell you anyway :) | |
134 | |
135 ; To configure the pools it is recommended to have one .conf file per | |
136 ; pool in the following directory: | |
137 include=<%= @pool_base_dir %>/*.conf |