php-fpm not correctly using groups?

"Marc Roos" <[email protected]> Wed, 3 Apr 2019 12:53:58 +0200
Newsgroups gmane.comp.php.install
Message-ID <[email protected]>

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=20
found with the setup/permissions listed below.
When I change the group of the www.underconstruction.com folder to=20
apache test.php is executed as it should be.

Looks to me like not fully or correctly implemented groups?


[@ login0]# groups apache
apache : apache login0

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


=E2=94=9C=E2=94=80=E2=94=80 cgi-bin
=E2=94=9C=E2=94=80=E2=94=80 logs
=E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 www.underconstruction.c=
om-2019.04.03-access.log
=E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=94=80 www.underconstruction.c=
om-2019.04.03-error.log
=E2=94=9C=E2=94=80=E2=94=80 tmp
=E2=94=94=E2=94=80=E2=94=80 www.underconstruction.com
    =E2=94=9C=E2=94=80=E2=94=80 index.html
    =E2=94=9C=E2=94=80=E2=94=80 test2.php
    =E2=94=9C=E2=94=80=E2=94=80 test-mail.php
    =E2=94=94=E2=94=80=E2=94=80 test.php


[@ php-fpm.d]# cat www.underconstruction.com.conf
[www.underconstruction.com]

user =3D apache
group =3D apache

chroot =3D /home/login0/www.underconstruction.com

listen =3D /var/run/php-fpm/www.underconstruction.com.sock
;listen =3D /home/login0/www.underconstruction.com.sock
;listen =3D 127.0.0.1:9000

listen.owner =3D apache
listen.group =3D apache
listen.mode =3D 0660
listen.allowed_clients =3D 127.0.0.1

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