Skip to content

Commit 120aafc

Browse files
committed
Fix bug #67244: Wrong owner:group for listening unix socket
Update FPM www.conf to reflect the actual logic
1 parent 833b45a commit 120aafc

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ PHP NEWS
2222
- FPM:
2323
. Fixed bug GH-9981 (FPM does not reset fastcgi.error_header).
2424
(Jakub Zelenka)
25+
. Fixed bug #67244 (Wrong owner:group for listening unix socket).
26+
(Jakub Zelenka)
2527

2628
- LDAP:
2729
. Fixed bug GH-10112 (LDAP\Connection::__construct() refers to ldap_create()).

sapi/fpm/www.conf.in

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,14 @@
1717
; Default Value: none
1818
;prefix = /path/to/pools/$pool
1919

20-
; Unix user/group of processes
21-
; Note: The user is mandatory. If the group is not set, the default user's group
22-
; will be used.
20+
; Unix user/group of the child processes. This can be used only if the master
21+
; process running user is root. It is set after the child process is created.
22+
; The user and group can be specified either by their name or by their numeric
23+
; IDs.
24+
; Note: If the user is root, the executable needs to be started with
25+
--allow-to-run-as-root option to work.
26+
; Default Values: The user is set to master process running user by default.
27+
; If the group is not set, the user's group is used.
2328
user = @php_fpm_user@
2429
group = @php_fpm_group@
2530

@@ -43,11 +48,12 @@ listen = 127.0.0.1:9000
4348
; permissions must be set in order to allow connections from a web server. Many
4449
; BSD-derived systems allow connections regardless of permissions. The owner
4550
; and group can be specified either by name or by their numeric IDs.
46-
; Default Values: user and group are set as the running user
47-
; mode is set to 0660
51+
; Default Values: Owner is set to the master process running user. If the group
52+
; is not set, the owner's group is used. Mode is set to 0660.
4853
;listen.owner = @php_fpm_user@
4954
;listen.group = @php_fpm_group@
5055
;listen.mode = 0660
56+
5157
; When POSIX Access Control Lists are supported you can set them using
5258
; these options, value is a comma separated list of user/group names.
5359
; When set, listen.owner and listen.group are ignored

0 commit comments

Comments
 (0)