Advertisement
Guest User

[pcx] fcgid.conf

a guest
Nov 19th, 2019
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.71 KB | None | 0 0
  1. <IfModule mod_fcgid.c>
  2. ## Set buffers to 1G to ensure buffered sites are loaded fully.
  3. ## Increase if page output may be larger than 1G.
  4. FcgidOutputBufferSize 1073741824
  5.  
  6. ## Match to FcgidOutputBufferSize (ensures large volume input works)
  7. FcgidMaxRequestLen 1073741824
  8.  
  9. ## Disable process termination based on number of requests
  10. ## (rely on lifetime for termination not request count)
  11. ## Protects against the FCGI random 500 ISE caveat.
  12. FcgidMaxRequestsPerProcess 0
  13. FcgidInitialEnv PHP_FCGI_MAX_REQUESTS 0
  14. FcgidInitialEnv PHP_FCGI_CHILDREN 0
  15.  
  16. ## Total allowed active PHP Processes server-wide
  17. ## Calculated by: SystemAvailableMemory/PHP memory_limit
  18. FcgidMaxProcesses 1000
  19.  
  20. ## Total allowed active PHP Processes per user
  21. ##     Dedicated Servers should Match FcgidMaxProcesses
  22. ##     Shared Servers use a fraction of FcgidMaxProcesses
  23. FcgidMaxProcessesPerClass 1000
  24.  
  25. ## Should Match PHP: cgi.fix_pathinfo (which defaults to 1)
  26. FcgidFixPathinfo 1
  27.  
  28. ## How long to wait for I/O processes to complete
  29. ## Match Apache: Timeout
  30. FcgidIOTimeout 100
  31.  
  32. ## How long to wait for an active PHP process to finish before forced recycle.
  33. ## Should Match PHP: max_execution_time
  34. FcgidBusyTimeout 600
  35.  
  36. ## Kill off idle PHP processes
  37. ## Max lifespan of idle process is: FcgidIdleTimeout + FcgidIdleScanInterval
  38. FcgidIdleTimeout 60
  39. FcgidIdleScanInterval 30
  40. FcgidErrorScanInterval 30
  41. FcgidZombieScanInterval 1
  42.  
  43. ## How long an active PHP processes lives before forced recycle.
  44. ## Lower this if PHP memory leaks become a problem
  45. FcgidProcessLifeTime 3600
  46.  
  47. ## Prevents idle PHP processes from lingering
  48. FcgidMinProcessesPerClass 0
  49.  
  50.   <IfModule mod_mime.c>
  51.     AddHandler fcgid-script .fcgi .php .fpl
  52.   </IfModule>
  53. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement