ius-coredev team mailing list archive
-
ius-coredev team
-
Mailing list archive
-
Message #01670
[Bug 1018067] Re: php53u package updates reset owner of /var/lib/php/session
Hello James,
You are correct, the PHP Package is responsible for settings these
attributes:
http://bazaar.launchpad.net/~ius-
coredev/ius/php53u/view/head:/SPECS/php53u.spec#L1119
You will notice this is the exact way Fedora handles their PHP packages,
see below snippet from
http://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/source/SRPMS/p/php-5.4.4-2.fc18.src.rpm:
$ grep session SPECS/php.spec
# To ensure correct /var/lib/php/session ownership:
Provides: php-session, php-session%{?_isa}
install -m 700 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/php/session
%attr(0770,root,apache) %dir %{_localstatedir}/lib/php/session
---
If using nginx I may suggest you configure a alternate session path in your php.ini, one that is not maintained
by a RPM package.
Jeffrey-
--
You received this bug notification because you are a member of IUS Core
Development, which is subscribed to IUS Community Project.
https://bugs.launchpad.net/bugs/1018067
Title:
php53u package updates reset owner of /var/lib/php/session
Status in IUS Community Project:
New
Bug description:
Every time a new php53u package is installed, the owner of
/var/lib/php/session is changed to root:root. If PHP runs as a
different user, this path has likely been configured to a different
owner and must not be changed. If PHP cannot write to this patch, it
is unable to create/update sessions (with no error as to why, as far
as I can tell).
Can future packages be altered to only set the owner for this path if
it is creating it?
To manage notifications about this bug go to:
https://bugs.launchpad.net/ius/+bug/1018067/+subscriptions
References