-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathwww.conf
43 lines (35 loc) · 1.12 KB
/
www.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
[www]
listen = 9000
listen.backlog = 1000
listen.owner = apache
listen.group = apache
listen.mode = 0666
user = apache
group = apache
pm = dynamic
pm.max_children = 100
pm.start_servers = 10
pm.min_spare_servers = 10
pm.max_spare_servers = 50
pm.max_requests = 500
;request_terminate_timeout = 300s
catch_workers_output = yes
slowlog = /var/log/php-fpm/slow.log
request_slowlog_timeout = 30s
access.log = /var/log/php-fpm/$pool-access.log
;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{seconds}d %{mega}M %C%%"
access.format = "%{REMOTE_ADDR}e - %u %t \"%m %r%Q%q\" %s %f %{seconds}d %{mega}M %C%%"
php_admin_value[error_log] = /var/log/php-fpm/$pool-error.log
php_admin_flag[log_errors] = on
php_admin_value[memory_limit] = 1024M
php_value[upload_max_filesize] = 900M
php_admin_value[post_max_size] = 900M
php_value[max_input_time] = -1
php_value[max_execution_time] = 7200
php_value[default_socket_timeout] = 7200
php_flag[expose_php] = off
php_flag[display_errors] = on
php_value[session.save_handler] = files
php_value[session.save_path] = /var/lib/php/session/
pm.status_path = /phpfpm_web
env[PATH] = '/usr/local/bin:/usr/bin:/bin'