Bug 1081453

Summary: RFC: new sub-package httpd-filesystem
Product: [Fedora] Fedora Reporter: Remi Collet <fedora>
Component: httpdAssignee: Jan Kaluža <jkaluza>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: abokovoy, jkaluza, jorton, lemenkov, pahan
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: 2014-07-07 11:07:45 UTC Type: Bug
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 2014-03-27 11:16:29 UTC
Currently php-fpm package have to create the "apache" user in its scriplet, which is a bit messy.

Proposal: create a new httpd-filesystem subpackage
- ownership of config tree
- creation of the apache user

It will make even more sense with upcoming support for SetHandler to redirect php script to php-fpm service.

So "most" web applications (those not using http authentification) will work out-the box with apache + mod_php OR php-fpm.

So php-fpm could drop a configuration file in apache tree, without having to require httpd, but only httpd-filesystem (lot of users only want nginx + php-fpm).

Comment 1 Joe Orton 2014-03-27 11:23:59 UTC
To flesh this out.  We'd:

1) Add an httpd-filesystem subpackage.

2) Move to httpd-filesystem:

/etc/httpd
/etc/httpd/conf.d
/etc/httpd/conf.modules.d (?)

and also httpd's %pre

... anything else? %{docroot} and %{docroot}/*, /run/httpd?

3) Make httpd Requires(pre): httpd-filesystem.

Anything I'm missing?

Comment 2 Joe Orton 2014-03-27 11:26:55 UTC
To be clear only the directory ownership would move, not the contents of those directories.

Comment 3 Alexander Bokovoy 2014-03-27 11:55:34 UTC
Looks fine from FreeIPA point of view.

Comment 4 Peter Lemenkov 2014-03-27 12:13:06 UTC
Love this idea. This also helps to some some issues with other packages, most notably nagios.

Comment 5 Remi Collet 2014-03-27 13:49:43 UTC
(In reply to Joe Orton from comment #1)
> To flesh this out.  We'd:
> 
> 1) Add an httpd-filesystem subpackage.
> 
> 2) Move to httpd-filesystem:
> 
> /etc/httpd
> /etc/httpd/conf.d
> /etc/httpd/conf.modules.d (?)

probably not usefull. Any module will "really" require httpd.

> 
> and also httpd's %pre
> 
> ... anything else? %{docroot} and %{docroot}/*, /run/httpd?

Yes:
 /var/www/
 /var/www/html

> 
> 3) Make httpd Requires(pre): httpd-filesystem.
> 
> Anything I'm missing?

 /usr/share/httpd/icons/ for application wanting to add some icons, which be used by apache if installed, without requiring httpd.

Comment 6 Remi Collet 2014-06-25 06:58:48 UTC
Is it possible to apply this change for Fedora 21 ?

Comment 7 Fedora Admin XMLRPC Client 2014-06-30 09:53:24 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 8 Jan Kaluža 2014-07-07 11:07:45 UTC
Should be done in <http://koji.fedoraproject.org/koji/taskinfo?taskID=7111489>. Please check this build, I can still do further changes before Fedora 21 if needed.

Currently the package contains:

$ rpmls httpd-filesystem-2.4.9-6.fc21.noarch.rpm
drwxr-xr-x  /etc/httpd
drwxr-xr-x  /etc/httpd/conf.d
-rw-r--r--  /etc/httpd/conf.d/README
-rw-r--r--  /etc/httpd/conf.modules.d/README
drwxr-xr-x  /usr/share/httpd
drwxr-xr-x  /usr/share/httpd/icons
drwxr-xr-x  /var/www
drwxr-xr-x  /var/www/cgi-bin
drwxr-xr-x  /var/www/html