|  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
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
Have you experienced this issue?
Rate the importance of this bug to you:

 [2016-06-07 17:23 UTC] anrdaemon at yandex dot ru
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.

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

    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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-04-10 19:06 UTC]
-Status: Open +Status: Assigned -Assigned To: +Assigned To: bukka
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Feb 26 19:01:29 2024 UTC