|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #52691 allow multiple instance of FPM using a custom prefix
Submitted: 2010-08-24 23:21 UTC Modified: 2010-11-14 23:07 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: Assigned: fat (profile)
Status: Closed Package: FPM related
PHP Version: 5.3.3 OS: *
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2010-08-24 23:21 UTC]
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/ ; will expand to /var/www/logs/

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

php-fpm -p /var/www

; /var/www/etc/php-fpm.conf
prefix = www1 ; expand to /var/www/www1
include = fpm.default.conf
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-
chroot = $prefix ; expand to /var/www/www{1,2}
chdir = /docs
php_value[error_log] = /logs/php.error.log


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-08-24 23:22 UTC]
-Status: Open +Status: Analyzed -Assigned To: +Assigned To: fat
 [2010-11-14 23:01 UTC]
Automatic comment from SVN on behalf of fat
Log: - Fixed #52691 (allow multiple instance of FPM using a custom prefix)
 [2010-11-14 23:07 UTC]
-Status: Analyzed +Status: Closed
 [2010-11-14 23:07 UTC]
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
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 22 06:01:31 2024 UTC