And the fix is this

find this file 
/etc/cron.d/php5

This line ...

09,39 *     * * *     root   [ -x /usr/lib/php5/maxlifetime ] && [ -d
/var/lib/php5 ] && find /var/lib/php5/ -type f -cmin
+$(/usr/lib/php5/maxlifetime) -print0 | xargs -r -0 rm

change to ...

09,39 *     * * *     root   [ -x /usr/lib/php5/maxlifetime ] && [ -d
/var/lib/php5 ] && find /var/lib/php5/ -type f -cmin
-$(/usr/lib/php5/maxlifetime) -print0 | xargs -r -0 rm


Just change "+" to "-" after cmin.

-- 
Php cron job fails when there are a lot of session files in /var/lib/php5
https://bugs.launchpad.net/bugs/482720
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

Reply via email to