Luke87

Member
Dec 16, 2003
17
0
151
Hi my usr dir is 88% full.

Just wondering if there are old logs I can delete which are taking up space. Also whats the path to these?

Thanks
 

darkpunk99

Registered
Oct 30, 2003
4
0
151
Try moving logs to another directory.

1. create a usr directory in the home directory
2. change directory to the apache directory
3. stop apache running
4. move the log files to the new location
5. create the symlink
6. restart apache.

mkdir /home/usr/
cd /usr/local/apache/
/etc/rc.d/in*/httpd stop
mv domlogs /home/usr/
ln -s /home/usr/domlogs/ domlogs
/etc/rc.d/in*/httpd start
 

Luke87

Member
Dec 16, 2003
17
0
151
Thanks, but usr is now 87% use so there must be other logs filling up that partition.
 

kris1351

Well-Known Member
Apr 18, 2003
961
0
166
Lewisville, Tx
Look in your /usr/local/apache directory and see if you have core files. When compiling Apache it always creates several and they are several hundred meg each.
 

LS_Drew

Well-Known Member
Feb 20, 2003
187
0
166
try:

cd /usr/local/apache/logs

ls -Sahl |more

That will list the logs in that directory, in size order.
 

perlchild

Well-Known Member
Sep 1, 2002
279
0
166
Originally posted by aingaranweb
can we delete error_log?
IMO it's better to make sure error_log is in your logrotate.d/apache or similar file, where it will be rotated regularly.