Re: Using an APC-lite in a GCI / SuPHP environment
| From: | Rasmus Lerdorf | Date: | Fri, 28 Sep 2012 16:40:37 +0000 |
| Subject: | Re: Using an APC-lite in a GCI / SuPHP environment | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-9866@lists.php.net to get a copy of this message | ||
On 09/27/2012 06:16 PM, Marten Lehmann wrote:
>>> And per user. Since no user is allowed to have access to a foreign
>>> account, each daemon has to be started with the linux user of that
>>> account.
>>
>> No, like I said, fpm already supports per-user pools. The parent process
>> creates pools of child processes that run as whatever user you configure.
>
> Doesn't that imply, that some configuration file needs to be updated and
> php-fpm reloaded with each user added and removed on the webserver?
Well, yes, but you can reload the config without a restart by sending it
a SIGUSR2.
But again, if that isn't convenient enough, enhancing it to get its
config more dynamically from somewhere is again orders of magnitude
easier to do than building a per-request opcode caching solution.
-Rasmus