Hi Serge, Per this page:
http://www.php.net/manual/en/session.configuration.php#ini.session.gc- probability The algorithm basically divides this by session.gc_divisor to decide on the percentage of the time to kick off session garbage collection. By setting it to 0, you're saying never do session garbage collection. That could be a huge problem if you have large sessions, as the dir will never be cleaned out by PHP's garbage collection. However, the default cron job installed with php5-common cleans out /var/lib/php based on the maxlifetime. This makes a lot more sense than having 1% of your web requests pause to delete a bunch of files right before exit. Its not just about the permissions on /var/lib/php5. So that makes sense why it was 0. However, the reasons for setting it to 1 instead of 0 are explained here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=388808 and here http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=321460 Basically, its confusing. We're disabling core functionality (even if its misguided functionality) without any way to tell application developers that it is turned off. I think the best course of action is to just make the path different for each SAPI (cgi, cli, fcgi, apache2, etc). I can see that breaking some things where maybe people are mixing fcgi and apache2, but thats a fringe case, far less common than people registering their own handlers or using the default install w/ local session files. ** Bug watch added: Debian Bug tracker #388808 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=388808 ** Bug watch added: Debian Bug tracker #321460 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=321460 ** Changed in: php5 (Ubuntu) Status: Confirmed => Triaged ** Changed in: php5 (Ubuntu) Assignee: Clint Byrum (clint-fewbar) => (unassigned) -- session.gc_probablity=1 in /etc/php5/apache2/php.ini conflicts with permissions on /var/lib/php5 https://bugs.launchpad.net/bugs/619855 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to php5 in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs