Bug #77837 [NEW]: php-fpm not correctly implementing/using groups?

From: Date: Wed, 03 Apr 2019 12:42:19 +0000
Subject: Bug #77837 [NEW]: php-fpm not correctly implementing/using groups?
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-220300@lists.php.net to get a copy of this message
From: info at f1-outsourcing dot eu Operating system: centos7 PHP version: Irrelevant Package: *General Issues Bug Type: Bug Bug description:php-fpm not correctly implementing/using groups? Description: ------------ 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 www.underconstruction.com 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 www.underconstruction.com ├── cgi-bin ├── logs │   ├── www.underconstruction.com-2019.04.03-access.log │   └── www.underconstruction.com-2019.04.03-error.log ├── tmp └── www.underconstruction.com ├── index.html ├── test2.php ├── test-mail.php └── test.php [@ login0]# groups apache apache : apache login0 [@ php-fpm.d]# cat www.underconstruction.com.conf [www.underconstruction.com] user = apache group = apache chroot = /home/login0/www.underconstruction.com listen = /var/run/php-fpm/www.underconstruction.com.sock ;listen = /home/login0/www.underconstruction.com.sock ;listen = 127.0.0.1:9000 listen.owner = apache listen.group = apache listen.mode = 0660 listen.allowed_clients = 127.0.0.1 pm = dynamic pm.max_children = 10 pm.start_servers = 1 pm.min_spare_servers = 1 pm.max_spare_servers = 10 [@ ]# rpm -qa | grep php72 rh-php72-php-json-7.2.10-3.el7.x86_64 rh-php72-php-xml-7.2.10-3.el7.x86_64 rh-php72-php-fpm-7.2.10-3.el7.x86_64 rh-php72-runtime-1-2.el7.x86_64 rh-php72-php-zip-7.2.10-3.el7.x86_64 rh-php72-php-cli-7.2.10-3.el7.x86_64 rh-php72-php-process-7.2.10-3.el7.x86_64 rh-php72-1-2.el7.x86_64 rh-php72-php-common-7.2.10-3.el7.x86_64 rh-php72-php-pear-1.10.5-1.el7.noarch -- Edit bug report at https://bugs.php.net/bug.php?id=77837&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77837&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77837&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77837&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=77837&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=77837&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=77837&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=77837&r=needscript Try newer version: https://bugs.php.net/fix.php?id=77837&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=77837&r=support Expected behavior: https://bugs.php.net/fix.php?id=77837&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=77837&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=77837&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=77837&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77837&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=77837&r=dst IIS Stability: https://bugs.php.net/fix.php?id=77837&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=77837&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=77837&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=77837&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=77837&r=mysqlcfg

« previous php.bugs (#220300) next »