I was running my Apache server on RHEL 5.5, and noticed when I typed: df -h
, that I was getting:
[root@localhost log]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
11G 11G 0 100% /
/dev/sda1 99M 13M 82M 14% /boot
tmpfs 1006M 0 1006M 0% /dev/shm
Any idea where the space would be going to?
I have cleaned out the log files in /usr/local/apache2/logs/
, but that hasn't cleaned up the space.
It has got to be a log file somewhere, but I can't find it.
Is there a command I can use to search /
for the large files?
I have tried:
# du -a /var | sort -n -r | head -n 10
No luck.
httpd.conf
file. – Kevdog777 Aug 27 '14 at 08:32logrotate
can help you keep only logs for the last 3 days or whatever you like. It's a lot less trouble than having to re-enable logging when you already have a problem with your server. – Ulrich Schwarz Aug 27 '14 at 12:30