Apache bytes

aleto

Verified User
Joined
Mar 23, 2005
Messages
19
Location
The Netherlands
Hi,

We are using DirectAdmin 1.23.5 with Apache 1.3.33 at FreeBSD 4.11.

Last week a customer made notice that his bandwith was not being counted correctly. (Bandwith usage, not disk usage) and that it all stayed zero.

After some research, i found out that Apache is *NOT* logging bytes to the specified logfiles.

I do have the "bytes" log directive in my httpd.conf:

root@server1# grep "bytes" httpd.conf
LogFormat "%b" bytes
root@server1#

I also have the correct directives in the configuration files:

root@server1# grep "bytes" /usr/local/directadmin/data/users/***/httpd.conf
CustomLog /var/log/httpd/domains/****.nl.bytes bytes
root@server1#

But when i do a cat to the file, it stays empty:
root@server1# cat /var/log/httpd/domains/******.nl.bytes
root@server1#

This is effective for all domains on the server, i also have another server showing the same sympthons. Deleting / creating the files didnt work :( I have tried google and this forum's search but still no luck. access_log (combined) and error etc. are working correctly and they do show up with correct information. Apache also reports no errors.

I hope that anyone has an suggestion, thank you for your time already ;)
 
what is the ownership of apache's log file? That would be my guess that somehow it's owned incorrectly. Either that or chmod'ed incorrectly.

Or Apache is looking in the wrong spot for the log somehow.

-drmike
 
Back
Top