httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
Subject Re: [users@httpd] How to store loginformation in user specified directory?
Date Wed, 30 May 2007 13:33:14 GMT
On 5/30/07, ramakrishnaprasad.annasamudram@wipro.com
<ramakrishnaprasad.annasamudram@wipro.com> wrote:
>
>
> Hi,
>
> We are facing a tight problem regarding a user  requirement to store logfile in user
specified directory.We are getting  segmentation fault when we are starting apache when we
try to use a log file in  user defined directory(other than logs/).
> We used fopen(),fprintf() to write the user  specified file.This always gave segmentation
fault.The one option we had  regarding using ErrorLog is failing since httpd.conf recognises
path w.r.t  ServerRoot.
> Did any one has done this before? Is this possible  ? If so please suggest a way out.
>

That doesn't really make any sense to me. Apache will happily write
the access and error logs wherever you tell it, if the permissions are
correct and there is sufficient space. Have you tried starting apache
under strace to see what syscall is failing? Have you tried debugging
the core dump?

I also don't understand what you mean when you say you used
fopen(),fprintf(). Why do you need to use these? It is apache that
controls the log files directly.

Finally, you should heed the warning in the docs that logs shouldn't
be written anywhere that root does not exclusively control. Otherwise,
whatever user controls the log directory can almost certainly gain
root.

Joshua.

---------------------------------------------------------------------
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


Mime
View raw message