PDA

View Full Version : Warning! The file suphp.log with 2 gigas will stop the php script



PauGasol
03-10-2008, 03:12 PM
Hi,

The /var/log/suphp.log when comes to 2 gigas stop the php scripts.. then you need delete the file to work fine again. I think the community should know this. I think DA should include in the logrorate this file, is important.

I know add this to the logrotate should be easy searching but i ask here before :) .

Sorry my bad english

smtalk
03-10-2008, 04:22 PM
Hi,

Firstly, you should check i you have loglevel=warn in /usr/local/suphp/etc/suphp.conf. If you have info - it will log everything. Secondly, if you have apache 2.2 - it should work with 2+GB files :) And of course it would be great to have logrotate for it.

PauGasol
03-10-2008, 05:30 PM
Thanks with the 'warn' level to reach 2 gigas will be years im seeing :)

httpd -v
Server version: Apache/2.2.6 (Unix)
Server built: Nov 27 2007 20:11:34

even with 2.2 when the log is 2GB stops and fail, at least in my server . I recommend put the level log to 'warn'

DirectAdmin Support
03-11-2008, 04:58 PM
I've added suphp.log to apache.logrotate:
http://files.directadmin.com/services/customapache/apache.logrotate

For new installs, it will show up in:
/var/logrotate.d/apache

or you can manually add the extra entry into the file if you need it.

John