php.net |  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
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: fat@php.net 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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: fat@php.net
New email:
PHP Version: OS:

 

 [2010-08-24 23:21 UTC] 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
...


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-08-24 23:22 UTC] fat@php.net
-Status: Open +Status: Analyzed -Assigned To: +Assigned To: fat
 [2010-11-14 23:01 UTC] fat@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-11-14 23:07 UTC] fat@php.net
-Status: Analyzed +Status: Closed
 [2010-11-14 23:07 UTC] fat@php.net
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.


 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC