Bug 29941

Summary: log files are not tested for availability on configtest
Product: Apache httpd-2 Reporter: Seth Shoemaker <seth>
Component: Runtime ConfigAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: RESOLVED FIXED    
Severity: enhancement CC: apache-bugreport, kimball, knoxg
Priority: P3    
Version: 2.0-HEAD   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Seth Shoemaker 2004-07-06 19:15:48 UTC
When setting up virtual host entries, apache is fine with document roots that
don't exist.  It warns you that they don't exist and then doesn't start them up.
 However if you have a log entry that doesn't exist, instead of warning you that
it doesn't exist and just not starting that virtual host, it just crashes out
and writes to the log file.  It is not helpful to write to the log file.  It
should write to the screen.  Also a configtest should reveal that the log
directory does not exist.  I don't think Apache should try to create the
directory if it's not there, as that's more than it is created to do, however,
it should handle that more gracefully.
Comment 1 Paul Querna 2004-11-04 03:10:47 UTC
This would be a good feature to add to the new test hook.  Check all the log
directives, see if we have the file perms to create or append to the log files, etc.
Comment 2 Stefan Fritsch 2011-12-28 14:53:56 UTC
*** Bug 47219 has been marked as a duplicate of this bug. ***
Comment 3 Jo Segaert 2013-06-06 10:32:26 UTC
Also discussed on launchpad by the Ubuntu people.
https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/875883
This problem will become important in the future as more and more people redirect their log to the /tmp to counter SSD wear.
Comment 4 Christophe JAILLET 2018-03-12 22:02:57 UTC
This is part of apache 2.4.1, see r1238824