| Welcome to WebmasterWorld Guest from 22.214.171.124 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|logs not working|
httpd-access.log and httpd-error.log are empty
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.
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.
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.
Maybe this page about Apache Logging commands will help find the missing commands:
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.
I just stopped and restarted httpd, and now it's logging! #*$!?
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.
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved