php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72357 Pool logs created with master owner:group
Submitted: 2016-06-07 17:23 UTC Modified: 2017-04-10 19:06 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: anrdaemon at yandex dot ru Assigned: bukka (profile)
Status: Assigned Package: FPM related
PHP Version: 5.6.22 OS: Linux
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: anrdaemon at yandex dot ru
New email:
PHP Version: OS:

 

 [2016-06-07 17:23 UTC] anrdaemon at yandex dot ru
Description:
------------
When PHP-FPM default configuration is used (master running as root, spawning setuid'd childs), the childs' logs created with master's owner:group, which is extremely inconvenient.

https://bugs.php.net/bug.php?id=69662

Test script:
---------------
Install PHP-FPM SAPI.
Create a new user named i.e. "php-fpm".
Create a new FPM pool with

    [php-fpm]
    user = $pool
    listen = <whatever suits your server>
    access.log = "/home/$pool/php-access.log"
    php_admin_value[error_log] = "/home/$pool/php-error.log"

Expected result:
----------------
Logs "/home/php-fpm/php-access.log" and "/home/php-fpm/php-error.log" created with "php-fpm" owner.

Actual result:
--------------
Both logs will be created with root:root owner, or worse, if directory has SGID bit set, they will be created with root:whatever but with 0600 permissions.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-04-10 19:06 UTC] bukka@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: bukka
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC