httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karel Kubat <>
Subject Re: [users@httpd] access.log problem
Date Wed, 12 Dec 2007 12:23:33 GMT
Hash: SHA1


On Dec 12, 2007, at 1:10 PM, Steve Reilly wrote:

> I wish it was that easy lol, Ive been at this for days now.  system
> restarts dont even cure the problem.  All I did was remove all the log
> files (access.log through access.log.28) written by apache2 in
> /var/log/apache2/ directory thinking that an apache2 -k restart or
> apache2ctl restart would rewrite them but it did not.  now Im screwed,
> because everything ive tried is not working.  The reason why I did  
> this
> is because for some reason beyond me apache was no longer writing to
> access.log.1 . it  stopped one day and never continued.  Webalizer
> showed no logs after like the middle of november, and if I did a  
> tail -f
> /var/log/apache2/access.log.1 nothing showed no matter how many  
> times I
> accessed any site of mine.   I never messed with ownership of any
> directory in /var.  error.log shows normal operations, which im  
> curious
> about?  if apache2 is not able to write logs, wouldnt it say something
> about it?

Be sure to verify and re-verify permissions. In 90% of the cases  
that's where the problem lies, even though it may seem otherwise at  

Try the following:

root> su - apache
apache> cd /var/log/apache
apache> echo test > access.log

That of course assumes that 'apache' is a working user, with a login  
shell, but you get the idea.

Furthermore check what your logrotate does. Are the access.log.*  
files written by Apache itself (using a log statement configuration  
that pipes into a log rotator) or via a cron driven logrotate? In the  
latter case, Apache doesn't need to write access.log.1 and "tail -f"  
on the file wouldn't be too useful.

What are the exact permissions of: /var, /var/log, /var/log/apache, / 
var/log/apache/* (especially error_log compared to access*)?

    Karel Kubat / M +31 6 2956 4861 (+31 6 AWK 6 HUM 1)
    Blind Spot: What Dick and Jane did to be cruel.

Version: GnuPG v1.4.6 (Darwin)


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message