Bug 1081453 - RFC: new sub-package httpd-filesystem
Summary: RFC: new sub-package httpd-filesystem
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: httpd
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jan Kaluža
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-27 11:16 UTC by Remi Collet
Modified: 2014-07-07 11:07 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-07-07 11:07:45 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.