Edit report at http://bugs.php.net/bug.php?id=52691&edit=1

 ID:                 52691
 Updated by:         f...@php.net
 Reported by:        f...@php.net
 Summary:            allow multiple instance of FPM using a custom prefix
-Status:             Analyzed
+Status:             Closed
 Type:               Feature/Change Request
 Package:            FPM related
 Operating System:   *
 PHP Version:        5.3.3
 Assigned To:        fat
 Block user comment: N

 New Comment:

This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------
[2010-11-14 23:01:37] f...@php.net

Automatic comment from SVN on behalf of fat
Revision: http://svn.php.net/viewvc/?view=revision&revision=305341
Log: - Fixed #52691 (allow multiple instance of FPM using a custom
prefix)

------------------------------------------------------------------------
[2010-08-24 23:21:22] f...@php.net

Description:
------------
Like nginx (nginx -p) or apache (httpd -d), FPM should have a command
line 

option to set a custom prefix on which all relative file path can depend
on.



"php-fpm -p /var/www" will look for /var/www/etc/php-fpm.conf.

pid=logs/php-fpm.pid ; will expand to /var/www/logs/php-fpm.pid

...



Moreover it could be great to have a custom prefix per pool also.



php-fpm -p /var/www



; /var/www/etc/php-fpm.conf

pid=logs/php-fpm.pid

[www1]

prefix = www1 ; expand to /var/www/www1

include = fpm.default.conf

[www2]

prefix = www2 ; expand to /var/www/www2

include = fpm.default.conf



; fpm.default.conf

listen = logs/php-fpm.sock ; expand to
/var/www/www{1,2}/logs/php-fpm.sock

pm = static

pm.max_children = 50

slowlog = logs/php-fpm.slowlog ; expand to /var/www/www{1,2}/logs/php-

fpm.slowlog

chroot = $prefix ; expand to /var/www/www{1,2}

chdir = /docs

php_value[error_log] = /logs/php.error.log

...



------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=52691&edit=1

Reply via email to