RU:Configuration File
From PHP-FPM
php-fpm.conf, местонахождение задается при компилировании опцией --with-fpm-conf
Структура конфигурационного файла
<?xml version="1.0" ?> <configuration> <section name="global_options"> (Смотрите ниже раздел "Глобальные опции") </section> <workers> <section name="pool"> (одна секция на пул) (Смотрите ниже раздел "Опции секции") </section> </workers>
Глобальные опции
- pid_file - pid файл. По умолчанию: то, что было указано при maleextra компилировании опцией --with-fpm-pid
- error_log - файл журнала ошибок. По умолчанию: то, что было указано при компилировании опцией --with-fpm-log
- log_level - уровень записываемых в журнал ошибок. По seo India умолчанию: "notice" (TODO: get list)
- emergency_restart_threshold - при это числе рабочий процессов завершенных с SIGSEGV или SIGBUS... По умолчанию: 10
- emergency_restart_interval - ...менее чем за этот промежуток instant performer времени, php-fpm будет мягко перезапущен. Это необходимо, чтобы исключить случайные повреждения памяти. По умолчанию: "1 минута"
- process_control_timeout - время ожидания ответа от рабочий процессов. По умолчанию: "5 секунд"
- daemonize - укажите "no" для отладки php-fpm или для его performer5 запуска в диспетчере (runit/sv, daemontools, upstart, etc.) По умолчанию: "yes"
Options section
- Name - the name pool'a. Use for magazines, and statistics. Default: "default"
- Listen_address - the address where the php-fpm listens for intivar requests. Syntax: 'ip.ad.re.ss: port' or just 'port' or '/ path / to / unix / socket'. Default: 127.0.0.1:9000
- Listen_options (section)
- Backlog - listen (2) backlog. Default: -1
- Owner - www-data - from which the user creates a socket
- Group - www-data - group from which to create a socket
- Mode - the right to unix socket, if it is used. In Linux, the right to breast enlargements read / write access must be configured so that the Web can connect the north. Many BSD-systems allow the connection, regardless of rights. Default: 0666
- User - from which the user works section. By default, "www-data"
- Group - a group of running the section. By default, "www-data"
- Php_defines - (section) Overriding php.ini, specific to this section.
- Display_errors - for example. It may be useful for development.
- Pm - (section) Setting Process Manager
- Style - sets the style of controlling the number of worker processes. Valid values are 'static' and 'apache-like'. By default, "static". Note: only 'static' is currently working.
- Max_children - sets a limit on the number of of simultaneous requests top weight loss pills that will be served. Equivalent to Apache directive MaxClients. Equivalent environment variable PHP_FCGI_CHILDREN. Used with any style sexual enhancers of controlling the number of processes.
- Apache_like - (section) infusions for the style of control processes 'apache-like'
- StartServers - sets the number of work processes, at startup. Use only in the style of controlling the number of processes 'apache-like'.
- MinSpareServers - sets the desired minimum number of worker processes in a simple server. Use only in the style of controlling the number of processes 'apache-like'.
- MaxSpareServers - sets the desired maximum the number of working processes in a simple server. Use only in the style of controlling the number of processes 'apache-like'.
- Request_terminate_timeout - the time (in seconds) to service a single request, then the worker process is stopped. Used when the 'max_execution_time' does not stop the script execution for some reason. Default: "5s". Note: '0 s' is equivalent to 'off'
- Request_slowlog_timeout - the time (in seconds) to service a single request followed by a php backtrace dumped into the slow query log. Default: "5s". Note: '0 s' is equivalent to 'off'
- Slowlog - a log file for slow queries.
- Rlimit_files - Set open file desc rlimit. Default: 1024
- Rlimit_core - Set max core size rlimit. Default: 0
- Chroot - to isolate the running of scripts in this directory, an sizegenetics extender absolute path. The default is not specified.
- Chdir - change directory to the specified at start scripts, the absolute path. The default is not specified.
- Catch_workers_output - redirect STDOUT and STDERR of work processes in the main error log. If not specified, they are redirected to / dev / null, according to the specifications of FastCGI. Valid values are "yes" or "no"
- Max_requests - how many requests each process should handle before restarting teeth whitening. Allows you to bypass the memory recorder in third-party libraries. For an infinite query, specify 0. Equivalent environment variable PHP_FCGI_MAX_REQUESTS.
- Allowed_clients - A comma-separated list ipv4 addresses are allowed to connect to FastCGI. Equivalent environment variable in the original FCGI_WEB_SERVER_ADDRS php.fcgi (5.2.2 +). Only makes sense when listening sockets available from outside. Default: 127.0.0.1
- Environment - allows you to (re) define the environment variables. All slimming pills variables are $ from the current environment.
- HOSTNAME - for example, $HOSTNAME
- PATH - you can inherit the path from $PATH or define your
- TMP - for example, /tmp
- TEMP - for example, /tmp
