logo
Apache Lounge
Webmasters

 


About

Forum Index Downloads Search Register Log in  RSS Apache Lounge
 


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.



Better mod_fcgid configuration

 
Post new topic   Reply to topic    Apache Forum Index -> Apache third-party Modules



View previous topic :: View next topic  
Author Message
bagu



Joined: 06 Jan 2011
Posts: 144
Location: France

PostPosted: Tue 02 Jul '19 23:53    Post subject: Better mod_fcgid configuration Reply with quote

Hello,

Since a while, i have many timeout and zombie process with fcgid.
So, i wonder how i can set up a better config file for fcgid.

Here is my config file :
Code:
FcgidInitialEnv PHPRC "d:\\wamp\\php"
FcgidInitialEnv PATH "d:\\wamp\\php;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;"
FcgidInitialEnv SystemRoot "C:\\Windows"
FcgidInitialEnv SystemDrive "C:"
FcgidInitialEnv TEMP "X:\\Temp"
FcgidInitialEnv TMP "X:\\Temp"
FcgidInitialEnv windir "C:\\Windows"

#   FcgidIOTimeout seconds (40)
#   This is the maximum period of time the module will wait while trying to read from or write to a FastCGI application.
FcgidIOTimeout 40

#   FcgidConnectTimeout seconds (3)
#   This is the maximum period of time the module will wait while trying to connect to a FastCGI application on Windows. (This directive is not respected on Unix, where AF_UNIX defaults will apply.)
FcgidConnectTimeout 3

#   FcgidMaxProcesses value (1000)
#   This directive sets the maximum number of FastCGI application processes which can be active at one time.
FcgidMaxProcesses 1000

#   FcgidMaxProcessesPerClass (100)
#   This directive sets the maximum number of processes that can be started for each process class.
FcgidMaxProcessesPerClass 100

#   FcgidProcessLifeTime seconds (3600)
#   Idle application processes which have existed for greater than this time will be terminated, if the number of processses for the class exceeds FcgidMinProcessesPerClass.
#   A value of 0 disables the check.
FcgidProcessLifeTime 0

#   ZombieScanInterval n (3 seconds)
#   The scan interval for zombie process.
FcgidZombieScanInterval 3

#   FcgidMaxRequestsPerProcess value (0)
#   FastCGI application processes will be terminated after handling the specified number of requests.
#   A value of 0 disables the check.
FcgidMaxRequestsPerProcess 0

#   FcgidMinProcessesPerClass value (3)
#   This directive sets the minimum number of processes that will be retained in a process class after finishing requests.
#   This setting will apply to all applications spawned for this server or virtual host.
#   FcgidMinProcessesPerClass 0
FcgidMinProcessesPerClass 0

#   FcgidFixPathinfo 1-0 (0)
#   This directive enables special SCRIPT_NAME processing which allows PHP to provide additional path information. The setting of FcgidFixPathinfo should mirror the cgi.fix_pathinfo setting in php.ini
FcgidFixPathinfo 0

#   FcgidMaxRequestInMem bytes (65536)
#   This module reads the entire request body from the client before sending it to the application.
#   Normally the request body will be stored in memory. Once the amount of request body read from the client exceeds FcgidMaxRequestInMem bytes, the remainder of the request body will be stored in a temporary file.
FcgidMaxRequestInMem 16777216

#   FcgidOutputBufferSize (65536)
#   This is the maximum amount of response data the module will read from the FastCGI application before flushing the data to the client.
FcgidOutputBufferSize 1073741824

#   FcgidMaxRequestLen bytes (131072)
#   If the size of the request body exceeds this amount, the request will fail with 500 Server Error.
FcgidMaxRequestLen 1073741824

#   FcgidConnectTimeout n (3 seconds)
#   The connect timeout to a fastcgi application.
FcgidConnectTimeout 3

#   FcgidIOTimeout n (40 seconds)
#   This is the maximum period of time the module will wait while trying to read from or write to a FastCGI application.
#   Please increase this value if your CGI have a slow initialization or slow respond.
FcgidIOTimeout 40

#   FcgidWin32PreventOrphans On|Off
FcgidWin32PreventOrphans On

<Files ~ "\.php$">
   Options Indexes FollowSymLinks ExecCGI
   AddHandler fcgid-script .php
   FcgidWrapper "d:/wamp/php/php-cgi.exe" .php
</Files>


Error messages or warn are like these :
Code:
mod_fcgid: cleanup zombie process 11996

Code:
mod_fcgid: read timeout from pipe

Code:
End of script output before headers


Thanks for your help
Back to top


Post new topic   Reply to topic    Apache Forum Index -> Apache third-party Modules
Page 1 of 1