This file causes the error:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 35 bytes) in /usr/share/codeigniter/system/libraries/Loader.php on line 651
How can i empty this file automatically each month or so? Or how to remove it so i can monitor it again? I thought all logs were in rotation ??
Greetings,
Debian n00b
Please note the new address for this forum : forum.excito.org. The old address redirects here but I don't know for how long. Thanks !
New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !
access.log how to remove it?
Re: access.log how to remove it?
Check logrotate is running, but you can usually copy it off to a backup device if you want and create a new file with the same permissions. I use 'touch', CHMOD and CHOWN to do it most often if I'm in a hurry
Re: access.log how to remove it?
the fastest way to truncate the file is to type following:
Code: Select all
:>/var/log/apache2/access.log
Re: access.log how to remove it?
How to set up the maximum size of access.log (log rotate)?
Will it not be better?
Janeks
Will it not be better?
Janeks
Re: access.log how to remove it?
An example from the logrotate man page.
"/var/log/httpd/access.log" /var/log/httpd/error.log {
rotate 5
mail www@my.org
size=100k
sharedscripts
postrotate
/sbin/killall -HUP httpd
endscript
}
There is a size parameter that you can use to determine how big or how often you want to run. There is also a force option, to make it do it, even if logrotate doesn't think its necessary.
"/var/log/httpd/access.log" /var/log/httpd/error.log {
rotate 5
mail www@my.org
size=100k
sharedscripts
postrotate
/sbin/killall -HUP httpd
endscript
}
There is a size parameter that you can use to determine how big or how often you want to run. There is also a force option, to make it do it, even if logrotate doesn't think its necessary.
Re: access.log how to remove it?
Yes I can do it and I will, but I think it will be better if it had already there so that users do not face with:
brgds
Janeks
Code: Select all
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 35 bytes) in /usr/share/codeigniter/system/libraries/Loader.php on line 651
Janeks