Skip to content

Commit 9ba1038

Browse files
authored
Update PHP FPM configuration for version 8.5
1 parent 5b4f652 commit 9ba1038

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed
Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[global]
22
log_level = error
33

4-
pid = /run/php/php8.0-fpm.pid
5-
error_log = /var/log/php8.0-fpm.log
4+
pid = /run/php/php8.5-fpm.pid
5+
error_log = /var/log/php8.5-fpm.log
66

77
emergency_restart_threshold = 100
88
emergency_restart_interval = 1m
@@ -24,8 +24,12 @@ listen.group = www-data
2424
listen.mode = 0660
2525

2626
pm = static
27-
pm.max_children = 24
28-
pm.max_requests = 100000
27+
28+
; (PHP_RAM_GB x 1024) / 128
29+
pm.max_children = 64
30+
31+
; CPU_thread x 1024
32+
pm.max_requests = 65536
2933

3034
rlimit_files = 524288
3135
rlimit_core = 0

0 commit comments

Comments
 (0)