Apache log files empty

I installed debian on linode, have 10 sites on it and made setup according to linode's documentation.

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


is also empty, any idea what is wrong, maybe what to check or what to setup to make this work?

8 Replies

Does the www-data user have the appropriate permissions to write to those files?

I didn't got to that part in instructions. I created everything like its said on linode documentation.

How to check that and how to make it properly setup for that user?

What linode documentation did you follow? I have a hard time believing that if you either used a LAMP stackscript or your distro's repository to install from that this isn't working.

Linode documentation on linode.com this is the only resource i used.

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 :-(

All logs or just Apache's?

/var/logs/apache2/access.log is empty but i guess its because i didnt make any virtual host write in there?

What i am trying to do is to use apachetop on my log files as discussed here http://forum.linode.com/viewtopic.php?t=7731

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.


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. )

Could it be a misconfigured logrotate?


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct