Fcgidbusyscaninterval directive
Description: Scan the interval for a busy timeout process
Syntax: Fcgidbusyscaninterval seconds
Default: Fcgidbusyscaninterval 120
Environment: Server Configuration
Status: External
The corresponding old instruction: Busyscaninterval
The module will perform a fcgidbusytimeout check in this interval.
Fcgidbusytimeout directive
Description: Kill the FASTCGI application after processing request exceeds Fcgidbusytimeout set time
Syntax: fcgidbusytimeout seconds
Default: Fcgidbusytimeout 300
Environment: Server configuration, Virtual host
Status: External
The corresponding old instruction: Busytimeout
This is the maximum time limit for processing requests. If the fastcgi request exceeds the number of seconds set by the Fcgidbusytimeou, the request will be terminated. The time of the check is defined by Fcgidbusyscaninterval and the request processing is valid for the set time. The purpose of this directive is to terminate the suspended application. The default time-out, which may require an additional application, can take longer to process the request.
Fcgidbusyscaninterval #与FcgidBusyTimeout对应, check every 120 seconds
Fcgidbusytimeout #超过300秒的fastcgi请求将被终止
Fcgidconnecttimeout directive
Description: The FASTCGI service timed out after waiting for the set time parameter (fastcgi connection timed out)
Syntax: fcgidconnecttimeout seconds
Default: Fcgidconnecttimeout 3
Environment: Server configuration, Virtual host
Status: External
The corresponding old instruction: Ipcconnecttimeout
This is fastcgi this module in Windows when it tries to connect an application to set a maximum cycle time, when the wait time exceeds this time, there will be a timeout. (this directive should not be available on Unix)
Fcgiderrorscaninterval directive
Description: Scans out of the suspended process within the interval of time
Syntax: Fcgiderrorscaninterval seconds
Default: FcgidErrorScanInterval3
Environment: Server Configuration
Status: External
The corresponding old instruction: Errorscaninterval
This is the interval module that will handle the pending process termination. Terminates where any process that has exceeded fcgididletimeout or fcgidprocesslifetime is waiting.
Fcgididlescaninterval directive
Description: Scan interval for idle timeout process
Syntax: Fcgididlescaninterval seconds
Default: FcgidFixPathinfo120
Environment: Server Configuration
Status: External
The corresponding old instruction: Idlescaninterval
During this set interval, the process in which the module will search has exceeded the maximum effective time of fcgididletimeout or Fcgidprocesslifetime settings will terminate.
Fcgididletimeout directive
Description: The idle fastcgi program will be killed after the set time has passed
Syntax: fcgididletimeout seconds
Default: Fcgididletimeout 300
Environment: Server Configuration
Status: External
The corresponding old instruction: IdleTimeout
When this idle time is exceeded, the FASTCGI program that does not process the request will be terminated. The check of the idle process is used in conjunction with the fcgididlescaninterval above.
Fcgididlescaninterval #与FcgidIdleTimeout对应, check every 120 seconds
Fcgididletimeout #超过300秒的fastcgi空闲进程将被终止
FCGIDINITIALENV directive
Description: Pass the value of the environment variable and some optional values to fastcgi
Syntax: fcgidinitialenv name [value]
Default: None
Environment: Server Configuration
Status: External
The corresponding old instruction: Defaultinitenv
Use FCGIDINITIALENV to define environment variables to pass to the fastcgi application. This command can be used multiple times
//-------------------------------------------------------//
# php.ini File Location
Fcgidinitialenv PHPRC "c:/progra~1/php"
//------------------------------------------------------//
# set php_fcgi_max_requests greater than or equal to fcgidmaxrequestsperprocess to prevent the php-cgi process from exiting before processing all requests
Fcgidinitialenv Php_fcgi_max_requests 1000
//-------------------------------------------------------//
#windows的path设置
Fcgidinitialenv PATH "D:/USR/LOCAL/PHP5; C:/windows/system32; C:/windows; C:/windows/system32/wbem; "
//-----------------------------------------------------//
#操作系统目录
Fcgidinitialenv SystemRoot "C:/windows"
//----------------------------------------------------//
#系统盘
Fcgidinitialenv systemdrive "C:"
//-----------------------------------------------------//
#临时文件夹
Fcgidinitialenv TEMP "C:/windows/temp"
//----------------------------------------------------//
#存放临时文件的文件夹
Fcgidinitialenv TMP "C:/windows/temp"
//-----------------------------------------------------//
#操作系统安装目录
fcgidinitialenv windir "C:/windows"
Fcgidprocesslifetime.
Fcgidiotimeout directive
Description: FastCGI server communication timed out
Syntax: fcgidiotimeout seconds
Default: Fcgidiotimeout 40
Environment: Server Configuration
Status: External
The corresponding old instruction: Ipccommtimeout
The fastcgi application that is trying to read or write will wait for the set time to work,
FCGIDFIXPATHINFO directive
Description: Mirrored PHP cgi.fix_pathinfo settings
Syntax: Fcgidfixpathinfo 1
Default: FcgidFixPathinfo0
Environment: Server Configuration
Status: External
The corresponding old instruction: php_fix_pathinfo_enable
The default is not support PathInfo mode, only support the normal URL access mode, if you use this command here, will use the php.ini inside the settings, as follows:
Cgi.fix_pathinfo=1
PathInfo mode refers to non-traditional URL access patterns, such as pseudo-static, rewrite
fcgidmaxprocesses directive
Description: php-cgi Maximum number of processes
Syntax: fcgidmaxprocesses value
Default: Fcgidmaxprocesses 1000
Environment: Server Configuration
Status: External
The corresponding old instruction: Maxprocesscount
This command sets the maximum number of fastcgi processes that can be activated at a time when the program is running. You have more RAM and you can set the value higher.
Fcgidmaxprocessesperclass directive
Description: The maximum number of fcgi processes that can be opened per virtual host
Syntax: Fcgidmaxprocessesperclass value
Default: Fcgidmaxprocessesperclass 100
Environment: Server Configuration
Status: External
The corresponding old instruction: Defaultmaxclassprocesscount
The default is 100, each virtual host can open up to 100 fastcgi processes, that is, a single customer can have a PHP simultaneous service request. I would recommend values from 8 to 20. Note: If there are more requests at the same time, they will be queued instead of rejected. (The value cannot be greater than the value of the fcgidmaxprocesses setting)
Fcgidminprocessesperclass directive
Description: Contrary to Fcgidmaxprocessesperclass
Syntax: Fcgidmaxprocessesperclass value
Default: FCGIDMAXPROCESSESPERCLASS3
Environment: Server Configuration
Status: External
should always be 0
FCGIDMAXREQUESTINMEM directive
Description: The maximum size of each request saved in memory
Syntax: Fcgidmaxrequestinmem bytes
Default: Fcgidmaxrequestinmem 65536
Environment: Server Configuration
Status: External
The module reads the entire request body from the client and then sends it to the application. Typically, the request body will be stored in memory. Once the volume of the request body is read from the client exceeds the bytes set by Fcgidmaxrequestinmem, the remainder of the request body is stored in the temporary file.
Fcgidmaxrequestlen directive
Description: Maximum length of the HTTP request
Syntax: Fcgidmaxrequestlen bytes
Default: Fcgidmaxrequestlen 131072
Environment: Server Configuration
Status: External
If the size of the HTTP request exceeds this amount, the request will fail and the Server error will appear. Errors, usually appear when uploading files.
Warning: The default is 1GB before 2.3.6, now the default is 128K, users should use this command to set a more reasonable limit. For example, I used 2.3.6, it should be set with this parameter to upload larger data.
fcgidmaxrequestsperprocess directive
Description: php-cgi The maximum number of requests per process
Syntax: fcgidmaxrequestsperprocess value
Default: Fcgidmaxrequestsperprocess 0
Environment: Server configuration, Virtual host
Status: External
FastCGI the maximum number of requests processed by the application process. A value of 0 disables checking.
fcgidoutputbuffersize directive
Description: The size of the CGI output buffer
Syntax: fcgidoutputbuffersize bytes
Default: Fcgidoutputbuffersize 65536
Environment: Server configuration, Virtual host
Status: External
Sets the size of the CGI buffer.
Fcgidprocesslifetime directive
Description: Time-to-live for the CGI process
Syntax: fcgidoutputbuffersize bytes
Default: Fcgidoutputbuffersize 65536
Environment: Server configuration, Virtual host
Status: External
An already existing php-cgi process that is larger than the idle time will be terminated if the number of processes exceeds the Fcgidminprocessesperclass setting. A value of 0 disables checking. The lifetime of this process is checked against the fcgididlescaninterval of the above frequency configuration.
FCGIDSPAWNSCOREUPLIMIT directive
Description: A control value that allows process generation speed
Syntax: Fcgidspawnscoreuplimit value
Default: Fcgidspawnscoreuplimit 10
Environment: Server Configuration
Status: External
Generates a speed control value. When a process is produced or terminated, this number increases and decreases as time progresses; When this value is higher than fcgidspawnscoreuplimit, the resulting process will pause for a while, Only the idle or fcgidspawnscoreuplimit value of the existing process is lower than the set value. The higher the data, the faster the build process will become.
Fcgidspawnscore directive
Description: Weight of process build speed
Syntax: Fcgidspawnscore value
Default: Fcgidspawnscore 1
Environment: Server Configuration
Status: External
Generate speed weights. For each process, this value is added to the build speed control value (fcgidspawnscoreuplimit). The higher the value, the faster the CGI is generated.
Fcgidterminationscore directive
Description: Increase the value of each terminating process activity
Syntax: Fcgidterminationscore value
Default: Fcgidterminationscore 2
Environment: Server Configuration
Status: External
Extinction weights. The higher the value, the slower the CGI process is generated.
Fcgidtimescore directive
Description: Subtracts every second of the value of the process activity (set value)
Syntax: Fcgidtimescore value
Default: Fcgidtimescore 1
Environment: Server Configuration
Status: External
The higher the value, the higher the productivity of the process.
Fcgidwrapper directive
Description: Settings for CGI program locations
Syntax: fcgidwrapper command [suffix] [virtual]
Default: None
Environment: Server Configuration
Status: External
Typically used to specify the php-cgi path
LoadModule Fcgid_module modules/mod_fcgid.so
Fcgidwrapper "C:/progra~1/php/php-cgi.exe"
Fcgidzombiescaninterval directive
Description: The scan interval for the zombie process
Syntax: Fcgidzombiescaninterval seconds
Default: Fcgidzombiescaninterval 3
Environment: Server Configuration
Status: External
The time interval for scanning the zombie process.
FASTCGI Basic Configuration
The following is a basic fastcgi configuration
Copy the mod_fcgid.so to the Modules folder under the Apache installation directory, open httpd.conf, and add the following (any location):
LoadModule Fcgid_module modules/mod_fcgid.so
AddHandler fcgid-script. fcgi. php
# php.ini File Location
Fcgidinitialenv PHPRC "c:/progra~1/php"
# set php_fcgi_max_requests greater than or equal to fcgidmaxrequestsperprocess to prevent the php-cgi process from exiting before processing all requests
Fcgidinitialenv Php_fcgi_max_requests 1000
# php-cgi The maximum number of requests per process
Fcgidmaxrequestsperprocess 1000
# php-cgi Maximum number of processes
Fcgidmaxprocesses 5
# Maximum Execution time
Fcgidiotimeout 120
Fcgididletimeout 120
#php-cgi Path
Fcgidwrapper "C:/progra~1/php/php-cgi.exe"
# Define the Mime-type for ". php" Files
AddType application/x-httpd-php. php
#定义cgi请求的长度
Fcgidmaxrequestlen 1500000
Report:
1. AddHandler Instructions
Description: Establish a mapping between a file extension and a specific processor
AddHandler fcgid-script. fcgi. php
The explanation of the above statement is that once the above definition is placed in your http.conf file, all files that contain the. fcgi,.php extension will be treated as fcgid programs.
2. AddType instructions
Description: Establish a mapping between a given file name extension and a specific content type
AddType application/x-httpd-php. php
The above statement is interpreted as: once the above definition is placed in your http.conf file, all files containing the. php extension will be treated as PHP-type programs.
http://www.bkjia.com/PHPjc/477366.html www.bkjia.com true http://www.bkjia.com/PHPjc/477366.html techarticle fcgidbusyscaninterval Instruction Description: Interval syntax for scanning busy timeout processes: Fcgidbusyscaninterval seconds Default: Fcgidbusyscaninterval 120 environment: Server configuration Status: External ...