Help - Search - Members - Calendar
Full Version: How can I remove the logs file from my server?????
The Planet Forums > General > Suggestions/Comments
sdhost
How can I remove the logs file from my server?????
REBIS
Call a lumberjack! icon_biggrin.gif

Seriously though, you can manually delete them via
# cat /dev/null > /var/log/logname
However, it's best to rotate more frequently if they're growing too large. Without the logs, you won't be able to run a stats prog such as Urchin.
sdhost
thanx
can you guide me with steps because I am new in UNIX...
anyway I try it by typing
# cat /dev/null > /var/log/logname
but I got permission denied


what you mean by
QUOTE
rotate more frequently if they're growing too large


also explain what you mean by this
Without the logs, you won't be able to run a stats prog such as Urchin.
sdhost
help please3
dalem
are you logged in as root ?

logrotate should be installed on your server

ssh
man logrotate
aussie
QUOTE (sdhost)
How can I remove the logs file from my server?????



What log files are you talking about? There are many. This is a very general question. Try to be a bit more specific when requesting help.
sdhost
the logs file at httpd
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.