[Bug 1227215] New: Tight binding of php to apache
Requires: group(www) Requires: user(wwwrun) %attr(0755, %{apache_user}, root) %dir %{_localstatedir}/lib/%{php_name} %attr(0755, %{apache_user}, root) %dir %{_localstatedir}/lib/%{php_name}/sessions For nginx users, this constantly overwrites the rights to the /var/lib/php8
https://bugzilla.suse.com/show_bug.cgi?id=1227215 Bug ID: 1227215 Summary: Tight binding of php to apache Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.6 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other Assignee: screening-team-bugs@suse.de Reporter: dead_mozay@opensuse.org QA Contact: qa-bugs@suse.de Target Milestone: --- Found By: --- Blocker: --- Why was this done? https://build.opensuse.org/projects/devel:languages:php/packages/php8/files/... directory and the files in it -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1227215 Dmitry Markov <werwolf131313@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |werwolf131313@gmail.com -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1227215 https://bugzilla.suse.com/show_bug.cgi?id=1227215#c3 --- Comment #3 from Dead Mozay <dead_mozay@opensuse.org> --- (In reply to Stanislav Brabec from comment #1)
What is wrong with it? Is it a wrong default? Or some setups need a different permission or ownership?
Nginx has its own user and group, updating php rewrites the rights for the apache user to this directory, for nginx users everything that uses php simply breaks -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1227215 https://bugzilla.suse.com/show_bug.cgi?id=1227215#c5 --- Comment #5 from Dead Mozay <dead_mozay@opensuse.org> --- (In reply to Petr Gajdos from comment #4)
Adding some maintainers, which could be interested.
Requires: group(www) Requires: user(wwwrun) %attr(0755, %{apache_user}, root) %dir %{_localstatedir}/lib/%{php_name} %attr(0755, %{apache_user}, root) %dir %{_localstatedir}/lib/%{php_name}
Feel free to correct me, this alone does not imply overwrite of permissions after upgrade, it just ensures it is in certain form. In simple case -- when certain hack Stanislav (thank you) hinted is not used -- then it will be jusst overwritten during php8 upgrade anyway.
This is perhaps a bit Apache-centric, yes, even %{apache_user} could be replaced by wwwrun string in the spec instead; nevertheless wwwrun and www sound neutral. We seem to not be alone: https://stackoverflow.com/questions/9203320/php-fpm-and-nginx-session- problems
Ideas welcome.
Note I'll probably not be able to touch this bug next few weeks.
It might be worth trying using conditional builds
%bcond_with and %bcond_without https://rpm-software-management.github.io/rpm/manual/conditionalbuilds.html -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1227215 Andreas Stieger <Andreas.Stieger@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC|Andreas.Stieger@gmx.de | -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com