mod_fcgid русская документация - директивы конфигурации

Автор:
Опубліковано: 4665 днів назад (17 липня 2011)
0
Голосів: 0
IdleTimeout n (300 seconds)

Интервал, через который FastCGI приложение будет прекращено при простое.

IdleScanInterval n (120 seconds)

Частота проверки интервала простоя FastCGI приложения.

BusyTimeout n (300 seconds)

FastCGI приложение будет прекращено в случае не ответа больше указанного количества времени.

BusyScanInterval n (120 seconds)

Частота проверки интервала занятости FastCGI приложения.

ErrorScanInterval n (3 seconds)

Частота проверки FastCGI приложения на ошибки

ZombieScanInterval n (3 seconds)

Частота проверки FastCGI приложения на состояние Zombie.

ProcessLifeTime n (3600 seconds)

Время жизни процесса FastCGI по истечение которого он будет прекращен даже если работает без ошибок.

SocketPath path (logs/fcgidsock)

Путь к сокет-файлу FastCGI-процесса. (только в UNIX-системах)

SharememPath path (logs/fcgid_shm)

Путь к файлу общей памяти. (UNIX-системы) (только для версии >= 2.1).

SpawnScoreUpLimit n (10)

Лимит частоты запуска новых процессов FastCGI. При его приевышении на некоторое время прекращается запуск новых процессов.

SpawnScore n (1)

Множитель частоты появления новых процессов. Чем больше значение, тем меньше частота запуска новых процессов.

TerminationScore n (2)

The weight of termination. This weight will be plused to the score while fastcgi process terminates. The higher this number is, the lower speed of spawning can be.

MaxProcessCount n (1000)

Максимальное число процессов FastCGI.

DefaultMaxClassProcessCount n (100)

The maximum number of fastcgi application instances allowed to run for any one fastcgi application.

DefaultMinClassProcessCount n (3)

The minimum number of fastcgi application instances for any one fastcgi application.

DefaultInitEnv  env_name env_value

The default environment variables before a fastcgi application is spawned. You can set this configuration more than once.
Note: If you get:
Can't create TCP/IP socket (10106) error while running PHP script(on Win32 only), you will have to set these(Please modify the values if necessary):
DefaultInitEnv PHPRC "c:/php/"
DefaultInitEnv PATH "c:/php;C:/WINDOWS/system32;C:/WINDOWS;C:/WINDOWS/System32/Wbem;"
DefaultInitEnv SystemRoot "C:/Windows"
DefaultInitEnv SystemDrive "C:"
DefaultInitEnv TEMP "C:/WINDOWS/TEMP"
DefaultInitEnv TMP "C:/WINDOWS/TEMP"
DefaultInitEnv windir "C:/WINDOWS"

(Thank Steffen of apachelounge.com for this note)


IPCConnectTimeout n (3 seconds)

Время ожидания ответа при подключении к FastCGI-приложению.

IPCCommTimeout n (20 seconds)

The communication timeout to a fastcgi application. Please increase this value if your CGI have a slow initialization or slow respond.

OutputBufferSize n (64k bytes)

CGI output cache buffer size.

PHP_Fix_Pathinfo_Enable n(n=0/1, default 0)

If you are using PHP and set cgi.fix_pathinfo=1 in php.ini, set PHP_Fix_Pathinfo_Enable 1.

MaxRequestsPerProcess n (-1)

(Added in version 1.11, patch from Robert L Mathews)

Adds a MaxRequestsPerProcess parameter that allows mod_fcgid to exit after handling a certain number of requests, similar to the existing ProcessLifeTime option.

This solves a problem with PHP in FastCGI mode. By default, PHP stops accepting new FastCGI connections after handling 500 requests; unfortunately, there is a potential race condition during the PHP cleanup code in which PHP can be shutting down but still have the socket open, so mod_fcgid under heavy load can send request number 501 to PHP and have it "accepted", but then PHP appears to simply exit, causing errors.

If you are using PHP, you should set it to 500. -1 mean fastcgi process will not exit no matter how many requests it has handled.
Кроссоверы | 12 мифов об автозвуке (полезно для начинающих)

← Назад

Яндекс.Метрика