Apache log files empty
Now i want to check some log files, use apachetop on them but all log files seem to be empty.
Files like
ErrorLog /srv/www/mysite.com/logs/error.log
CustomLog /srv/www/mysite.com/logs/access.log combined
Are empty, also i checked
/var/log/apache2/othervhostsaccess.log
is also empty, any idea what is wrong, maybe what to check or what to setup to make this work?
8 Replies
How to check that and how to make it properly setup for that user?
Used some stackscript on Linode also.
Maybe somehow I commented some settings for this for some reason, i dont remember, what to check and see if this is so?
As currently all my logs are somehow empty
What i am trying to do is to use apachetop on my log files as discussed here
My logs for single virtual hosts are not empty. I made a mistake writing that before so It seems all i need to do is to make in each of my virtual host files to add that they write also to one common file and then apachetop that.
Question is can i write somewhere and that is automaticly added to all V host files or do i need to write this to each one by hand?
CustomLog /var/log/apache2/access.log commbined.
@Vance:
Does the www-data user have the appropriate permissions to write to those files?
( The apache process that slaps down logs runs as root, so its logs are not a permission thing. )