· 7 years ago · Feb 21, 2019, 01:16 AM
1from: root <myuser>@gmail.com
2to: root
3date: Wed, Sep 12, 2012 at 2:09 PM
4subject: Cron <root@127> [ -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
5mailed-by: gmail.com
6
7content: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/memcached.so' - /usr/lib/php5/20090626/memcached.so: cannot open shared object file: No such file or directory in Unknown on line 0
8
9/etc/cron.d/
10/etc/cron.daily/
11/etc/cron.hourly/
12/etc/cron.monthly/
13/etc/cron.weekly/
14
15cat /etc/cron.d/php5
16
17# /etc/cron.d/php5: crontab fragment for php5
18# This purges session files older than X, where X is defined in seconds
19# as the largest value of session.gc_maxlifetime from all your php.ini
20# files, or 24 minutes if not defined. See /usr/lib/php5/maxlifetime
21
22# Look for and purge old sessions every 30 minutes
2309,39 * * * * root [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 | xargs -n 200 -r -0 rm