Skip to content

Commit d6b1ca6

Browse files
Merge pull request hestiacp#1399 from ioannidesalex/patch-17
Update socket.tpl
2 parents 9410856 + 34c45bc commit d6b1ca6

File tree

1 file changed

+11
-8
lines changed
  • install/ubuntu/16.04/templates/web/php-fpm

1 file changed

+11
-8
lines changed

install/ubuntu/16.04/templates/web/php-fpm/socket.tpl

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,17 @@ group = %user%
88
listen.owner = %user%
99
listen.group = www-data
1010

11-
pm = dynamic
12-
pm.max_children = 50
13-
pm.start_servers = 3
14-
pm.min_spare_servers = 2
15-
pm.max_spare_servers = 10
11+
pm = ondemand
12+
pm.max_children = 4
13+
pm.max_requests = 4000
14+
pm.process_idle_timeout = 10s
15+
pm.status_path = /status
16+
17+
php_admin_value[upload_tmp_dir] = /home/%user%/tmp
18+
php_admin_value[session.save_path] = /home/%user%/tmp
1619

1720
env[HOSTNAME] = $HOSTNAME
1821
env[PATH] = /usr/local/bin:/usr/bin:/bin
19-
env[TMP] = /tmp
20-
env[TMPDIR] = /tmp
21-
env[TEMP] = /tmp
22+
env[TMP] = /home/%user%/tmp
23+
env[TMPDIR] = /home/%user%/tmp
24+
env[TEMP] = /home/%user%/tmp

0 commit comments

Comments
 (0)