Re: Need your advice on php5 session files - [Fwd: Bug#479905: phpgroupware-0.9.16-core-base: /var/lib/phpgroupware/sessions grows as files are never purged]

"Chris Weiss" <[email protected]>
Newsgroups gmane.comp.web.phpgroupware.devel
Message-ID <[email protected]>
On Tue, May 27, 2008 at 11:08 AM, Olivier Berger
<[email protected]> wrote:
> Le mercredi 07 mai 2008 à 22:02 +0200, chris a écrit :
>> Le mercredi 07 mai 2008 à 07:11 -0500, Chris Weiss a écrit :
>>
>> >
>> > it's always been my impression that php's garbage collection, not a
>> > cron job, handles removing old session files.  maybe what we have a
>> > bug in php itself...
>> >
>> Garbage collection is disabled in debian, this allows strict permissions
>> on /var/lib/php5.
>> drwx-wx-wt  2 root root 4096 avr 18 10:09 .
>>
>> That if I understand well, let any user create a file and only the one
>> that created the file remove it.
>> So it is not possible to parse the directory. Thats why the cron job is
>> there.
>> My guess is that we will need to enable the gc
>> in /etc/apache2/conf.d/phpgroupware
>>
>>       php_value session.gc_probability 1
>>
>
> Hmmm... Chris, can you provide some ref docs on that garbage
> collecting ?
>
> I'm not sure you came to the same conclusion, reading your other post at
> http://lists.alioth.debian.org/pipermail/pkg-php-maint/2008-May/004010.html :-/
>
> Can you summarize your advice (and CC:
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=479905) ?
>

this is becoming less clear.  the wwwroot user does all access to the
files, no matter what phpgw user is logged in.  I don't see how file
permissions affect this.

What I know about the subject is simply from memory of talking to php
developers (the ones that write the php engine) in ##php on freenode,
though that was a while ago, about when php5 was released.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.