You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by MK...@IN.Safenet-inc.com on 2006/12/14 12:03:33 UTC
Issue using piped logging
hi all
I am upgrading from Apache 2.0.53 to Apache 2.2.3 but recently I am facing
some issues with piped logging in Apache 2.2 .Please let me know if anyone
of you had also faced it.
I used following in my httpd.conf for error logging
ErrorLog "|/bin/sh -c 'RUNTIME=/myruntime LD_LIBRARY_PATH=/myruntime/lib
/myruntime/bin/mylogger -k file -d /myruntime/logs -f error_log'"
but this not working and httpd do not starts there are no logs about what
happened ,but the same thing works on Apache 2.0.53.Instead if I use
following everything goes fine and httpd starts up
ErrorLog "|/myruntime/bin/mylogger -k file -d /myruntime/logs -f error_log'"
Can anyone help me on this and let me know if there has been any change in
implementation of piped logs in 2.2 w.r.t to 2.0.
Thanks/Regards
Manmeet singh khurana
The information contained in this electronic mail transmission may be privileged and confidential, and therefore, protected from disclosure. If you have received this communication in error, please notify us immediately by replying to this message and deleting it from your computer without copying or disclosing it.
Re: Issue using piped logging
Posted by Jeff Trawick <tr...@gmail.com>.
On 12/14/06, MKhurana@in.safenet-inc.com <MK...@in.safenet-inc.com> wrote:
> I am upgrading from Apache 2.0.53 to Apache 2.2.3 but recently I am facing
> some issues with piped logging in Apache 2.2 .Please let me know if anyone
> of you had also faced it.
>
> I used following in my httpd.conf for error logging
>
> ErrorLog "|/bin/sh -c 'RUNTIME=/myruntime LD_LIBRARY_PATH=/myruntime/lib
> /myruntime/bin/mylogger -k file -d /myruntime/logs -f error_log'"
>
> but this not working and httpd do not starts there are no logs about what
> happened ,
no idea here, but comparison of truss/strace/whatever between your
2.0.53 and 2.2.3 setups should yield some clues
Re: Issue using piped logging
Posted by Joe Orton <jo...@redhat.com>.
On Thu, Dec 14, 2006 at 04:33:33PM +0530, MKhurana@IN.Safenet-inc.com wrote:
> I used following in my httpd.conf for error logging
>
> ErrorLog "|/bin/sh -c 'RUNTIME=/myruntime LD_LIBRARY_PATH=/myruntime/lib
> /myruntime/bin/mylogger -k file -d /myruntime/logs -f error_log'"
>
> but this not working and httpd do not starts there are no logs about what
> happened ,but the same thing works on Apache 2.0.53.Instead if I use
> following everything goes fine and httpd starts up
>
> ErrorLog "|/myruntime/bin/mylogger -k file -d /myruntime/logs -f error_log'"
In 2.2 the ErrorLog value is passed directly as the argument for /bin/sh
-c, so:
ErrorLog "|RUNTIME=/blah /etc/etc"
will execute /bin/sh -c 'RUNTIME=/blah /etc/etc'.
joe