Quote:
Originally Posted by amir1983
Once every month (..) php5/maxlifetime (..) There's more that 100,000 lines on this email.
|
Check your PHP documentation for session data storage and related
garbage collection. Decide how long sessions need to remain active and check that with your php.ini "session.gc_.*" variables, change the 'find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 | xargs -n 200 -r -0 rm' line to read 'find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0
2>/dev/null | xargs -n 200 -r -0 rm
2>/dev/null' (redirect errors to the bit bucket) and change the cronjob to run more often (the more gradual operations are done the less strain it puts on the system).