Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] Package php-fpm tries to use user and group http
@ 2021-06-11  2:36 LeamHall
  2021-06-11  5:16 ` ericonr
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: LeamHall @ 2021-06-11  2:36 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 622 bytes --]

New issue by LeamHall on void-packages repository

https://github.com/void-linux/void-packages/issues/31422

Description:
When the apache2 package uses the "_apache" user.

### Expected behavior

Package uses/creates needed user and group.

### Actual behavior

 php-fpm fails to start because it cannot find the user and group "http". 

```
ERROR: [pool www] cannot get uid for user 'http'
ERROR: FPM initialization failed

ERROR: [pool www] cannot get gid for group 'http'
ERROR: FPM initialization failed
```

### Steps to reproduce the behavior

Install and run php-fpm.
Check the error logs.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Package php-fpm tries to use user and group http
  2021-06-11  2:36 [ISSUE] Package php-fpm tries to use user and group http LeamHall
@ 2021-06-11  5:16 ` ericonr
  2021-06-11 13:42 ` LeamHall
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ericonr @ 2021-06-11  5:16 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 437 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/issues/31422#issuecomment-859272432

Comment:
A solution that was floated around in IRC is setting the `php-fpm` user/group to `_apache`, but that would break use cases without apache, so it isn't a proper solution. Alternatively, `apache` could be made to use `http` user.

Or maybe we just need `php-fpm` to also create the `http` user?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Package php-fpm tries to use user and group http
  2021-06-11  2:36 [ISSUE] Package php-fpm tries to use user and group http LeamHall
  2021-06-11  5:16 ` ericonr
@ 2021-06-11 13:42 ` LeamHall
  2021-06-17 17:58 ` the-eater
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: LeamHall @ 2021-06-11 13:42 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 977 bytes --]

New comment by LeamHall on void-packages repository

https://github.com/void-linux/void-packages/issues/31422#issuecomment-859591003

Comment:
I am not a web person nor have I ever built my own Linux distro. My ideas are just ideas, I'm not sure if they are any good.

What permissions does php-fpm need? Does it need write access to the web directories? Does it need the UID/GID of whatever is serving httpd?

Changing Apache at this point would be a bit of work, and established servers might have an issue. I'm not sure how many sites are using the php-fpm package, but it might be fewer than are using Apache or Nginx. 

If php-fpm just needs read access to the web files, then it could just test for read file/execute directory access on the installed package's ServerRoot. The php-fpm package could then use whatever UID/GID it wanted, and create. If it must use an httpd server's UID/GID, then it may need to search for whatever is installed, and default to http.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Package php-fpm tries to use user and group http
  2021-06-11  2:36 [ISSUE] Package php-fpm tries to use user and group http LeamHall
  2021-06-11  5:16 ` ericonr
  2021-06-11 13:42 ` LeamHall
@ 2021-06-17 17:58 ` the-eater
  2021-06-17 19:00 ` LeamHall
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: the-eater @ 2021-06-17 17:58 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 488 bytes --]

New comment by the-eater on void-packages repository

https://github.com/void-linux/void-packages/issues/31422#issuecomment-863445126

Comment:
While maybe a bit "rude" this is something that the user themselves have to configure imo and is not really something Void can do anything about since e.g. nginx and apache2 or whatever FastCGI server you use will have a different user,

we only could fix this if we unite all our web server users under www but idk if that's exactly desired

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Package php-fpm tries to use user and group http
  2021-06-11  2:36 [ISSUE] Package php-fpm tries to use user and group http LeamHall
                   ` (2 preceding siblings ...)
  2021-06-17 17:58 ` the-eater
@ 2021-06-17 19:00 ` LeamHall
  2022-05-22  2:11 ` github-actions
  2022-06-05  2:13 ` [ISSUE] [CLOSED] " github-actions
  5 siblings, 0 replies; 7+ messages in thread
From: LeamHall @ 2021-06-17 19:00 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 507 bytes --]

New comment by LeamHall on void-packages repository

https://github.com/void-linux/void-packages/issues/31422#issuecomment-863489712

Comment:
**the-eater**, your comment is not rude at all. No worries. My main concern is ERROR projects the image that the program did something Void could not handle. Is there a way for the FPM install to check for existing httpd accounts, or to post a response that FPM needs to be owned by the httpd process owner? Does it actually need that? I don't know the program.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Package php-fpm tries to use user and group http
  2021-06-11  2:36 [ISSUE] Package php-fpm tries to use user and group http LeamHall
                   ` (3 preceding siblings ...)
  2021-06-17 19:00 ` LeamHall
@ 2022-05-22  2:11 ` github-actions
  2022-06-05  2:13 ` [ISSUE] [CLOSED] " github-actions
  5 siblings, 0 replies; 7+ messages in thread
From: github-actions @ 2022-05-22  2:11 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 293 bytes --]

New comment by github-actions[bot] on void-packages repository

https://github.com/void-linux/void-packages/issues/31422#issuecomment-1133802414

Comment:
Issues become stale 90 days after last activity and are closed 14 days after that.  If this issue is still relevant bump it or assign it.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ISSUE] [CLOSED] Package php-fpm tries to use user and group http
  2021-06-11  2:36 [ISSUE] Package php-fpm tries to use user and group http LeamHall
                   ` (4 preceding siblings ...)
  2022-05-22  2:11 ` github-actions
@ 2022-06-05  2:13 ` github-actions
  5 siblings, 0 replies; 7+ messages in thread
From: github-actions @ 2022-06-05  2:13 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 625 bytes --]

Closed issue by LeamHall on void-packages repository

https://github.com/void-linux/void-packages/issues/31422

Description:
When the apache2 package uses the "_apache" user.

### Expected behavior

Package uses/creates needed user and group.

### Actual behavior

 php-fpm fails to start because it cannot find the user and group "http". 

```
ERROR: [pool www] cannot get uid for user 'http'
ERROR: FPM initialization failed

ERROR: [pool www] cannot get gid for group 'http'
ERROR: FPM initialization failed
```

### Steps to reproduce the behavior

Install and run php-fpm.
Check the error logs.



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-06-05  2:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-11  2:36 [ISSUE] Package php-fpm tries to use user and group http LeamHall
2021-06-11  5:16 ` ericonr
2021-06-11 13:42 ` LeamHall
2021-06-17 17:58 ` the-eater
2021-06-17 19:00 ` LeamHall
2022-05-22  2:11 ` github-actions
2022-06-05  2:13 ` [ISSUE] [CLOSED] " github-actions

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).