Php-fpm.conf

Source: Internet
Author: User
Tags http 200
Php-fpm.conf
The editor configures the FPM configuration file as a php-fpm.conf when loading... runtime, and its syntax is similar to php. ini. Position of the pid stringPID file in the php-fpm.conf global configuration segment. 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 (off ). emergency_restart_interval mixedemergency_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 signal of the main process. available unit: s (seconds), m (minutes), h (hours), or d (days) default unit: s (seconds ). default value: 0. daemonize boolean sets FPM to run in the background. set 'no' to keep FPM running on the foreground for debugging. default value: yes. the running configuration section is in FPM. you can use different settings to run multiple process pools. These settings can be set separately for each process pool. Listen string sets the address for receiving the FastCGI request. available Formats: 'Ip: port', 'port', '/path/to/unix/socket '. each process pool needs to be set. listen. set the length of the semi-join queue of listen (2) in the backlog int. '-1' indicates no limit. default value:-1. listen. allowed_clients string specifies the IPV4 address of the server that is allowed to connect 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. if the owner string 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. for group string, see listen. owner. listen. mode string see listen. owner. user stringFPM process running Unix user. required. unix user group in which the group stringFPM process runs. if this parameter is not set, the default user group is used. pm string sets how the process manager manages sub-processes. available value: 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. the number of max_spare_servers.pm.max_children int sub-processes. when pm is set to static, it indicates creation, and when pm is set to dynamic, it indicates maximum creation. required. 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 sets the number of child processes created at startup. it is used only when pm is set to dynamic. default value: min_spare_servers + (max_spare_servers-min_spare_servers)/2. pm. min_spare_servers int specifies the minimum number of idle service processes. it is used only when pm is set to dynamic. required. pm. max_spare_servers int sets the maximum number of idle service processes. it is 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. the URL of the status_path stringFPM status page. if not set, the status page cannot be accessed. default value: none. ping. the ping URL on the path stringFPM monitoring page. if this parameter is not set, the ping page cannot be accessed. this page is used to check whether FPM is alive and can respond to requests. note that it must start with a slash (/). ping. response string is used to define the return value of the ping request. returns the text in the text/plain format of HTTP 200. default value: pong. request_terminate_timeout mixed sets 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 records slow requests. default value: # INSTALL_PREFIX #/log/php-fpm.log.slow.rlimit_files int sets the rlimit limit for the file opening descriptor. default value: System defined value. rlimit_core int sets the maximum limit value of the core rlimit. available value: 'limited', 0, or positive integer. default value: System defined value. the chroot directory when the Chroot string is started. the defined directory must be an absolute path. if not set, chroot is not used. chdir string sets the Startup directory, which will be automatically Chdir to when started. the defined directory must be an absolute path. default value: current directory, or/Directory (for chroot ). catch_workers_output boolean redirects stdout and stderr during running 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.