Apache 2.4 + mod_php/PHP-FPM + suexec + userdir on Debian 10
0
votes
0
answers
1039
views
I cannot find a working, modern configuration to resolve this. I'm using Debian 10 and installed Apache 2. I have dozens of users, so I enabled
userdir
. I do not want their code to run as www-data
, so I enabled suexec
, which works for Python or Perl (AddHandler cgi-script .pl .py
is enough), but I cannot do this for PHP. Is there a way to handle this with standard mod_php
from Apache, suexec
-like with userdir
?
If not, I read that PHP FPM is a CGI server, which can be used by Apache by proxy
module, which can proxy PHP to this CGI, but in the php-fpm.conf
I only can set a single user for this.
Is there a way to run PHP web script as a user that owns the script, like suexec
is doing, together with userdir
?
Asked by Kamil
(1501 rep)
Aug 20, 2020, 08:48 AM
Last activity: Feb 14, 2024, 03:53 PM
Last activity: Feb 14, 2024, 03:53 PM