php-fpm.conf 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. ;;;;;;;;;;;;;;;;;;;;;
  2. ; FPM Configuration ;
  3. ;;;;;;;;;;;;;;;;;;;;;
  4. ;;;;;;;;;;;;;;;;;;
  5. ; Global Options ;
  6. ;;;;;;;;;;;;;;;;;;
  7. [global]
  8. pid = /dev/shm/php-fpm.pid
  9. error_log = /data/log/php-fpm.log
  10. log_level = warning
  11. emergency_restart_threshold = 30
  12. emergency_restart_interval = 60s
  13. process_control_timeout = 5s
  14. daemonize = yes
  15. ;;;;;;;;;;;;;;;;;;;;
  16. ; Pool Definitions ;
  17. ;;;;;;;;;;;;;;;;;;;;
  18. [www]
  19. listen = /dev/shm/php-cgi.sock
  20. ;listen = 9000
  21. listen.backlog = -1
  22. ;listen.allowed_clients = any
  23. listen.owner = nobody
  24. ;listen.group = nobody
  25. listen.mode = 0666
  26. user = nobody
  27. ;group = nobody
  28. pm = dynamic
  29. pm.max_children = 16
  30. pm.start_servers = 10
  31. pm.min_spare_servers = 8
  32. pm.max_spare_servers = 16
  33. pm.max_requests = 2048
  34. pm.process_idle_timeout = 10s
  35. request_terminate_timeout = 120
  36. request_slowlog_timeout = 0
  37. pm.status_path = /php-fpm_status
  38. slowlog = /data/log/slow.log
  39. rlimit_files = 51200
  40. rlimit_core = 0
  41. catch_workers_output = yes
  42. ;php_admin_value[error_log] =/data/log/php_errors.log
  43. php_admin_value[expose_php] = on
  44. env[PATH] = /usr/local/bin:/usr/bin:/bin
  45. env[TMP] = /tmp
  46. env[TMPDIR] = /tmp
  47. env[TEMP] = /tmp