Wednesday, 15 February 2012

PHP - fuser forking uncontrollably in cron job (Ubuntu server 11.10)

Hi,

I have this problem with my Ubuntu server 11.10 and I fixed problem by editing /etc/cron.d/php5 and replace the codes with:
  • 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) -delete

Good luck!

No comments:

Post a Comment