Apache doesn't start if /var/log/apache2 is missing
Bug #936216 reported by
Removed by request
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Apache2 Web Server |
Confirmed
|
Wishlist
|
|||
apache2 (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
I'm using Ubuntu 12.04 dev with apache2 2.2.22-1ubuntu1. If the directory /var/log/apache2 doesn't exist the apache server can't start:
sworddragon@
* Starting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.1.101 for ServerName
(2)No such file or directory: apache2: could not open error log file /var/log/
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
I think /etc/init.d/apache2 should check for this directory and create it if it is missing.
tags: | added: upstream |
Changed in apache2 (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Low |
Changed in apache2: | |
importance: | Unknown → Wishlist |
status: | Unknown → Confirmed |
To post a comment you must log in.
If httpd is configured to log to a file in a non-existing directory, it refuses logs/mailman/ error_log.
to start up, e.g.:
[Fri Sep 28 03:58:13 2007] [notice] caught SIGTERM, shutting down
(2)No such file or directory: httpd: could not open error log file
/etc/httpd/
Unable to open logs
It's useful when restarting Apache to check if any configuration changes will
prevent the restart from being successful (and thus result in down time when the
restart command is issued). However the configuration syntax check doesn't check
if log file directories exist and so doesn't catch this problem
Other non-existing directories (for serving files out of etc) don't prevent the
entire process from starting up and so aren't such critical errors.
It would be great if either
1) the inability to create a log file did not prevent httpd from starting
2) the config test (or another test) checked for this condition (and possible
other config options that would prevent startup)