Bug 698086

Summary: php-fpm need /var/lib/php/session
Product: [Fedora] Fedora Reporter: Remi Collet <fedora>
Component: phpAssignee: Joe Orton <jorton>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: fedora, jorton, renich, rpm
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-07 16:37:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Remi Collet 2011-04-20 07:11:34 UTC
php-fpm (and probably php-cgi) need /var/lib/php/session which is owned by php

Proposal : move session dir to php-common.

This will imply to create "apache" user in %pre to avoid dependency on httpd.

Comment 1 Joe Orton 2011-04-20 09:34:56 UTC
Is it necessary for fpm to run children as the "apache" user?  I would have thought it would be a good idea to run them as under a separate uid.

Comment 2 Remi Collet 2011-04-20 09:55:59 UTC
(In reply to comment #1)
> Is it necessary for fpm to run children as the "apache" user?  I would have
> thought it would be a good idea to run them as under a separate uid.

I'm sorry you seems to have miss my request for comment on this
http://lists.fedoraproject.org/pipermail/php-devel/2010-July/thread.html

Running the default php-fpm service as apache allow webapps, which give rights on apache to some dir, to work "out-of-the-box" with php-fpm (even, in if fact, apache + php-fpm will works fine with httpd 2.4 (mod_proxy_fcgi) and php 5.3.7)

A better solution is probably to give right to a generic "webserver" group (AFAIK, debian use www-data), which solves issue for other web server (lighttpd, nginx, ...). But this is probably a "feature" for a major fedora version.

Of course, using a phpfpm user, and a /var/lib/php-fpm/session is a solution for this folder, but not for others, used by web applications (upload dir, ...).

Comment 3 Renich Bon Ciric 2011-11-15 20:18:34 UTC
Also, cherokee can use php-fpm and, by default, it uses /etc/php-fpm.d/www.conf

(In reply to comment #2)
> A better solution is probably to give right to a generic "webserver" group
> (AFAIK, debian use www-data), which solves issue for other web server
> (lighttpd, nginx, ...). But this is probably a "feature" for a major fedora
> version.

I really like this proposal; since it would solve this other Bug 680056

Comment 4 Fedora End Of Life 2012-08-07 16:37:27 UTC
This message is a notice that Fedora 15 is now at end of life. Fedora
has stopped maintaining and issuing updates for Fedora 15. It is
Fedora's policy to close all bug reports from releases that are no
longer maintained. At this time, all open bugs with a Fedora 'version'
of '15' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that
we were unable to fix it before Fedora 15 reached end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora, you are encouraged to click on
"Clone This Bug" (top right of this page) and open it against that
version of Fedora.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

The process we are following is described here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping