GoWilkes

Well-Known Member
Sep 26, 2006
721
36
178
cPanel Access Level
Root Administrator
I have a server that only runs one website. In looking through the server, though, I see that it's reporting logs here:

/usr/local/apache/domlogs/

As well as a duplicate copy here:

/usr/local/apache/domlogs/[myaccountname]/

These logs are currently around 600MB. The one without [myaccountname] actually has a little more data, because it includes "-bytes_log" and "-bytes_log.offset" files.

I obviously don't need two copies of access logs, but I still want Urchin to report correctly. Can I remove one of these?

If so, how can I prevent more duplicate logs from being copied to that location?
 

nyjimbo

Well-Known Member
Jan 25, 2003
1,136
1
168
New York
I have the same thing and its eating up my /usr to a point where its getting around 90%. I cant see why there is two, doesnt this also add to alot of uneeded disk writing?
 

GoWilkes

Well-Known Member
Sep 26, 2006
721
36
178
cPanel Access Level
Root Administrator
Until someone gives us a better answer, running these commands might help clear up some space temporarily:

rm -rf /usr/local/apache/logs/error_log
rm -rf /usr/local/apache/logs/suexec_log
touch /usr/local/apache/logs/suexec_log
httpd restart

Just log in to SSH and run each line, one at a time. The first one deletes the error log; the second deletes suexec log, the third recreates suexec log (but leaves it empty), and the fourth restarts Apache.

You can also remove the logs here:

/usr/local/apache/logs/archive (these are just backups from /logs/)

If you don't use Urchin, then you can also run these (changing "yourdomain" to whatever the file name is):

rm -rf /usr/local/apache/domlogs/[yourdomain].com
touch /usr/local/apache/domlogs/[yourdomain].com

If you're running Urchin, then you'll lose the stats for the day, but if you're running something off-server (like Google Analytics) then there shouldn't be a problem.

All of these grow over time, though, so it's just a temporary fix.
 

nyjimbo

Well-Known Member
Jan 25, 2003
1,136
1
168
New York
I am familiar with all that stuff, I just dont understand why we have to keep two identical copies of the files.
 
Thread starter Similar threads Forum Replies Date
P Site Performance Analytics 3