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

[email protected] ("Antonio Casado via php-install")
Newsgroups php.install
Message-ID <CAH5YrJ9NmP6Q6H7tEpQ7CM7Fyn31R1D6oZxTPeDbjqh67YNxLg@mail.gmail.com>
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/DifferentUserIDsUsingReverseProxy
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

-- 
[image: Universidad de Almería] <https://www.ual.es/>
Antonio Casado Rodríguez
Administrador de Servicios de Red y Seguridad TIC
Despacho 2.22, Edif. CITIC
Email: [email protected]
Tel. +34 950214223
------------------------------
Universidad de Almería
Carretera Sacramento s/n
04120 La Cañada de San Urbano, Almería (España)
Puede consultar la información adicional sobre confidencialidad de este
email y protección de datos en nuestra página web: www.ual.es/lopd-email.
Responsable del tratamiento: Universidad de Almería. Finalidad: Atender y
dar respuesta a su petición o consulta y mantener los contactos y
relaciones que se produzcan como consecuencia de la misma. Derechos: Para
el ejercicio de derechos de protección de datos diríjase a
www.ual.es/lopd-derechos.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.