SHARE
TWEET

Untitled

a guest Dec 3rd, 2013 108 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. nginx.conf:
  2.  
  3. user www-data;
  4. worker_processes 4;
  5. pid /var/run/nginx.pid;
  6.  
  7. events {
  8.         worker_connections 768;
  9.         # multi_accept on;
  10. }
  11.  
  12. http {
  13.  
  14.         sendfile on;
  15.         tcp_nopush on;
  16.         tcp_nodelay on;
  17.         keepalive_timeout 65;
  18.         types_hash_max_size 2048;
  19.  
  20.  
  21.         include /etc/nginx/mime.types;
  22.         default_type application/octet-stream;
  23.  
  24.  
  25.  
  26.         access_log /var/log/nginx/access.log;
  27.         error_log /var/log/nginx/error.log;
  28.  
  29.  
  30.         gzip on;
  31.         gzip_disable "msie6";
  32.  
  33.         include /etc/nginx/conf.d/*.conf;
  34.         include /etc/nginx/sites-enabled/*;
  35. }
  36.  
  37. php-fpm:
  38.  
  39. ;;;;;;;;;;;;;;;;;;;;;
  40. ; FPM Configuration ;
  41. ;;;;;;;;;;;;;;;;;;;;;
  42.  
  43. ; All relative paths in this configuration file are relative to PHP's install
  44. ; prefix (/usr). This prefix can be dynamicaly changed by using the
  45. ; '-p' argument from the command line.
  46.  
  47. ; Include one or more files. If glob(3) exists, it is used to include a bunch of
  48. ; files from a glob(3) pattern. This directive can be used everywhere in the
  49. ; file.
  50. ; Relative path can also be used. They will be prefixed by:
  51. ;  - the global prefix if it's been set (-p arguement)
  52. ;  - /usr otherwise
  53. ;include=/etc/php5/fpm/*.conf
  54.  
  55. ;;;;;;;;;;;;;;;;;;
  56. ; Global Options ;
  57. ;;;;;;;;;;;;;;;;;;
  58.  
  59. [global]
  60. ; Pid file
  61. ; Note: the default prefix is /var
  62. ; Default Value: none
  63. pid = /var/run/php5-fpm.pid
  64.  
  65. ; Error log file
  66. ; If it's set to "syslog", log is sent to syslogd instead of being written
  67. ; in a local file.
  68. ; Note: the default prefix is /var
  69. ; Default Value: log/php-fpm.log
  70. error_log = /var/log/php5-fpm.log
  71.  
  72. ; syslog_facility is used to specify what type of program is logging the
  73. ; message. This lets syslogd specify that messages from different facilities
  74. ; will be handled differently.
  75. ; See syslog(3) for possible values (ex daemon equiv LOG_DAEMON)
  76. ; Default Value: daemon
  77. ;syslog.facility = daemon
  78.  
  79. ; syslog_ident is prepended to every message. If you have multiple FPM
  80. ; instances running on the same server, you can change the default value
  81. ; which must suit common needs.
  82. ; Default Value: php-fpm
  83. ;syslog.ident = php-fpm
  84.  
  85. ; Log level
  86. ; Possible Values: alert, error, warning, notice, debug
  87. ; Default Value: notice
  88. ;log_level = notice
  89.  
  90. ; If this number of child processes exit with SIGSEGV or SIGBUS within the time
  91. ; interval set by emergency_restart_interval then FPM will restart. A value
  92. ; of '0' means 'Off'.
  93. ; Default Value: 0
  94. ;emergency_restart_threshold = 0
  95.  
  96. ; Interval of time used by emergency_restart_interval to determine when
  97. ; a graceful restart will be initiated.  This can be useful to work around
  98. ; accidental corruptions in an accelerator's shared memory.
  99. ; Available Units: s(econds), m(inutes), h(ours), or d(ays)
  100. ; Default Unit: seconds
  101. ; Default Value: 0
  102. ;emergency_restart_interval = 0
  103.  
  104. ; Time limit for child processes to wait for a reaction on signals from master.
  105. ; Available units: s(econds), m(inutes), h(ours), or d(ays)
  106. ; Default Unit: seconds
  107. ; Default Value: 0
  108. ;process_control_timeout = 0
  109.  
  110. ; The maximum number of processes FPM will fork. This has been design to control
  111. ; the global number of processes when using dynamic PM within a lot of pools.
  112. ; Use it with caution.
  113. ; Note: A value of 0 indicates no limit
  114. ; Default Value: 0
  115. ; process.max = 128
  116.  
  117. ; Send FPM to background. Set to 'no' to keep FPM in foreground for debugging.
  118. ; Default Value: yes
  119. ;daemonize = yes
  120.  
  121. ; Set open file descriptor rlimit for the master process.
  122. ; Default Value: system defined value
  123. ;rlimit_files = 1024
  124.  
  125. ; Set max core size rlimit for the master process.
  126. ; Possible Values: 'unlimited' or an integer greater or equal to 0
  127. ; Default Value: system defined value
  128. ;rlimit_core = 0
  129.  
  130. ; Specify the event mechanism FPM will use. The following is available:
  131. ; - select     (any POSIX os)
  132. ; - poll       (any POSIX os)
  133. ; - epoll      (linux >= 2.5.44)
  134. ; - kqueue     (FreeBSD >= 4.1, OpenBSD >= 2.9, NetBSD >= 2.0)
  135. ; - /dev/poll  (Solaris >= 7)
  136. ; - port       (Solaris >= 10)
  137. ; Default Value: not set (auto detection)
  138. ; events.mechanism = epoll
  139.  
  140. ;;;;;;;;;;;;;;;;;;;;
  141. ; Pool Definitions ;
  142. ;;;;;;;;;;;;;;;;;;;;
  143.  
  144. ; Multiple pools of child processes may be started with different listening
  145. ; ports and different management options.  The name of the pool will be
  146. ; used in logs and stats. There is no limitation on the number of pools which
  147. ; FPM can handle. Your system will tell you anyway :)
  148.  
  149. ; To configure the pools it is recommended to have one .conf file per
  150. ; pool in the following directory:
  151. include=/etc/php5/fpm/pool.d/*.conf
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top