Re: access.log problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Steve,

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

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*)?

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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (Darwin)

iD8DBQFHX9LF23FrzRzybNURAiRpAJwKhtnoamzX/wHkpnsIUs63lcGKJgCgzdDh
mx7w1U4ML8IsTX5AdAmu87E=
=uCeK
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux