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).
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?
To be clear only the directory ownership would move, not the contents of those directories.
Looks fine from FreeIPA point of view.
Love this idea. This also helps to some some issues with other packages, most notably nagios.
(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.
Is it possible to apply this change for Fedora 21 ?
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
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