[mpm-itk] php5-cgi with ITK

Jean Weisbuch jean at phpnet.org
Sat Mar 25 00:06:48 UTC 2017


itk works fine with "classic" php-cgi as httpd will fork a new php-cgi 
process per request after itk changed the user.


Le 25/03/2017 à 00:34, Peter Thomassen a écrit :
> Hi Tino,
>
> This requires configuring php-fpm UIDs etc. independently of ITK, right?
>
> (My question was whether I could keep the user management stuff in the
> ITK configuration only, but it sounds like the answer is No.)
>
> Cheers,
> Peter
>
> On 03/24/2017 07:30 PM, Tino Didriksen wrote:
>> Sounds like a job for separate php-fpm pools.
>>
>> You really don't want plain CGI, but FastCGI via php-fpm can do the job,
>> and php-fpm can run as whatever user you want per pool.
>>
>> -- Tino Didriksen
>>
>> On 24 March 2017 at 19:08, Peter Thomassen <thomassen at a4a.de
>> <mailto:thomassen at a4a.de>> wrote:
>>
>>      Hi,
>>
>>      I am wondering whether it is possible to run PHP via the CGI interface
>>      in an ITK setup, such that PHP scripts will run under the permissions
>>      prescribed by ITK.
>>
>>      I know that I can run PHP as a module (and I have been doing that), but
>>      I would like to have the ability to run different PHP versions at the
>>      same time, which requires using the CGI (or FastCGI) interface.
>>
>>      Does anyone know if this is possible, or whether I need to resort to
>>      suexec?
>>
>>      Thanks!
>>
>>      Have a nice weekend,
>>      Peter



More information about the mpm-itk mailing list