Ubuntu 14 php session purging
-
In the wiki under https://wiki.fogproject.org/wiki/index.php/Fog_Tweaks is a section dealing with PHP Session Purging. When I checked my /etc/cron.d/php5 the line that was recomended for editing didn’t match what I expected instead of “09,39 * * * * root [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {} 2>/dev/null ; -delete” I have “09,39 * * * * root [ -x /usr/lib/php5/sessionclean ] && /usr/lib/php5/sessionclean” is there a change in how this is handled in ubuntu 14 I am running SVN 4602.
-
yes, this was a flaw in the way that Ubuntu 12.04 and i think 13.04 did it. it has changed for the better in 14.04, i believe.
-
So leave as is or replace with the string from the wiki.
-
i would add a note that it’s only specific versions of Ubuntu