Web Hosting Talk







View Full Version : Log files getting too large!!


spiderman
11-13-2001, 11:24 AM
Currently running a unix server with Redhat 7.1/WHM/Cpanel software. I have just noticed that /usr partition is quite full right now. What do I do??Should I delete files inside /usr/local/apache/domlogs?? Whats command should I type in to remove those files.. Is it safe to do so?

Advice needed.. Thanks..

zkn
11-13-2001, 11:26 AM
use next command to clean a log file:
echo -n> /path/logfile

Walter
11-13-2001, 03:29 PM
If you want to remove all logs type in

rm –f /usr/local/apache/domlogs/*

then restart Apache either through WHM or manually with

/etc/rc.d/init.d/httpd stop
/etc/rc.d/init.d/httpd start

and the logs will be recreated.

But remember: the domain.com file contains the hits which are used to calculate the cpanel stats (Webalizer, Analog).

bobcares
11-26-2001, 03:08 PM
Hi!
I would suggest you move the directories to another location where you have more space and then create a system link to the directory.
Use the following commands
mv to move the directory and ln to create the link.
Have a great day :)

Regards
Amar