You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jordi Moles <jo...@cdmon.com> on 2009/07/27 11:48:01 UTC

[users@httpd] create errorlog folder

Hi,

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.

anyway... the thing is that I'm running a web server, with multiple 
domains running on a virtual-host set up.

Each domain name has its own error_log file, through the ErrorLog 
directive in the individual conf file.

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.

Thanks in advance.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] create errorlog folder

Posted by Dan Poirier <po...@pobox.com>.
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>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] create errorlog folder

Posted by Dan Poirier <po...@pobox.com>.
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>