Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <IfModule mod_fcgid.c>
- ## Set buffers to 1G to ensure buffered sites are loaded fully.
- ## Increase if page output may be larger than 1G.
- FcgidOutputBufferSize 1073741824
- ## Match to FcgidOutputBufferSize (ensures large volume input works)
- FcgidMaxRequestLen 1073741824
- ## Disable process termination based on number of requests
- ## (rely on lifetime for termination not request count)
- ## Protects against the FCGI random 500 ISE caveat.
- FcgidMaxRequestsPerProcess 0
- FcgidInitialEnv PHP_FCGI_MAX_REQUESTS 0
- FcgidInitialEnv PHP_FCGI_CHILDREN 0
- ## Total allowed active PHP Processes server-wide
- ## Calculated by: SystemAvailableMemory/PHP memory_limit
- FcgidMaxProcesses 1000
- ## Total allowed active PHP Processes per user
- ## Dedicated Servers should Match FcgidMaxProcesses
- ## Shared Servers use a fraction of FcgidMaxProcesses
- FcgidMaxProcessesPerClass 1000
- ## Should Match PHP: cgi.fix_pathinfo (which defaults to 1)
- FcgidFixPathinfo 1
- ## How long to wait for I/O processes to complete
- ## Match Apache: Timeout
- FcgidIOTimeout 100
- ## How long to wait for an active PHP process to finish before forced recycle.
- ## Should Match PHP: max_execution_time
- FcgidBusyTimeout 600
- ## Kill off idle PHP processes
- ## Max lifespan of idle process is: FcgidIdleTimeout + FcgidIdleScanInterval
- FcgidIdleTimeout 60
- FcgidIdleScanInterval 30
- FcgidErrorScanInterval 30
- FcgidZombieScanInterval 1
- ## How long an active PHP processes lives before forced recycle.
- ## Lower this if PHP memory leaks become a problem
- FcgidProcessLifeTime 3600
- ## Prevents idle PHP processes from lingering
- FcgidMinProcessesPerClass 0
- <IfModule mod_mime.c>
- AddHandler fcgid-script .fcgi .php .fpl
- </IfModule>
- </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement