Problem in LXC with php session files

Status
Not open for further replies.

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,044
565
113
There seems to be an oustanding issue in containers that has not been fixed in jessie. You may run for a long time and never suffer but slowly you will be accumulating tiny session files.

Have a look in: /var/lib/php/sessions

Anyway the fix for now is to change the cronjob that runs the garbage collector and stop it using systemd:

Code:
systemctl disable phpsessionclean.timer
systemctl stop phpsessionclean.timer

Then:
Code:
nano -w /etc/cron.d/php

Change it to:
Code:
09,39 *     * * *     root   [ -x /usr/lib/php/sessionclean ] && /usr/lib/php/sessionclean
 
Last edited:
  • Like
Reactions: krooney
Status
Not open for further replies.