php-fpm.conf.j2 1.03 KB
Newer Older
1
2
3
4
[global]
error_log = syslog
daemonize = no

5
[fluxbb]
6
listen = /run/php-fpm/fluxbb.socket
7
listen.owner = fluxbb
8
9
10
11
listen.group = http
listen.mode = 0660

pm = dynamic
12
13
14
15
16
pm.max_children = 250
pm.start_servers = 30
pm.min_spare_servers = 10
pm.max_spare_servers = 40
pm.max_requests = 2000
17
18

php_admin_value[open_basedir] = {{ fluxbb_dir }}
19
20
21
22
php_admin_value[upload_tmp_dir] = {{ fluxbb_dir }}/uploads
php_admin_value[session.save_path] = {{ fluxbb_dir }}/sessions
env[TMPDIR] = {{ fluxbb_dir }}/uploads

23
24
25
26
27
php_admin_value[opcache.memory_consumption] = 128
php_admin_value[opcache.interned_strings_buffer] = 8
php_admin_value[opcache.max_accelerated_files] = 200
php_admin_value[opcache.revalidate_freq] = 60
php_admin_value[opcache.fast_shutdown] = 1
28
php_admin_value[disable_functions] = symlink, suexec, system, proc_open, shell_exec, popen, proc_get_status, pclose, proc_nice, proc_terminate, exec, passthru, show_source, escapeshellcmd, escapeshellarg
Jelle van der Waa's avatar
Jelle van der Waa committed
29
30
31
32

php_admin_value[apc.shm_size] = 1024M
php_admin_value[apc.ttl] = 1800
php_admin_value[apc.entries_hint] = 0