You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Dan Poirier <po...@pobox.com> on 2009/07/27 13:53:25 UTC

Re: [users@httpd] create errorlog folder

Jordi Moles <jo...@cdmon.com> writes:

> I'm sorry if this has been discussed before, but I've been looking
> through this list's archive and found nothing related to it.
...
> For some reason (I'm trying to find out), the path where the error_log
> file is kept gets deleted from time to time i some of the domains
> (each one has its own errorlog folder). After that, when i perform a
> configtest, apache doesn't complain, but when i run graceful, it stops
> working as to apache this is a major problem.
>
> So... i just would like to know if i can do something to avoid this
> from happening... may be can i set up apache so that a message like
> "errorlog file does not exist" appears in the configtest and not only
> in the graceful itself? may be can i make apache create that folder if
> it doesn't exist? may be can i make apache ignore that problem and
> consider it like a warning and not error?
>
> I know that apache is able to create a new error_log file if it
> doesn't find one and has the right privileges, but it fails to create
> the folder. I guess this is the normal and expected behaviour, i just
> need to know if i can make it behave as i need.

[Copying to dev@ list and setting reply-to there.]

I thought I'd seen this reported before but can't find a bugzilla entry
for it.  I'd suggest searching yourself, and if there isn't one,
creating an enhancement request in bugzilla
(http://httpd.apache.org/bug_report.html) so this doesn't get forgotten.

It seems worthwhile to me to check in configtest whether it looks as if
Apache will be able to create or write to the log files.  Apache already
tests whether things like ServerRoot and DocumentRoot exist during
configtest.

I don't think it's possible to check this perfectly without actually
trying to open and write to the log file, which we wouldn't want to do
during configtest, but we can at least see if the directory exists, and
if it appears to be writeable.

-- 
Dan Poirier <po...@pobox.com>