What is the best php-fpm installation for multi-instance apache

"Antonio Casado via php-install" <[email protected]> Fri, 16 Dec 2022 10:27:21 +0100
Newsgroups gmane.comp.php.install
Message-ID <CAH5YrJ9NmP6Q6H7tEpQ7CM7Fyn31R1D6oZxTPeDbjqh67YNxLg@mail.gmail.com>
--0000000000006faa2b05efee94bc
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi,
I have spent many years with a server with more than 150 user PHP websites.
I have a front end reverse proxy apache for the 150 websites. Each website
runs a prefork apache instance (with different userIDs) 2.4 + mod-php 7.4
following the philosophy described in
https://cwiki.apache.org/confluence/display/httpd/DifferentUserIDsUsingReve=
rseProxy
This works fine, but I want to jump to event MPM and PHP-fpm.

How do I have to configure PHP-fpm with each website thinking about
security?
a) Do I have to have different sockets for each backend instance apache or
can it be shared (/run/php-fpm/www.sock)?
b) Do I have to have different php-fpm pool servers for each website or can
they be shared (/etc/php-fpm.d/www.conf)?

Thanks you

--=20
[image: Universidad de Almer=C3=ADa] <https://www.ual.es/>
Antonio Casado Rodr=C3=ADguez
Administrador de Servicios de Red y Seguridad TIC
Despacho 2.22, Edif. CITIC
Email: [email protected]
Tel. +34 950214223
------------------------------
Universidad de Almer=C3=ADa
Carretera Sacramento s/n
04120 La Ca=C3=B1ada de San Urbano, Almer=C3=ADa (Espa=C3=B1a)
Puede consultar la informaci=C3=B3n adicional sobre confidencialidad de est=
e
email y protecci=C3=B3n de datos en nuestra p=C3=A1gina web: www.ual.es/lop=
d-email.
Responsable del tratamiento: Universidad de Almer=C3=ADa. Finalidad: Atende=
r y
dar respuesta a su petici=C3=B3n o consulta y mantener los contactos y
relaciones que se produzcan como consecuencia de la misma. Derechos: Para
el ejercicio de derechos de protecci=C3=B3n de datos dir=C3=ADjase a
www.ual.es/lopd-derechos.

--0000000000006faa2b05efee94bc
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hi,</div>I have spent many years with a server with m=
ore than 150 user PHP websites. I have a front end=C2=A0reverse proxy apach=
e for the 150 websites. Each website runs a prefork apache instance (with d=
ifferent userIDs) 2.4 + mod-php 7.4 following the philosophy described in=
=C2=A0<a href=3D"https://cwiki.apache.org/confluence/display/httpd/Differen=
tUserIDsUsingReverseProxy" target=3D"_blank">https://cwiki.apache.org/confl=
uence/display/httpd/DifferentUserIDsUsingReverseProxy</a><br>This works fin=
e, but I want to jump to event MPM and PHP-fpm.<div><br></div><div>How do I=
 have to configure PHP-fpm with each website thinking about security?<br>a)=
 Do I have to have different sockets for each backend instance apache or ca=
n it be shared (/run/php-fpm/www.sock)?<br>b) Do I have to have different p=
hp-fpm pool servers for each website or can they be shared (/etc/php-fpm.d/=
www.conf)?<div><br></div><div>Thanks you</div></div><div><br></div>-- <br><=
div dir=3D"ltr" class=3D"gmail_signature" data-smartmail=3D"gmail_signature=
"><div dir=3D"ltr"><table width=3D"560" style=3D"border-spacing:0px;border-=
collapse:collapse;width:571.323px;margin-bottom:15px;color:rgb(50,50,50);fo=
nt-family:SegoeUI,sans-serif;font-size:18px"><tbody><tr><td width=3D"140" b=
gcolor=3D"#326297" style=3D"padding:0px;vertical-align:bottom;border:0px so=
lid rgb(255,255,255);font-size:0.78em"><a href=3D"https://www.ual.es/" styl=
e=3D"background-color:transparent;color:rgb(49,97,149);outline:none!importa=
nt" target=3D"_blank"><img src=3D"https://www.ual.es/application/files/8915=
/5300/2120/ual.jpg" alt=3D"Universidad de Almer=C3=ADa" title=3D"Universida=
d de Almer=C3=ADa" style=3D"border:0px;vertical-align:middle;max-width:100%=
;height:auto;padding:0px!important"></a></td><td width=3D"10" style=3D"padd=
ing:0px;vertical-align:bottom;border:0px solid rgb(255,255,255);font-size:0=
.78em">=C2=A0</td><td style=3D"padding:0px;vertical-align:bottom;border:0px=
 solid rgb(255,255,255);font-size:0.78em"><div style=3D"font-size:14px;line=
-height:16px;font-family:Arial,sans-serif;color:rgb(35,54,70);font-weight:7=
00">Antonio Casado Rodr=C3=ADguez</div><div style=3D"font-size:14px;line-he=
ight:16px;font-family:Arial,sans-serif;color:rgb(49,98,150);font-weight:700=
;margin-bottom:10px">Administrador de Servicios de Red y Seguridad TIC</div=
><div style=3D"font-size:12px;line-height:14px;font-family:Arial,sans-serif=
;color:rgb(49,98,150)">Despacho 2.22, Edif. CITIC</div><div style=3D"font-s=
ize:12px;line-height:14px;font-family:Arial,sans-serif;color:rgb(49,98,150)=
">Email:=C2=A0<a href=3D"mailto:[email protected]" style=3D"background-color:t=
ransparent;color:rgb(17,85,204);outline:none!important" target=3D"_blank">a=
[email protected]</a></div><div style=3D"font-size:12px;line-height:14px;font-f=
amily:Arial,sans-serif;color:rgb(49,98,150)">Tel. +34 950214223</div><hr st=
yle=3D"height:0px;margin:5px 0px;border-right:0px rgb(221,221,221);border-b=
ottom:0px rgb(221,221,221);border-left:0px rgb(221,221,221);border-top-colo=
r:rgb(35,54,70);border-top-style:solid;padding:0px;width:295px"><div style=
=3D"font-size:12px;line-height:14px;font-family:Arial,sans-serif;color:rgb(=
49,98,150)">Universidad de Almer=C3=ADa<br>Carretera Sacramento s/n<br>0412=
0 La Ca=C3=B1ada de San Urbano, Almer=C3=ADa (Espa=C3=B1a)</div></td></tr><=
tr><td colspan=3D"3" style=3D"padding:14px 0px 0px;vertical-align:bottom;bo=
rder:0px solid rgb(255,255,255);font-size:10px;color:rgb(100,100,100);line-=
height:12px;font-family:Arial,sans-serif">Puede consultar la informaci=C3=
=B3n adicional sobre confidencialidad de este email y protecci=C3=B3n de da=
tos en nuestra p=C3=A1gina web:=C2=A0<a href=3D"http://www.ual.es/lopd-emai=
l" style=3D"background-color:transparent;color:rgb(17,85,204);outline:none!=
important" target=3D"_blank">www.ual.es/lopd-email</a>. Responsable del tra=
tamiento: Universidad de Almer=C3=ADa. Finalidad: Atender y dar respuesta a=
 su petici=C3=B3n o consulta y mantener los contactos y relaciones que se p=
roduzcan como consecuencia de la misma. Derechos: Para el ejercicio de dere=
chos de protecci=C3=B3n de datos dir=C3=ADjase a=C2=A0<a href=3D"http://www=
.ual.es/lopd-derechos" style=3D"background-color:transparent;color:rgb(17,8=
5,204);outline:none!important" target=3D"_blank">www.ual.es/lopd-derechos</=
a>.</td></tr></tbody></table><br style=3D"color:rgb(50,50,50);font-family:S=
egoeUI,sans-serif;font-size:18px"></div></div></div>

--0000000000006faa2b05efee94bc--