Bug 47219

Summary: Apachectl configtest doesn't check if log directories are created and/or writeable
Product: Apache httpd-2 Reporter: Michiel <apache-bugreport>
Component: CoreAssignee: Apache HTTPD Bugs Mailing List <bugs>
Severity: normal Keywords: ErrorMessage
Priority: P2    
Version: 2.2.9   
Target Milestone: ---   
Hardware: All   
OS: Linux   

Description Michiel 2009-05-19 06:08:17 UTC
When the log directory is not created/writable, apache2 fails to start or restart. Running "apachectl configtest" gives "Syntax OK", so it doesn't report this as an error.

According to the documentation about apachectl configtest: "This test does not catch all errors.".

While this is true, I think this one should be caught because it is (I think) simple to check and prevent. Also, "apachectl configtest" checks if DocumentRoot is created and writable, so it is inconsistent (and not expected) if it checks one path, but not the other.

This 'bug' (I prefer 'missing feature'), would not be so bad if 'apachectl restart' would report that it stops working because of missing/unwritable log directories (but this is another matter).
Comment 1 Stefan Fritsch 2011-12-28 14:53:56 UTC

*** This bug has been marked as a duplicate of bug 29941 ***