[Bug 482720] Re: Php cron job fails when there are a lot of session files in /var/lib/php5

tinodj gjorgjioski at gmail.com
Wed Mar 17 14:30:39 GMT 2010


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.



More information about the Ubuntu-server-bugs mailing list