homepage Welcome to WebmasterWorld Guest from 54.145.238.55
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
logs not working
httpd-access.log and httpd-error.log are empty
b0blee

5+ Year Member



 
Msg#: 3900 posted 12:10 am on Jun 23, 2005 (gmt 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-

 

jd01

WebmasterWorld Senior Member 5+ Year Member



 
Msg#: 3900 posted 9:57 pm on Jun 23, 2005 (gmt 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

b0blee

5+ Year Member



 
Msg#: 3900 posted 10:53 pm on Jun 23, 2005 (gmt 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.

Wizcrafts

10+ Year Member



 
Msg#: 3900 posted 12:37 am on Jun 24, 2005 (gmt 0)

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

Wiz

b0blee

5+ Year Member



 
Msg#: 3900 posted 4:36 pm on Jun 24, 2005 (gmt 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.

b0blee

5+ Year Member



 
Msg#: 3900 posted 4:48 pm on Jun 24, 2005 (gmt 0)

I just stopped and restarted httpd, and now it's logging! #*$!?

b0blee

5+ Year Member



 
Msg#: 3900 posted 5:25 pm on Jul 28, 2005 (gmt 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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved