Advertisement
Guest User

Untitled

a guest
Mar 6th, 2016
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
INI file 18.26 KB | None | 0 0
  1. root@jessie:/etc/imscp/listeners.d# cat /etc/php5/fpm/pool.d/oeko-admin.ch.conf
  2. ; Start a new pool named 'oeko-admin.ch'.
  3. ; the variable $pool can be used in any directive and will be replaced by the
  4. ; pool name ('oeko-admin.ch' here)
  5. [oeko-admin.ch]
  6.  
  7. ; Per pool prefix
  8. ; It only applies on the following directives:
  9. ; - 'slowlog'
  10. ; - 'listen' (unixsocket)
  11. ; - 'chroot'
  12. ; - 'chdir'
  13. ; - 'php_values'
  14. ; - 'php_admin_values'
  15. ; When not set, the global prefix (or /usr) applies instead.
  16. ; Note: This directive can also be relative to the global prefix.
  17. ; Default Value: none
  18. ;prefix = /path/to/pools/$pool
  19.  
  20. ; Unix user/group of processes
  21. ; Note: The user is mandatory. If the group is not set, the default user's group
  22. ;       will be used.
  23. user = vu2004
  24. group = vu2004
  25.  
  26. ; The address on which to accept FastCGI requests.
  27. ; Valid syntaxes are:
  28. ;   'ip.add.re.ss:port'    - to listen on a TCP socket to a specific address on
  29. ;                            a specific port;
  30. ;   'port'                 - to listen on a TCP socket to all addresses on a
  31. ;                            specific port;
  32. ;   '/path/to/unix/socket' - to listen on a unix socket.
  33. ; Note: This value is mandatory.
  34. listen = /var/run/php5-fpm-oeko-admin.ch.sock
  35.  
  36. ; Set listen(2) backlog. A value of '-1' means unlimited.
  37. ; Default Value: 128 (-1 on FreeBSD and OpenBSD)
  38. ;listen.backlog = -1
  39.  
  40. ; Set permissions for unix socket, if one is used. In Linux, read/write
  41. ; permissions must be set in order to allow connections from a web server. Many
  42. ; BSD-derived systems allow connections regardless of permissions.
  43. ; Default Values: user and group are set as the running user
  44. ;                 mode is set to 0666
  45. listen.owner = vu2004
  46. listen.group = vu2004
  47. listen.mode = 0660
  48.  
  49. ; List of ipv4 addresses of FastCGI clients which are allowed to connect.
  50. ; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original
  51. ; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address
  52. ; must be separated by a comma. If this value is left blank, connections will be
  53. ; accepted from any ip address.
  54. ; Default Value: any
  55. ;listen.allowed_clients = 127.0.0.1
  56.  
  57. ; Specify the nice(2) priority to apply to the pool processes (only if set)
  58. ; The value can vary from -19 (highest priority) to 20 (lower priority)
  59. ; Note: - It will only work if the FPM master process is launched as root
  60. ;       - The pool processes will inherit the master process priority
  61. ;         unless it specified otherwise
  62. ; Default Value: no set
  63. ; priority = -19
  64.  
  65. ; Choose how the process manager will control the number of child processes.
  66. ; Possible Values:
  67. ;   static  - a fixed number (pm.max_children) of child processes;
  68. ;   dynamic - the number of child processes are set dynamically based on the
  69. ;             following directives. With this process management, there will be
  70. ;             always at least 1 children.
  71. ;             pm.max_children      - the maximum number of children that can
  72. ;                                    be alive at the same time.
  73. ;             pm.start_servers     - the number of children created on startup.
  74. ;             pm.min_spare_servers - the minimum number of children in 'idle'
  75. ;                                    state (waiting to process). If the number
  76. ;                                    of 'idle' processes is less than this
  77. ;                                    number then some children will be created.
  78. ;             pm.max_spare_servers - the maximum number of children in 'idle'
  79. ;                                    state (waiting to process). If the number
  80. ;                                    of 'idle' processes is greater than this
  81. ;                                    number then some children will be killed.
  82. ;  ondemand - no children are created at startup. Children will be forked when
  83. ;             new requests will connect. The following parameter are used:
  84. ;             pm.max_children           - the maximum number of children that
  85. ;                                         can be alive at the same time.
  86. ;             pm.process_idle_timeout   - The number of seconds after which
  87. ;                                         an idle process will be killed.
  88. ; Note: This value is mandatory.
  89. pm = ondemand
  90.  
  91. ; The number of child processes to be created when pm is set to 'static' and the
  92. ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
  93. ; This value sets the limit on the number of simultaneous requests that will be
  94. ; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.
  95. ; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP
  96. ; CGI. The below defaults are based on a server without much resources. Don't
  97. ; forget to tweak pm.* to fit your needs.
  98. ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
  99. ; Note: This value is mandatory.
  100. pm.max_children = 6
  101.  
  102. ; The number of child processes created on startup.
  103. ; Note: Used only when pm is set to 'dynamic'
  104. ; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2
  105. pm.start_servers = 1
  106.  
  107. ; The desired minimum number of idle server processes.
  108. ; Note: Used only when pm is set to 'dynamic'
  109. ; Note: Mandatory when pm is set to 'dynamic'
  110. pm.min_spare_servers = 1
  111.  
  112. ; The desired maximum number of idle server processes.
  113. ; Note: Used only when pm is set to 'dynamic'
  114. ; Note: Mandatory when pm is set to 'dynamic'
  115. pm.max_spare_servers = 2
  116.  
  117. ; The number of seconds after which an idle process will be killed.
  118. ; Note: Used only when pm is set to 'ondemand'
  119. ; Default Value: 10s
  120. pm.process_idle_timeout = 60s
  121.  
  122. ; The number of requests each child process should execute before respawning.
  123. ; This can be useful to work around memory leaks in 3rd party libraries. For
  124. ; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
  125. ; Default Value: 0
  126. pm.max_requests = 1000
  127.  
  128. ; The URI to view the FPM status page. If this value is not set, no URI will be
  129. ; recognized as a status page. It shows the following informations:
  130. ;   pool                 - the name of the pool;
  131. ;   process manager      - static, dynamic or ondemand;
  132. ;   start time           - the date and time FPM has started;
  133. ;   start since          - number of seconds since FPM has started;
  134. ;   accepted conn        - the number of request accepted by the pool;
  135. ;   listen queue         - the number of request in the queue of pending
  136. ;                          connections (see backlog in listen(2));
  137. ;   max listen queue     - the maximum number of requests in the queue
  138. ;                          of pending connections since FPM has started;
  139. ;   listen queue len     - the size of the socket queue of pending connections;
  140. ;   idle processes       - the number of idle processes;
  141. ;   active processes     - the number of active processes;
  142. ;   total processes      - the number of idle + active processes;
  143. ;   max active processes - the maximum number of active processes since FPM
  144. ;                          has started;
  145. ;   max children reached - number of times, the process limit has been reached,
  146. ;                          when pm tries to start more children (works only for
  147. ;                          pm 'dynamic' and 'ondemand');
  148. ; Value are updated in real time.
  149. ; Example output:
  150. ;   pool:                 www
  151. ;   process manager:      static
  152. ;   start time:           01/Jul/2011:17:53:49 +0200
  153. ;   start since:          62636
  154. ;   accepted conn:        190460
  155. ;   listen queue:         0
  156. ;   max listen queue:     1
  157. ;   listen queue len:     42
  158. ;   idle processes:       4
  159. ;   active processes:     11
  160. ;   total processes:      15
  161. ;   max active processes: 12
  162. ;   max children reached: 0
  163. ;
  164. ; By default the status page output is formatted as text/plain. Passing either
  165. ; 'html', 'xml' or 'json' in the query string will return the corresponding
  166. ; output syntax. Example:
  167. ;   http://www.foo.bar/status
  168. ;   http://www.foo.bar/status?json
  169. ;   http://www.foo.bar/status?html
  170. ;   http://www.foo.bar/status?xml
  171. ;
  172. ; By default the status page only outputs short status. Passing 'full' in the
  173. ; query string will also return status for each pool process.
  174. ; Example:
  175. ;   http://www.foo.bar/status?full
  176. ;   http://www.foo.bar/status?json&full
  177. ;   http://www.foo.bar/status?html&full
  178. ;   http://www.foo.bar/status?xml&full
  179. ; The Full status returns for each process:
  180. ;   pid                  - the PID of the process;
  181. ;   state                - the state of the process (Idle, Running, ...);
  182. ;   start time           - the date and time the process has started;
  183. ;   start since          - the number of seconds since the process has started;
  184. ;   requests             - the number of requests the process has served;
  185. ;   request duration     - the duration in ยตs of the requests;
  186. ;   request method       - the request method (GET, POST, ...);
  187. ;   request URI          - the request URI with the query string;
  188. ;   content length       - the content length of the request (only with POST);
  189. ;   user                 - the user (PHP_AUTH_USER) (or '-' if not set);
  190. ;   script               - the main script called (or '-' if not set);
  191. ;   last request cpu     - the %cpu the last request consumed
  192. ;                          it's always 0 if the process is not in Idle state
  193. ;                          because CPU calculation is done when the request
  194. ;                          processing has terminated;
  195. ;   last request memory  - the max amount of memory the last request consumed
  196. ;                          it's always 0 if the process is not in Idle state
  197. ;                          because memory calculation is done when the request
  198. ;                          processing has terminated;
  199. ; If the process is in Idle state, then informations are related to the
  200. ; last request the process has served. Otherwise informations are related to
  201. ; the current request being served.
  202. ; Example output:
  203. ;   ************************
  204. ;   pid:                  31330
  205. ;   state:                Running
  206. ;   start time:           01/Jul/2011:17:53:49 +0200
  207. ;   start since:          63087
  208. ;   requests:             12808
  209. ;   request duration:     1250261
  210. ;   request method:       GET
  211. ;   request URI:          /test_mem.php?N=10000
  212. ;   content length:       0
  213. ;   user:                 -
  214. ;   script:               /home/fat/web/docs/php/test_mem.php
  215. ;   last request cpu:     0.00
  216. ;   last request memory:  0
  217. ;
  218. ; Note: There is a real-time FPM status monitoring sample web page available
  219. ;       It's available in: ${prefix}/share/fpm/status.html
  220. ;
  221. ; Note: The value must start with a leading slash (/). The value can be
  222. ;       anything, but it may not be a good idea to use the .php extension or it
  223. ;       may conflict with a real PHP file.
  224. ; Default Value: not set
  225. ;pm.status_path = /status
  226.  
  227. ; The ping URI to call the monitoring page of FPM. If this value is not set, no
  228. ; URI will be recognized as a ping page. This could be used to test from outside
  229. ; that FPM is alive and responding, or to
  230. ; - create a graph of FPM availability (rrd or such);
  231. ; - remove a server from a group if it is not responding (load balancing);
  232. ; - trigger alerts for the operating team (24/7).
  233. ; Note: The value must start with a leading slash (/). The value can be
  234. ;       anything, but it may not be a good idea to use the .php extension or it
  235. ;       may conflict with a real PHP file.
  236. ; Default Value: not set
  237. ;ping.path = /ping
  238.  
  239. ; This directive may be used to customize the response of a ping request. The
  240. ; response is formatted as text/plain with a 200 response code.
  241. ; Default Value: pong
  242. ;ping.response = pong
  243.  
  244. ; The access log file
  245. ; Default: not set
  246. ;access.log = log/$pool.access.log
  247.  
  248. ; The access log format.
  249. ; The following syntax is allowed
  250. ;  %%: the '%' character
  251. ;  %C: %CPU used by the request
  252. ;      it can accept the following format:
  253. ;      - %vu2004C for user CPU only
  254. ;      - %{system}C for system CPU only
  255. ;      - %{total}C  for user + system CPU (default)
  256. ;  %d: time taken to serve the request
  257. ;      it can accept the following format:
  258. ;      - %{seconds}d (default)
  259. ;      - %{miliseconds}d
  260. ;      - %{mili}d
  261. ;      - %{microseconds}d
  262. ;      - %{micro}d
  263. ;  %e: an environment variable (same as $_ENV or $_SERVER)
  264. ;      it must be associated with embraces to specify the name of the env
  265. ;      variable. Some exemples:
  266. ;      - server specifics like: %{REQUEST_METHOD}e or %{SERVER_PROTOCOL}e
  267. ;      - HTTP headers like: %{HTTP_HOST}e or %{HTTP_USER_AGENT}e
  268. ;  %f: script filename
  269. ;  %l: content-length of the request (for POST request only)
  270. ;  %m: request method
  271. ;  %M: peak of memory allocated by PHP
  272. ;      it can accept the following format:
  273. ;      - %{bytes}M (default)
  274. ;      - %{kilobytes}M
  275. ;      - %{kilo}M
  276. ;      - %{megabytes}M
  277. ;      - %{mega}M
  278. ;  %n: pool name
  279. ;  %o: ouput header
  280. ;      it must be associated with embraces to specify the name of the header:
  281. ;      - %{Content-Type}o
  282. ;      - %{X-Powered-By}o
  283. ;      - %{Transfert-Encoding}o
  284. ;      - ....
  285. ;  %p: PID of the child that serviced the request
  286. ;  %P: PID of the parent of the child that serviced the request
  287. ;  %q: the query string
  288. ;  %Q: the '?' character if query string exists
  289. ;  %r: the request URI (without the query string, see %q and %Q)
  290. ;  %R: remote IP address
  291. ;  %s: status (response code)
  292. ;  %t: server time the request was received
  293. ;      it can accept a strftime(3) format:
  294. ;      %d/%b/%Y:%H:%M:%S %z (default)
  295. ;  %T: time the log has been written (the request has finished)
  296. ;      it can accept a strftime(3) format:
  297. ;      %d/%b/%Y:%H:%M:%S %z (default)
  298. ;  %u: remote user
  299. ;
  300. ; Default: "%R - %u %t \"%m %r\" %s"
  301. ;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%"
  302.  
  303. ; The log file for slow requests
  304. ; Default Value: not set
  305. ; Note: slowlog is mandatory if request_slowlog_timeout is set
  306. ;slowlog = log/$pool.log.slow
  307.  
  308. ; The timeout for serving a single request after which a PHP backtrace will be
  309. ; dumped to the 'slowlog' file. A value of '0s' means 'off'.
  310. ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
  311. ; Default Value: 0
  312. ;request_slowlog_timeout = 0
  313.  
  314. ; The timeout for serving a single request after which the worker process will
  315. ; be killed. This option should be used when the 'max_execution_time' ini option
  316. ; does not stop script execution for some reason. A value of '0' means 'off'.
  317. ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
  318. ; Default Value: 0
  319. ;request_terminate_timeout = 0
  320.  
  321. ; Set open file descriptor rlimit.
  322. ; Default Value: system defined value
  323. ;rlimit_files = 1024
  324.  
  325. ; Set max core size rlimit.
  326. ; Possible Values: 'unlimited' or an integer greater or equal to 0
  327. ; Default Value: system defined value
  328. ;rlimit_core = 0
  329.  
  330. ; Chroot to this directory at the start. This value must be defined as an
  331. ; absolute path. When this value is not set, chroot is not used.
  332. ; Note: you can prefix with '$prefix' to chroot to the pool prefix or one
  333. ; of its subdirectories. If the pool prefix is not set, the global prefix
  334. ; will be used instead.
  335. ; Note: chrooting is a great security feature and should be used whenever
  336. ;       possible. However, all PHP paths will be relative to the chroot
  337. ;       (error_log, sessions.save_path, ...).
  338. ; Default Value: not set
  339. ;chroot =
  340.  
  341. ; Chdir to this directory at the start.
  342. ; Note: relative path can be used.
  343. ; Default Value: current directory or / when chroot
  344. chdir = /
  345.  
  346. ; Redirect worker stdout and stderr into main error log. If not set, stdout and
  347. ; stderr will be redirected to /dev/null according to FastCGI specs.
  348. ; Note: on highloaded environement, this can cause some delay in the page
  349. ; process time (several ms).
  350. ; Default Value: no
  351. ;catch_workers_output = yes
  352.  
  353. ; Limits the extensions of the main script FPM will allow to parse. This can
  354. ; prevent configuration mistakes on the web server side. You should only limit
  355. ; FPM to .php extensions to prevent malicious users to use other extensions to
  356. ; exectute php code.
  357. ; Note: set an empty value to allow all extensions.
  358. ; Default Value: .php
  359. security.limit_extensions = .php .php3 .php4 .php5 .php7 .pht .phtml
  360.  
  361. ; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from
  362. ; the current environment.
  363. ; Default Value: clean env
  364. ;env[HOSTNAME] = $HOSTNAME
  365. ;env[PATH] = /usr/local/bin:/usr/bin:/bin
  366. ;env[TMP] = /tmp
  367. env[TMPDIR] = /var/www/virtual/oeko-admin.ch/phptmp
  368. ;env[TEMP] = /tmp
  369.  
  370. ; Additional php.ini defines, specific to this pool of workers. These settings
  371. ; overwrite the values previously defined in the php.ini. The directives are the
  372. ; same as the PHP SAPI:
  373. ;   php_value/php_flag             - you can set classic ini defines which can
  374. ;                                    be overwritten from PHP call 'ini_set'.
  375. ;   php_admin_value/php_admin_flag - these directives won't be overwritten by
  376. ;                                     PHP call 'ini_set'
  377. ; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no.
  378.  
  379. ; Defining 'extension' will load the corresponding shared extension from
  380. ; extension_dir. Defining 'disable_functions' or 'disable_classes' will not
  381. ; overwrite previously defined php.ini values, but will append the new value
  382. ; instead.
  383.  
  384. ; Note: path INI options can be relative and will be expanded with the prefix
  385. ; (pool, global or /usr)
  386.  
  387. ; Default Value: nothing is defined by default except the values in php.ini and
  388. ;                specified at startup with the -d argument
  389. php_admin_value[open_basedir] = /usr/bin/:/usr/local/sbin/:/usr/local/bin/:/usr/sbin/:/bin/:/var/www/apps/:/var/www/virtual/oeko-admin.ch/:/usr/share/php
  390. php_admin_value[upload_tmp_dir] = /var/www/virtual/oeko-admin.ch/phptmp
  391. php_admin_value[session.save_path] = /var/www/virtual/oeko-admin.ch/phptmp
  392. php_admin_value[soap.wsdl_cache_dir] = /var/www/virtual/oeko-admin.ch/phptmp
  393. php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f webmaster@oeko-admin.ch
  394.  
  395. ; Custom values
  396. php_admin_value[max_execution_time] = 240
  397. php_admin_value[max_input_time] = 60
  398. php_admin_value[memory_limit] = 128M
  399. php_value[error_reporting] = E_ALL & ~E_DEPRECATED & ~E_STRICT
  400. php_flag[display_errors] = off
  401. php_admin_value[post_max_size] = 8M
  402. php_admin_value[upload_max_filesize] = 2M
  403. php_admin_flag[allow_url_fopen] = off
  404. php_admin_value[disable_functions] =
  405. php_value[always_populate_raw_post_data] = -1
  406. php_value[max_input_vars] = 1500
  407. root@jessie:/etc/imscp/listeners.d#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement