Created
April 4, 2014 14:30
-
-
Save iGusev/9975810 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[dev-2-dev] | |
;prefix = /path/to/pools/$pool | |
user = web | |
group = web | |
listen = 127.0.0.1:9001 | |
; Default Value: 128 (-1 on FreeBSD and OpenBSD) | |
;listen.backlog = 128 | |
;listen.owner = www-data | |
;listen.group = www-data | |
listen.mode = 0777 | |
;listen.allowed_clients = 127.0.0.1 | |
pm = dynamic | |
pm.max_children = 150 | |
pm.start_servers = 10 | |
pm.min_spare_servers = 10 | |
pm.max_spare_servers = 60 | |
pm.max_requests = 500 | |
pm.status_path = /status91 | |
;ping.path = /ping | |
;ping.response = pong | |
;access.log = log/$pool.access.log | |
slowlog = /var/log/$pool.log.slow | |
; The timeout for serving a single request after which a PHP backtrace will be | |
; dumped to the 'slowlog' file. A value of '0s' means 'off'. | |
; Available units: s(econds)(default), m(inutes), h(ours), or d(ays) | |
; Default Value: 0 | |
request_slowlog_timeout = 10s | |
; The timeout for serving a single request after which the worker process will | |
; be killed. This option should be used when the 'max_execution_time' ini option | |
; does not stop script execution for some reason. A value of '0' means 'off'. | |
; Available units: s(econds)(default), m(inutes), h(ours), or d(ays) | |
; Default Value: 0 | |
;request_terminate_timeout = 0 | |
rlimit_files = 10024 | |
; Set max core size rlimit. | |
; Possible Values: 'unlimited' or an integer greater or equal to 0 | |
; Default Value: system defined value | |
;rlimit_core = 0 | |
; Chroot to this directory at the start. This value must be defined as an | |
; absolute path. When this value is not set, chroot is not used. | |
; Note: you can prefix with '$prefix' to chroot to the pool prefix or one | |
; of its subdirectories. If the pool prefix is not set, the global prefix | |
; will be used instead. | |
; Note: chrooting is a great security feature and should be used whenever | |
; possible. However, all PHP paths will be relative to the chroot | |
; (error_log, sessions.save_path, ...). | |
; Default Value: not set | |
;chroot = | |
; Chdir to this directory at the start. | |
; Note: relative path can be used. | |
; Default Value: current directory or / when chroot | |
chdir = / | |
; Redirect worker stdout and stderr into main error log. If not set, stdout and | |
; stderr will be redirected to /dev/null according to FastCGI specs. | |
; Note: on highloaded environement, this can cause some delay in the page | |
; process time (several ms). | |
; Default Value: no | |
;catch_workers_output = yes | |
; Limits the extensions of the main script FPM will allow to parse. This can | |
; prevent configuration mistakes on the web server side. You should only limit | |
; FPM to .php extensions to prevent malicious users to use other extensions to | |
; exectute php code. | |
; Note: set an empty value to allow all extensions. | |
; Default Value: .php | |
;security.limit_extensions = .php .php3 .php4 .php5 | |
; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from | |
; the current environment. | |
; Default Value: clean env | |
;env[HOSTNAME] = $HOSTNAME | |
;env[PATH] = /usr/local/bin:/usr/bin:/bin | |
;env[TMP] = /tmp | |
;env[TMPDIR] = /tmp | |
;env[TEMP] = /tmp | |
env[MAGICK_THREAD_LIMIT] = 1 | |
; Additional php.ini defines, specific to this pool of workers. These settings | |
; overwrite the values previously defined in the php.ini. The directives are the | |
; same as the PHP SAPI: | |
; php_value/php_flag - you can set classic ini defines which can | |
; be overwritten from PHP call 'ini_set'. | |
; php_admin_value/php_admin_flag - these directives won't be overwritten by | |
; PHP call 'ini_set' | |
; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no. | |
; Defining 'extension' will load the corresponding shared extension from | |
; extension_dir. Defining 'disable_functions' or 'disable_classes' will not | |
; overwrite previously defined php.ini values, but will append the new value | |
; instead. | |
; Note: path INI options can be relative and will be expanded with the prefix | |
; (pool, global or /usr) | |
; Default Value: nothing is defined by default except the values in php.ini and | |
; specified at startup with the -d argument | |
;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f [email protected] | |
;php_flag[display_errors] = off | |
php_admin_value[error_log] = /var/log/php-fpm/error.log | |
php_admin_flag[log_errors] = on | |
php_admin_value[session.save_handler] = memcache | |
php_admin_value[session.save_path] = "tcp://localhost:11211" | |
php_admin_value[upload_max_filesize] = 10M | |
php_admin_value[post_max_size] = 10M | |
php_admin_value[memory_limit] = 512M |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment