You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Ali Nebi <an...@iguanait.com> on 2011/12/21 10:04:57 UTC

Suggestion for improvment: Let apache does not fail after restart if a log dir is missing and let put an error or warning message in error log.

Hello,

I would like to make a suggestion to apache web server developer and to
open a discussion related with the way apache is working currently when a
directory where apache must create logs files does not exists.

Currently if I create a virtual host and set there Error/Custom Log entries
to create logs files under some path like /var/www/mydomain-logs, but this
directory does not exists and I restart apache or do graceful, apache will
stop working, because of this error. In this case we see error message in
error logs where it says that logs directory does not exists.

My suggestion is this. Let apache start logging in default apache logs
directory if some of defined logs directory paths does not exists and let
apache log this as a warning or error in errors log. Also let apache start
working successfully and not fail if mentioned logs directory does not
exists.

My point is that this is a common mistake and if someone has 1000 sites on
a server, this will cause all sites to be down because of 1 missing
directory.

I think this could be a good improvement related with logging stuff.

I will be happy to hear your opinions for this.

Best regards,
Ali

Re: Suggestion for improvment: Let apache does not fail after restart if a log dir is missing and let put an error or warning message in error log.

Posted by Reindl Harald <h....@thelounge.net>.

On 21.12.2011 09:04, Ali Nebi wrote:
> Hello,
> 
> I would like to make a suggestion to apache web server developer and to open a discussion related with the way
> apache is working currently when a directory where apache must create logs files does not exists.

and at least fix that "apachectl -t" does not comlain if the folder
is not created and the next start fails!