|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #77062 Allow numeric [UG]ID in FPM listen.{owner,group}
Submitted: 2018-10-25 20:06 UTC Modified: 2020-03-29 19:31 UTC
From: Andreas dot Ley at kit dot edu Assigned: bukka (profile)
Status: Closed Package: FPM related
PHP Version: 7.3.0RC4 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
10 - 5 = ?
Subscribe to this entry?

 [2018-10-25 20:06 UTC] Andreas dot Ley at kit dot edu
When configuring the FPM, a config option like

user = 12345

is valid, but

listen.owner = 12345

provokes a 'cannot get uid for user' error message

The code to be fixed is in sapi/fpm/fpm/fpm_unix.c where fpm_unix_conf_wp() has a check for a numerical value but fpm_unix_resolve_socket_premissions() [which looks like a typo to me] hasn't.

I added a simple patch to port this functionality to fpm_unix_resolve_socket_premissions(); if this will be accepted, a similar change might be favorable for the acl options, too.

Background: This helps to avoid getpwnam() in situations with a not-so-stable LDAP server...


Add a Patch

Pull Requests

Pull requests:

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2020-02-04 13:20 UTC] andrenth at gmail dot com
The following pull request has been associated:

Patch Name: Allow numeric [UG]ID in FPM listen.{owner,group}
On GitHub:
 [2020-03-08 19:19 UTC]
-Package: *Configuration Issues +Package: FPM related -Assigned To: +Assigned To: bukka
 [2020-03-29 19:31 UTC]
-Summary: In FPM config, user accepts numerical uid, but listen.owner doesn't +Summary: Allow numeric [UG]ID in FPM listen.{owner,group} -Status: Assigned +Status: Closed
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 01 12:01:29 2024 UTC