From:             fat
Operating system: *
PHP version:      5.3.3
Package:          FPM related
Bug Type:         Feature/Change Request
Bug description:allow multiple instance of FPM using a custom prefix

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 bug report at http://bugs.php.net/bug.php?id=52691&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=52691&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=52691&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=52691&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=52691&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=52691&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=52691&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=52691&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=52691&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=52691&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=52691&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=52691&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=52691&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=52691&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=52691&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=52691&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=52691&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=52691&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=52691&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=52691&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=52691&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=52691&r=mysqlcfg

Reply via email to