Req #54824 [Com]: different php.ini Paths for Pools

From: Date: Tue, 14 Jun 2016 08:27:37 +0000
Subject: Req #54824 [Com]: different php.ini Paths for Pools
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-201590@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=54824&edit=1 ID: 54824 Comment by: anrdaemon at freemail dot ru Reported by: dbetz at df dot eu Summary: different php.ini Paths for Pools Status: Wont fix Type: Feature/Change Request Package: FPM related Operating System: Any PHP Version: 5.3.6 Assigned To: fat Block user comment: N Private report: N New Comment: I would like to revive this thread, since it seems that there was some misunderstanding. It is apparent that commenters assumed that the INI file specified in the pool configuration file would be read each time the child starts. But as the life goes, this is not needed. It is perfectly acceptable for INI file to be read by the FPM manager, the point of per-pool ini file is to let users configure their PHP instances without the need to touch pool configuration. It is possible to make use of the user ini files (the next available measure to configure FPM), but the use of them isn't desirable in many cases. From security standpoint, since pool configuration takes precedence over INI file, I consider such behavior "safe enough" to delegate editing of php.ini file to the site owner. Previous Comments: ------------------------------------------------------------------------ [2011-10-08 14:20:26] fat@php.net Sorry, this is not possible to do this. The only way is to start different FPM instances. ------------------------------------------------------------------------ [2011-07-05 18:04:20] fat@php.net It's not possible to make this easily. In fact php.ini files are read at FPM startup (it's also true for other sapi). When children are forked, the ini reading has already been made. That's why you can specify ini options throught the php(_admin)?_value directive. I keep this in mind to try to find an easy and elegant solution. ------------------------------------------------------------------------ [2011-05-18 13:41:39] dbetz at df dot eu Description: ------------ Hello, currently there is no availability to add additional php.ini files per pool. It would be nice to set an PHPiniDir/PHPRC per pool in php-fpm.conf or that fpm reads and works with env['PHPRC'] defined in pool configuration. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=54824&edit=1

« previous php.bugs (#201590) next »