can't find thread on freeing log space

dwh

Member
Mar 5, 2002
16
0
301
Some time ago Someone had posted problems with logs hogging lots of space and someone else came in and came up w/ a great way using symbolic links to do so. I thought I was involved in that thread but searching for my posts returns 0 posts (???)...and all other searches I've done turn up nothing (logs, logs filling up directory etc...)...does anyone remember where that thread was? I need to do something similar again and would love to have it as reference.

Thanks!
 

feanor

Well-Known Member
Aug 13, 2001
835
0
316
You mean symlinking your apache domlogs elsewhere, or /var/log ?

Yea you can do that with:

ln -s /usr/local/apache/domlogs /home/domlogs


(AFTER you move that domlogs dir into HOME and kill apache)
once the link is made then restart the lovely service. You can apply this to many things related to service logging or the system syslogger, though if you start meddling with pushing around the cpanel directory structure, or library source files around your linux system- it will die.

Just be careful :p