Welcome to WebmasterWorld Guest from 54.196.223.42

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

logs not working

httpd-access.log and httpd-error.log are empty

     
12:10 am on Jun 23, 2005 (gmt 0)

New User

10+ Year Member

joined:June 22, 2005
posts:6
votes: 0


My logs are empty. All that's in them is the daily newsyslog "logfile turned over" message. I'm running under FreeBSD.

I think it might have started when I installed PHP5 two weekends ago. Hard to tell because I didn't notice the problem right away.

Everything in httpd.conf looks normal. Logs are supposed to be written to /var/logs but nothing is being logged.

Any ideas would be appreciated.

-b0b-

9:57 pm on June 23, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 9, 2005
posts:1509
votes: 0


What level is the log setting at?

This should be configurable in the httpd.conf file, and may have been accidentally overwritten or changed to 0, which would cause Apache to stop logging information.

Justin

10:53 pm on June 23, 2005 (gmt 0)

New User

10+ Year Member

joined:June 22, 2005
posts:6
votes: 0


It says:

LogLevel warn

But the comment for that variable says that it applies to the error log. It shouldn't affect access log, should it?

By the way, I also have:


CustomLog /var/log/httpd-access.log combined

This has always worked in the past. I didn't change anything manually in the httpd.conf file, but I know that the PHP5 installation touched it.

I search on the word "log" and everything looks right. This one has me baffled.

12:37 am on June 24, 2005 (gmt 0)

Full Member

10+ Year Member

joined:May 5, 2003
posts:319
votes: 0


b0blee
Maybe this page about Apache Logging commands will help find the missing commands:
[webauthv3.stanford.edu...]

Wiz

4:36 pm on June 24, 2005 (gmt 0)

New User

10+ Year Member

joined:June 22, 2005
posts:6
votes: 0


Yeah, nothing in that article stands out. Like I said, everything looks normal.

The log file permissions are root/wheel -rw-r--r--. That seems pretty restrictive to me, but it matches the /var/log directory which is root/wheel -rwxr-xr-x so I suppose it's right.
4:48 pm on June 24, 2005 (gmt 0)

New User

10+ Year Member

joined:June 22, 2005
posts:6
votes: 0


I just stopped and restarted httpd, and now it's logging! #*$!?
5:25 pm on July 28, 2005 (gmt 0)

New User

10+ Year Member

joined:June 22, 2005
posts:6
votes: 0


bump with more info

It turns out that when the log rolls over every night, Apache stops logging. If I restart Apache manually, logging starts again until the nightly rollover.

I figure that this might be a permissions problem. Maybe Apache doesn't have permission to write to the newly created log file, which was actually made by the program that does the log rollover.

I'm running FreeBSD.

I don't really know how the log rollover job works, or where it is configured. The dysfunctional log is owned by root/wheel and set to 644.