]> git.openstreetmap.org Git - chef.git/blob - cookbooks/dev/templates/default/fpm.conf.erb
dev: increase PHP upload max to 32MB
[chef.git] / cookbooks / dev / templates / default / fpm.conf.erb
1 ; DO NOT EDIT - This file is being maintained by Chef
2
3 [<%= @user %>]
4 listen = /var/run/php5-fpm-<%= @user %>.sock
5
6 listen.backlog = 256
7  
8 listen.owner = www-data
9 listen.group = www-data
10 listen.mode = 0660
11
12 user = <%= @user %>
13 group = <%= @user %>
14
15 pm = dynamic
16 pm.max_children = 10
17 pm.start_servers = 4
18 pm.min_spare_servers = 2
19 pm.max_spare_servers = 6
20 pm.max_requests = 10000
21
22 request_terminate_timeout = 1800
23
24 ;pm.status_path = /status
25 ;ping.path = /ping
26 ;ping.response = pong
27  
28 ;request_terminate_timeout = 0
29 ;request_slowlog_timeout = 0
30 ;slowlog = /var/log/php5-fpm.log.slow
31 ;rlimit_files = 1024
32 ;rlimit_core = 0
33 ;chroot = 
34 ;chdir = /var/www
35 ;catch_workers_output = yes
36  
37 env[HOSTNAME] = $HOSTNAME
38 env[PATH] = /usr/local/bin:/usr/bin:/bin
39 env[TMP] = /tmp
40 env[TMPDIR] = /tmp
41 env[TEMP] = /tmp
42
43 php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f <%= @user %>@errol.openstreetmap.org
44 php_admin_value[open_basedir] = /home/<%= @user %>/:/tmp/:/usr/share/php/
45 php_flag[display_errors] = on
46 ;php_admin_value[error_log] = /var/log/fpm-php.www.log
47 ;php_admin_flag[log_errors] = on
48 php_value[max_execution_time] = 300
49 php_value[memory_limit] = 128M
50 php_value[post_max_size] = 32M
51 php_value[upload_max_filesize] = 32M
52