|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77837 php-fpm not correctly implementing/using groups?
Submitted: 2019-04-03 12:42 UTC Modified: 2021-09-12 04:22 UTC
Avg. Score:4.0 ± 1.2
Reproduced:2 of 3 (66.7%)
Same Version:1 (50.0%)
Same OS:2 (100.0%)
From: info at f1-outsourcing dot eu Assigned: cmb (profile)
Status: No Feedback Package: FPM related
PHP Version: Irrelevant OS: centos7
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: info at f1-outsourcing dot eu
New email:
PHP Version: OS:


 [2019-04-03 12:42 UTC] info at f1-outsourcing dot eu
The apache server can access this file http://xxxx/index.html When I try to access this file http://xxxx/test.php, I get file not found with the setup/permissions listed below.

When I only change the group of the folder to apache, test.php is executed as it should be.  Test.php should be executed when apache is member of the login0 group like httpd process does, so why not php-fpm?

Looks to me like not fully or incorrectly implemented groups? I have no idea how this is even possible because that is something for the os to handle, not?

drwxr-x---   2 login0 login0    6 Mar 30 20:01 cgi-bin
drwxrwx---   2 login0 login0    6 Mar 30 20:02 tmp
drwxr-x---   2 login0 login0 4096 Apr  3 00:11 logs
drwxr-x---   2 login0 login0   97 Apr  3 12:17

├── cgi-bin
├── logs
│   ├──
│   └──
├── tmp
    ├── index.html
    ├── test2.php
    ├── test-mail.php
    └── test.php

[@ login0]# groups apache
apache : apache login0

[@ php-fpm.d]# cat

user = apache
group = apache

chroot = /home/login0/

listen = /var/run/php-fpm/
;listen = /home/login0/
;listen =

listen.owner = apache = apache
listen.mode = 0660
listen.allowed_clients =

pm = dynamic
pm.max_children = 10
pm.start_servers = 1
pm.min_spare_servers = 1
pm.max_spare_servers = 10

[@ ]# rpm -qa | grep php72


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2019-04-18 13:58 UTC]
Startup process need access to /etc/group, so in chroot usage, you need to copy this file in the chroot directory

install -D /etc/group /home/login0/
 [2021-08-31 13:29 UTC]
-Status: Open +Status: Feedback -Package: *General Issues +Package: FPM related -Assigned To: +Assigned To: cmb
 [2021-08-31 13:29 UTC]
So did @remi's comment above solve the issue for you?
 [2021-09-12 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 01 14:01:30 2024 UTC