PHP的Cron – 最大的分配?

我在Ubuntu上遇到了cron的电子邮件错误,

/etc/cron.d/php5 

我没有安装该cron,所以我猜测它是用PHP安装的。 其内容如下:

 # /etc/cron.d/php5: crontab fragment for php5 # This purges session files older than X, where X is defined in seconds # as the largest value of session.gc_maxlifetime from all your php.ini # files, or 24 minutes if not defined. See /usr/lib/php5/maxlifetime # Look for and purge old sessions every 30 minutes 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 

这似乎是杀死旧会议的cron。

但是,给我发电子邮件错误:

 To: root Subject: Cron <root@mailserver> [ -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 (failed) Message: PHP Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocate 523800 bytes) in Unknown on line 0 find: invalid argument `-delete' to `-cmin' 

有谁知道如何去解决这个问题?

编辑:我知道262144字节是不是很多,所以也许我应该只是碰到内存限制? 我认为这是一个解决方法,但我只是好奇,为什么这些错误突然开始popup。 实际上从来没有在这个服务器上创build任何$_SESSION ,它只用于发送电子邮件。

我的问题是我的.ini文件的Apache2版本configuration的方式。 它被设置为允许1024MB的内存,而不是正确的1024M。 其他人肯定已经搞乱了,因为我只通过CLI在这个服务器上使用PHP。