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
  2021-06-11 13:42 ` LeamHall
  0 siblings, 2 replies; 3+ 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] 3+ 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
  1 sibling, 0 replies; 3+ 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] 3+ 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
  1 sibling, 0 replies; 3+ 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] 3+ messages in thread

end of thread, other threads:[~2021-06-11 13:42 UTC | newest]

Thread overview: 3+ 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

Github messages for voidlinux

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/voidlinux-github

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 voidlinux-github voidlinux-github/ http://inbox.vuxu.org/voidlinux-github \
		voidlinux-github@inbox.vuxu.org
	public-inbox-index voidlinux-github

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.github.voidlinux


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git