PHP Sessionclean on LXC

Status
Not open for further replies.

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,044
565
113
It seems there is a problem with PHP cleaning session files on LXC. Here's a quick workaround, credit to the proxmox forums:

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

Edit /etc/cron.d/php

And change the file like so:
Code:
##09,39 *     * * *     root   [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi
09,39 *     * * *     root   [ -x /usr/lib/php/sessionclean ] && /usr/lib/php/sessionclean
 
Status
Not open for further replies.