Req #52691 [Opn->Ana]: allow multiple instance of FPM using a custom prefix

From: Date: Tue, 24 Aug 2010 21:22:00 +0000
Subject: Req #52691 [Opn->Ana]: allow multiple instance of FPM using a custom prefix
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-153763@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=52691&edit=1

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



Previous Comments:
------------------------------------------------------------------------
[2010-08-24 23:21:22] fat@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


Thread (3 messages)

« previous php.bugs (#153763) next »