Want more features on Pastebin? Sign Up, it's FREE!

php-fpm.conf

By: apurvasukant on Oct 19th, 2012  |  syntax: None  |  size: 4.00 KB  |  views: 20  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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 dynamicaly 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 arguement)
  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 = run/php-fpm.pid
  26. pid = /var/run/php5-fpm.pid
  27.  
  28. ; Error log file
  29. ; If it's set to "syslog", log is sent to syslogd instead of being written
  30. ; in a local file.
  31. ; Note: the default prefix is /var
  32. ; Default Value: log/php-fpm.log
  33. ;error_log = log/php-fpm.log
  34. error_log = /var/log/php5-fpm.log
  35.  
  36. ; syslog_facility is used to specify what type of program is logging the
  37. ; message. This lets syslogd specify that messages from different facilities
  38. ; will be handled differently.
  39. ; See syslog(3) for possible values (ex daemon equiv LOG_DAEMON)
  40. ; Default Value: daemon
  41. ;syslog.facility = daemon
  42.  
  43. ; syslog_ident is prepended to every message. If you have multiple FPM
  44. ; instances running on the same server, you can change the default value
  45. ; which must suit common needs.
  46. ; Default Value: php-fpm
  47. ;syslog.ident = php-fpm
  48.  
  49. ; Log level
  50. ; Possible Values: alert, error, warning, notice, debug
  51. ; Default Value: notice
  52. ;log_level = notice
  53.  
  54. ; If this number of child processes exit with SIGSEGV or SIGBUS within the time
  55. ; interval set by emergency_restart_interval then FPM will restart. A value
  56. ; of '0' means 'Off'.
  57. ; Default Value: 0
  58. emergency_restart_threshold = 10
  59.  
  60. ; Interval of time used by emergency_restart_interval to determine when
  61. ; a graceful restart will be initiated.  This can be useful to work around
  62. ; accidental corruptions in an accelerator's shared memory.
  63. ; Available Units: s(econds), m(inutes), h(ours), or d(ays)
  64. ; Default Unit: seconds
  65. ; Default Value: 0
  66. emergency_restart_interval = 5s
  67.  
  68. ; Time limit for child processes to wait for a reaction on signals from master.
  69. ; Available units: s(econds), m(inutes), h(ours), or d(ays)
  70. ; Default Unit: seconds
  71. ; Default Value: 0
  72. process_control_timeout = 10
  73.  
  74. ; The maximum number of processes FPM will fork. This has been design to control
  75. ; the global number of processes when using dynamic PM within a lot of pools.
  76. ; Use it with caution.
  77. ; Note: A value of 0 indicates no limit
  78. ;Default Value: 0
  79. process.max = 0
  80.  
  81. ;pm.max_requests = 100000
  82.  
  83. ; Send FPM to background. Set to 'no' to keep FPM in foreground for debugging.
  84. ; Default Value: yes
  85. daemonize = yes
  86.  
  87. ; Set open file descriptor rlimit for the master process.
  88. ; Default Value: system defined value
  89. rlimit_files = 30000
  90.  
  91. ; Set max core size rlimit for the master process.
  92. ; Possible Values: 'unlimited' or an integer greater or equal to 0
  93. ; Default Value: system defined value
  94. ;rlimit_core = 0
  95.  
  96. ; Specify the event mechanism FPM will use. The following is available:
  97. ; - select     (any POSIX os)
  98. ; - poll       (any POSIX os)
  99. ; - epoll      (linux >= 2.5.44)
  100. ; - kqueue     (FreeBSD >= 4.1, OpenBSD >= 2.9, NetBSD >= 2.0)
  101. ; - /dev/poll  (Solaris >= 7)
  102. ; - port       (Solaris >= 10)
  103. ; Default Value: not set (auto detection)
  104. events.mechanism = epoll
  105.  
  106. ;;;;;;;;;;;;;;;;;;;;
  107. ; Pool Definitions ;
  108. ;;;;;;;;;;;;;;;;;;;;
  109.  
  110. ; Multiple pools of child processes may be started with different listening
  111. ; ports and different management options.  The name of the pool will be
  112. ; used in logs and stats. There is no limitation on the number of pools which
  113. ; FPM can handle. Your system will tell you anyway :)
  114.  
  115. ; To configure the pools it is recommended to have one .conf file per
  116. ; pool in the following directory:
  117. include=/etc/php5/fpm/pool.d/*.conf
clone this paste RAW Paste Data