Php-fpm.conf configuration details turn? Http://www.cnblogs.com/zoro/archive/2012/01/10/2317964.html? The runtime configuration FPM configuration file is a php-fpm.conf with syntax similar to php. ini. Php-fpm.conf full php-fpm.conf configuration details
Transfer? Http://www.cnblogs.com/zoro/archive/2012/01/10/2317964.html
?
Runtime configuration
The FPM configuration file is a php-fpm.conf, and its syntax is similar to php. ini.
Php-fpm.conf global configuration segment pid string
PID file location. the default value is null.
Error_log string
Location of the error log. default: Installation Path # INSTALL_PREFIX #/log/php-fpm.log.
Log_level string
Error level. available level: alert (must be handled immediately), error (error), warning (warning), notice (important information), debug (debugging information ). default value: notice.
Emergency_restart_threshold int
If the child process receives the SIGSEGV or SIGBUS exit information number set by this parameter within the time set by emergency_restart_interval, FPM restarts. 0 indicates 'disabling this function'. default value: 0 (disabled ).
Emergency_restart_interval mixed
Emergency_restart_interval is used to set the interval of smooth restart. this helps solve the problem of shared memory usage in the accelerator. available unit: s (seconds), m (minutes), h (hours), or d (days ). default unit: s (seconds ). default value: 0 (off ).
Process_control_timeout mixed
Set the timeout time for the sub-process to receive the multiplexing signals of the main process. available unit: s (seconds), m (minutes), h (hours), or d (days) default unit: s (seconds ). default value: 0.
Daemonize boolean
Set FPM to run in the background. set 'no' to keep FPM running in the foreground for debugging. default value: yes.
Run configuration section
In FPM, you can use different settings to run multiple process pools. These settings can be set separately for each process pool.
Listen string
Set the address for receiving the FastCGI request. the available format is 'IP: port', 'port', '/path/to/unix/socket'. each process pool needs to be set.
Listen. backlog int
Set the length of the semi-join queue of listen (2). '-1' indicates no limit. default value:-1.
Listen. allowed_clients string
Set the IPV4 address of the server that allows connection to FastCGI. equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in PHP FastCGI (5.2.2 +. only applies to TCP listeners. each address is separated by a comma. if it is not set or empty, any server is allowed to request a connection. default value: any.
Listen. owner string
If this parameter is used, the Unix socket permission is set. in Linux, read and write permissions must be set for WEB server connection. in many BSD-derived systems, permissions can be ignored to allow free connection. default value: the account used for the operation, with the permission of 0666.
Listen. group string
See listen. owner.
Listen. mode string
See listen. owner.
User string
Unix user running the FPM process. it must be set.
Group string
Unix user group in which FPM processes run. If no setting is set, the default user group is used.
Pm string
Set how the process manager manages sub-processes. available values: static, dynamic. required.
Static-the number of sub-processes is fixed (pm. max_children ).
The number of dynamic-sub-processes is dynamically set based on the following configuration: pm. max_children, pm. start_servers, pm. min_spare_servers, pm. max_spare_servers.
Pm. max_children int
Number of sub-processes. when pm is set to static, it indicates creation. when pm is set to dynamic, it indicates maximum creation. it must be set.
This option sets the number of requests that can provide services at the same time. similar to the setting of MaxClients in Apache mpm_prefork and the PHP_FCGI_CHILDREN environment variable in common PHP FastCGI.
Pm. start_servers in
Set the number of child processes created at startup. this parameter is only used when pm is set to dynamic. default value: min_spare_servers + (max_spare_servers-min_spare_servers)/2.
Pm. min_spare_servers int
Set the minimum number of idle service processes. used only when pm is set to dynamic. required.
Pm. max_spare_servers int
Set the maximum number of idle service processes. used only when pm is set to dynamic. required.
Pm. max_requests int
Sets the number of service requests before each sub-process is reborn. it is very useful for third-party modules that may have memory leaks. if it is set to '0', the request is always accepted. equivalent to the PHP_FCGI_MAX_REQUESTS environment variable. default value: 0.
Pm. status_path string
The URL of the FPM status page. if not set, the page cannot be accessed. default value: none.
Ping. path string
The ping URL of the FPM monitoring page. If this parameter is not set, you cannot access the ping page. this page is used to check whether the FPM is alive and can respond to requests. Note that it must start with a slash (/).
Ping. response string
It is used to define the response of ping requests. The Returned text is in the text/plain format of HTTP 200. default value: pong.
Request_terminate_timeout mixed
Set the timeout duration of a single request. this option may apply to php. the 'max _ execution_time 'in ini settings is not useful for stopping the running script for some special reasons. set to '0' to 'off '. available units: s (econds) (default), m (inutes), h (ours), or d (ays ). default value: 0.
Request_slowlog_timeout mixed
When a request times out, the corresponding PHP call stack information is completely written to the slow log. set to '0' to 'off '. available unit: s (seconds) (default), m (minutes), h (hours), or d (days ). default value: 0.
Slowlog string
Slow Request Logging. default value: # INSTALL_PREFIX #/log/php-fpm.log.slow.
Rlimit_files int
Set the rlimit limit for the file opening descriptor. default value: System defined value.
Rlimit_core int
Set the maximum limit value of the core rlimit. available values: 'unlimited', 0, or positive integer. default value: System defined value.
Chroot string
The Chroot directory at startup. the defined directory must be an absolute path. if it is not set, chroot is not used.
Chdir string
Set the Startup directory. the directory will be automatically Chdir to this directory during startup. the defined directory must be an absolute path. default value: current directory, or/Directory (when chroot is enabled ).
Catch_workers_output boolean
Redirects stdout and stderr in the running process to the main error log file. if not set, stdout and stderr will be redirected to/dev/null according to FastCGI rules. default value: null.