apache2 startup fails with missing log directory

Bug #796750 reported by Courtney Rosenthal
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
apache2 (Debian)
Confirmed
Unknown
apache2 (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

Binary package hint: apache2

If $APACHE_LOG_DIR (as defined in /etc/apache2/envvars) does not exist, server startup fails.

This would happen, for instance, if /var/log is on a ramdisk. That is something commonly done for systems that use an SSD drive. Putting logs on a ramdisk avoids wearing out the SSD flash memory.

It would be helpful if the apache initscript createad its log subdirectory if needed.

SYSTEM: Ubuntu 11.04 (amd64)
PACKAGE: apache2.2-common 2.2.17-1ubuntu1

Tags: patch
Revision history for this message
Courtney Rosenthal (courtneyr) wrote :
description: updated
tags: added: patch
Revision history for this message
Dave Walker (davewalker) wrote :

Thank you for reporting this issue and including a patch. I have forwarded your patch to Debian for consideration. If accepted, we'll get this fix on our next merge. I'm not keen to extend our delta with Debian on this issue, but we will benefit from your patch eventually!

Thanks again.

Changed in apache2 (Ubuntu):
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
Courtney Rosenthal (courtneyr) wrote :

Thanks for sending this upstream. That sounds appropriate.

Changed in apache2 (Debian):
status: Unknown → New
Changed in apache2 (Debian):
status: New → Confirmed
Revision history for this message
Henk Poley (henkpoley) wrote :

Upstream has rejected the patch. Would you be so kind to add this patch to the ubuntu delta?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.