Advertisement
Guest User

www.conf

a guest
May 28th, 2016
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
INI file 10.45 KB | None | 0 0
  1. ; Start a new pool named 'www'.
  2. [site.ru]
  3.  
  4. ; The address on which to accept FastCGI requests.
  5. ; Valid syntaxes are:
  6. ;   'ip.add.re.ss:port'    - to listen on a TCP socket to a specific address on
  7. ;                            a specific port;
  8. ;   'port'                 - to listen on a TCP socket to all addresses on a
  9. ;                            specific port;
  10. ;   '/path/to/unix/socket' - to listen on a unix socket.
  11. ; Note: This value is mandatory.
  12. listen = 127.0.0.1:9000
  13. ;listen = /var/run/php-fpm.sock
  14.  
  15. ; Set listen(2) backlog. A value of '-1' means unlimited.
  16. ; Default Value: -1
  17. ;listen.backlog = -1
  18.  
  19. ; List of ipv4 addresses of FastCGI clients which are allowed to connect.
  20. ; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original
  21. ; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address
  22. ; must be separated by a comma. If this value is left blank, connections will be
  23. ; accepted from any ip address.
  24. ; Default Value: any
  25. listen.allowed_clients = 127.0.0.1
  26.  
  27. ; Set permissions for unix socket, if one is used. In Linux, read/write
  28. ; permissions must be set in order to allow connections from a web server. Many
  29. ; BSD-derived systems allow connections regardless of permissions.
  30. ; Default Values: user and group are set as the running user
  31. ;                 mode is set to 0666
  32. listen.owner = nginx
  33. listen.group = nginx
  34. listen.mode = 0666
  35.  
  36. ; Unix user/group of processes
  37. ; Note: The user is mandatory. If the group is not set, the default user's group
  38. ;       will be used.
  39. ; RPM: apache Choosed to be able to access some dir as httpd
  40. user = nginx
  41. ; RPM: Keep a group allowed to write in log dir
  42. group = nginx
  43.  
  44. ; Choose how the process manager will control the number of child processes.
  45. ; Possible Values:
  46. ;   static  - a fixed number (pm.max_children) of child processes;
  47. ;   dynamic - the number of child processes are set dynamically based on the
  48. ;             following directives:
  49. ;             pm.max_children      - the maximum number of children that can
  50. ;                                    be alive at the same time.
  51. ;             pm.start_servers     - the number of children created on startup.
  52. ;             pm.min_spare_servers - the minimum number of children in 'idle'
  53. ;                                    state (waiting to process). If the number
  54. ;                                    of 'idle' processes is less than this
  55. ;                                    number then some children will be created.
  56. ;             pm.max_spare_servers - the maximum number of children in 'idle'
  57. ;                                    state (waiting to process). If the number
  58. ;                                    of 'idle' processes is greater than this
  59. ;                                    number then some children will be killed.
  60. ; Note: This value is mandatory.
  61. pm = dynamic
  62.  
  63. ; The number of child processes to be created when pm is set to 'static' and the
  64. ; maximum number of child processes to be created when pm is set to 'dynamic'.
  65. ; This value sets the limit on the number of simultaneous requests that will be
  66. ; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.
  67. ; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP
  68. ; CGI.
  69. ; Note: Used when pm is set to either 'static' or 'dynamic'
  70. ; Note: This value is mandatory.
  71. pm.max_children = 200
  72.  
  73. ; The number of child processes created on startup.
  74. ; Note: Used only when pm is set to 'dynamic'
  75. ; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2
  76. pm.start_servers = 75
  77.  
  78. ; The desired minimum number of idle server processes.
  79. ; Note: Used only when pm is set to 'dynamic'
  80. ; Note: Mandatory when pm is set to 'dynamic'
  81. pm.min_spare_servers = 75
  82.  
  83. ; The desired maximum number of idle server processes.
  84. ; Note: Used only when pm is set to 'dynamic'
  85. ; Note: Mandatory when pm is set to 'dynamic'
  86. pm.max_spare_servers = 200
  87.  
  88. ; The number of requests each child process should execute before respawning.
  89. ; This can be useful to work around memory leaks in 3rd party libraries. For
  90. ; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
  91. ; Default Value: 0
  92. pm.max_requests = 500
  93.  
  94. ; The URI to view the FPM status page. If this value is not set, no URI will be
  95. ; recognized as a status page. By default, the status page shows the following
  96. ; information:
  97. ;   accepted conn    - the number of request accepted by the pool;
  98. ;   pool             - the name of the pool;
  99. ;   process manager  - static or dynamic;
  100. ;   idle processes   - the number of idle processes;
  101. ;   active processes - the number of active processes;
  102. ;   total processes  - the number of idle + active processes.
  103. ; The values of 'idle processes', 'active processes' and 'total processes' are
  104. ; updated each second. The value of 'accepted conn' is updated in real time.
  105. ; Example output:
  106. ;   accepted conn:   12073
  107. ;   pool:             www
  108. ;   process manager:  static
  109. ;   idle processes:   35
  110. ;   active processes: 65
  111. ;   total processes:  100
  112. ; By default the status page output is formatted as text/plain. Passing either
  113. ; 'html' or 'json' as a query string will return the corresponding output
  114. ; syntax. Example:
  115. ;   http://www.foo.bar/status
  116. ;   http://www.foo.bar/status?json
  117. ;   http://www.foo.bar/status?html
  118. ; Note: The value must start with a leading slash (/). The value can be
  119. ;       anything, but it may not be a good idea to use the .php extension or it
  120. ;       may conflict with a real PHP file.
  121. ; Default Value: not set
  122. pm.status_path = /status
  123.  
  124. ; The ping URI to call the monitoring page of FPM. If this value is not set, no
  125. ; URI will be recognized as a ping page. This could be used to test from outside
  126. ; that FPM is alive and responding, or to
  127. ; - create a graph of FPM availability (rrd or such);
  128. ; - remove a server from a group if it is not responding (load balancing);
  129. ; - trigger alerts for the operating team (24/7).
  130. ; Note: The value must start with a leading slash (/). The value can be
  131. ;       anything, but it may not be a good idea to use the .php extension or it
  132. ;       may conflict with a real PHP file.
  133. ; Default Value: not set
  134. ;ping.path = /ping
  135.  
  136. ; This directive may be used to customize the response of a ping request. The
  137. ; response is formatted as text/plain with a 200 response code.
  138. ; Default Value: pong
  139. ;ping.response = pong
  140.  
  141. ; The timeout for serving a single request after which the worker process will
  142. ; be killed. This option should be used when the 'max_execution_time' ini option
  143. ; does not stop script execution for some reason. A value of '0' means 'off'.
  144. ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
  145. ; Default Value: 0
  146. ;request_terminate_timeout = 0
  147.  
  148. ; The timeout for serving a single request after which a PHP backtrace will be
  149. ; dumped to the 'slowlog' file. A value of '0s' means 'off'.
  150. ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
  151. ; Default Value: 0
  152. request_slowlog_timeout = 5s
  153.  
  154. ; The log file for slow requests
  155. ; Default Value: not set
  156. ; Note: slowlog is mandatory if request_slowlog_timeout is set
  157. slowlog = /var/log/php-fpm/www-slow.log
  158.  
  159. ; Set open file descriptor rlimit.
  160. ; Default Value: system defined value
  161. ;rlimit_files = 1024
  162.  
  163. ; Set max core size rlimit.
  164. ; Possible Values: 'unlimited' or an integer greater or equal to 0
  165. ; Default Value: system defined value
  166. ;rlimit_core = 0
  167.  
  168. ; Chroot to this directory at the start. This value must be defined as an
  169. ; absolute path. When this value is not set, chroot is not used.
  170. ; Note: chrooting is a great security feature and should be used whenever
  171. ;       possible. However, all PHP paths will be relative to the chroot
  172. ;       (error_log, sessions.save_path, ...).
  173. ; Default Value: not set
  174. ;chroot =
  175.  
  176. ; Chdir to this directory at the start. This value must be an absolute path.
  177. ; Default Value: current directory or / when chroot
  178. ;chdir = /var/www
  179.  
  180. ; Redirect worker stdout and stderr into main error log. If not set, stdout and
  181. ; stderr will be redirected to /dev/null according to FastCGI specs.
  182. ; Default Value: no
  183. catch_workers_output = yes
  184.  
  185. ; Limits the extensions of the main script FPM will allow to parse. This can
  186. ; prevent configuration mistakes on the web server side. You should only limit
  187. ; FPM to .php extensions to prevent malicious users to use other extensions to
  188. ; exectute php code.
  189. ; Note: set an empty value to allow all extensions.
  190. ; Default Value: .php
  191. ;security.limit_extensions = .php .php3 .php4 .php5
  192.  
  193. ; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from
  194. ; the current environment.
  195. ; Default Value: clean env
  196. ;env[HOSTNAME] = $HOSTNAME
  197. ;env[PATH] = /usr/local/bin:/usr/bin:/bin
  198. ;env[TMP] = /tmp
  199. ;env[TMPDIR] = /tmp
  200. ;env[TEMP] = /tmp
  201.  
  202. ; Additional php.ini defines, specific to this pool of workers. These settings
  203. ; overwrite the values previously defined in the php.ini. The directives are the
  204. ; same as the PHP SAPI:
  205. ;   php_value/php_flag             - you can set classic ini defines which can
  206. ;                                    be overwritten from PHP call 'ini_set'.
  207. ;   php_admin_value/php_admin_flag - these directives won't be overwritten by
  208. ;                                     PHP call 'ini_set'
  209. ; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no.
  210.  
  211. ; Defining 'extension' will load the corresponding shared extension from
  212. ; extension_dir. Defining 'disable_functions' or 'disable_classes' will not
  213. ; overwrite previously defined php.ini values, but will append the new value
  214. ; instead.
  215.  
  216. ; Default Value: nothing is defined by default except the values in php.ini and
  217. ;                specified at startup with the -d argument
  218. ;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com
  219. ;php_flag[display_errors] = off
  220. php_admin_value[error_log] = /var/log/php-fpm/www-error.log
  221. php_admin_flag[log_errors] = on
  222. php_admin_value[memory_limit] = 1024M
  223. php_admin_value[mbstring.func_overload] = 2
  224. php_admin_value[mbstring.internal_encoding] = utf-8
  225. php_admin_value[max_input_vars] =  10000
  226. php_admin_value[realpath_cache_size] = 4096k
  227. ;php_admin_value[xcache.ttl] = 30
  228. ;php_admin_value[xcache.size] = 2048M
  229.  
  230. ; Set session path to a directory owned by process user
  231. php_value[session.save_handler] = files
  232. php_value[session.save_path]    = /var/lib/php/session
  233. ;php_value[session.save_handler] = memcache
  234. ;php_value[session.save_path] = unix:///tmp/memcached.sock
  235. ; php_value[soap.wsdl_cache_dir]  = /var/lib/php/wsdlcache
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement