Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Apache log files empty
PostPosted: Thu Oct 13, 2011 7:03 am 
Offline
Senior Member

Joined: Tue Sep 13, 2011 7:13 am
Posts: 67
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

/var/log/apache2/other_vhosts_access.log

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


Last edited by marko_roi on Mon Oct 17, 2011 11:34 am, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Sun Oct 16, 2011 4:08 am 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
Does the www-data user have the appropriate permissions to write to those files?


Top
   
 Post subject:
PostPosted: Mon Oct 17, 2011 9:03 am 
Offline
Senior Member

Joined: Tue Sep 13, 2011 7:13 am
Posts: 67
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?


Top
   
 Post subject:
PostPosted: Mon Oct 17, 2011 9:53 am 
Offline
Senior Member

Joined: Thu May 21, 2009 3:19 am
Posts: 336
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.


Top
   
 Post subject:
PostPosted: Mon Oct 17, 2011 11:33 am 
Offline
Senior Member

Joined: Tue Sep 13, 2011 7:13 am
Posts: 67
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 :-(


Top
   
 Post subject:
PostPosted: Mon Oct 17, 2011 6:59 pm 
Offline
Senior Member

Joined: Thu May 21, 2009 3:19 am
Posts: 336
All logs or just Apache's?


Top
   
 Post subject:
PostPosted: Mon Nov 07, 2011 10:24 am 
Offline
Senior Member

Joined: Tue Sep 13, 2011 7:13 am
Posts: 67
/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 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.


Top
   
 Post subject:
PostPosted: Tue Nov 08, 2011 7:41 pm 
Offline
Senior Member

Joined: Sat Jun 12, 2010 4:53 pm
Posts: 77
Vance wrote:
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. )


Top
   
 Post subject:
PostPosted: Wed Nov 09, 2011 4:58 pm 
Offline
Junior Member

Joined: Sat Feb 21, 2009 6:25 pm
Posts: 26
Could it be a misconfigured logrotate?


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group