Am 13.02.2012 09:52, schrieb Ludwig Nussel:
Wolfgang Rosenauer wrote:
The app I'm working on is installing itself into /srv/www/NAME. Others are using /srv/www/htdocs/NAME.
The latter is certainly wrong as the web server allows full access to those files by default then. IMO /srv/www/ is also the wrong location. Just put the files in /usr/share/NAME or /usr/lib/NAME like any other non-web application would do it.
Hm, also sounds reasonable. Actually that's what I prefer but apparently we have as many opinions as people within the discussion.
Proper packages have their program code in a read only location and config files in /etc/. I don't understand why web stuff should be any different there even though sloppy programming seems to be more common in that area.
Yes, for me the question is if it's worth the effort? When I first tried to use the package a few months ago it was simply broken because of the move of the config files and missing patches what I noticed and fixed it. If upstream does not handle that (as most upstream PHP apps do) I'm wondering if it's worth the risk to break something. From a packager perspective it's not always possible to foresee every possible workflow which might break it.
Do we want to fiddle with the Apache config in %post or similar to add required modules (a2enmod)?
We have a policy to not enable daemons by default to avoid accidentally wide open systems. That's a good practice for any kind of service IMO. Unfortunately we lack infrastucture and tools to manage web apps properly. A tool like chkconfig that also understands virtualhosts etc would be nice, wouldn't it? :-)
I agree with the "not enable daemons by default" and that's why I replied that the localhost option might be a solution. Another one would be the Apache server flags. I can do either but again it should be as consistent as possible. I'd probably like to hear an Apache maintainer what is preferred (if there is any). Thanks, Wolfgang -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org