STDERR issue with Apache 2.0.4 under mod_perl

STDERR issue with Apache 2.0.4 under mod_perl

am 15.11.2009 19:02:11 von Shibi NS

--00504502cb24308be904786cb136
Content-Type: text/plain; charset=ISO-8859-1

The configuration in httpd.conf look like this


my $app_home = $ENV{APPS_HOME};
my $config =
ConfigLoader::include("$app_home/conf/myapp.pl");

my $elog = '"| rotatelogs '. $config->{log_file} . '%y%m%d
1M "';
$ErrorLog = $elog ;

Where the $config->{log_file} is
/nfs/private/user/sns/log/myapps.myserver-44088.log

But when I checked up the fd 1 of my request process(i suppose this is
STDERR) it points to /nfs/private/user/sns/log/
ursforms.myserver-44088.log . Why so in httpd.conf i configured $ErrorLog to
a pipe and never configured STDERR how STDERR automatically picks up
/nfs/private/user/sns/log/myapps.myserver-44088.log for STDERR

--Shibi Ns--

--00504502cb24308be904786cb136
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable


The configuration in httpd.conf look like this



<Perl>

  =A0 my $app_home     =3D $ENV{APPS_HOME};

  =A0 my $config          =A0 =3D ConfigLoader::inc=
lude("$app_home/conf/ >myapp.pl");  =A0


   
my $elog =A0 =A0 =A0 =A0 =A0   =A0 =3D '"| rotatelogs '. $=
config->{log_file} . '%y%m%d 1M "';


  =A0 $ErrorLog              =3D $elog ;
=A0
</Perl>

Where the $config->{log_file}=A0 is /nfs/private/user/sns/log/myapps.my=
server-44088.log

But when I checked up the fd 1 of my request proces=
s(i suppose this is STDERR) it points to /nfs/private/user/sns/log/
=3D":15k" class=3D"ii gt">
ursforms.myserver-44088.log . Why so in httpd.conf i configured $ErrorLog t=
o a pipe and never configured STDERR=A0 how=A0 STDERR automatically picks u=
p /nfs/private/user/sns/log/myapps.myserver-44088.log for STDERR
>

--Shibi Ns--


--00504502cb24308be904786cb136--

Re: STDERR issue with Apache 2.0.4 under mod_perl

am 16.11.2009 15:07:14 von Tom Evans

--000e0ce0d66acac5fb04787d8646
Content-Type: text/plain; charset=UTF-8

On Sun, Nov 15, 2009 at 6:02 PM, Shibi NS wrote:

>
> The configuration in httpd.conf look like this
>
>
> my $app_home = $ENV{APPS_HOME};
> my $config = ConfigLoader::include("$app_home/conf/myapp.pl");
>
> my $elog = '"| rotatelogs '. $config->{log_file} .
> '%y%m%d 1M "';
> $ErrorLog = $elog ;
>

> Where the $config->{log_file} is
> /nfs/private/user/sns/log/myapps.myserver-44088.log
>
> But when I checked up the fd 1 of my request process(i suppose this is
> STDERR) it points to /nfs/private/user/sns/log/
> ursforms.myserver-44088.log . Why so in httpd.conf i configured $ErrorLog
> to a pipe and never configured STDERR how STDERR automatically picks up
> /nfs/private/user/sns/log/myapps.myserver-44088.log for STDERR
>
> --Shibi Ns--
>

stderr is connected to the error log in apache. If you configure the error
log to be something else, apache connects stderr to your something else.

See http://httpd.apache.org/docs/2.2/logs.html#errorlog

Cheers

Tom

--000e0ce0d66acac5fb04787d8646
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Sun, Nov 15, 2009 at 6:02 PM, Shibi NS dir=3D"ltr"><shibi.ns@gmail.com >> wrote:
ft: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: =
1ex;">

The configuration in httpd.conf look like this



<Perl>

    my $app_home     =3D $ENV{APPS_HOME}=
;

    my $config       =C2=
 Â Â Â=A0 =3D ConfigLoader::include("$app_home/conf/
f=3D"http://ursforms.pl/" target=3D"_blank">myapp.pl"); =C2=
 Â=A0

   =20
my $elog               =3D '&qu=
ot;| rotatelogs '. $config->{log_file} . '%y%m%d 1M "';=



    $ErrorLog        =C2=
 Â Â Â Â=A0 =3D $elog ;
 
</Perl>

Where the $config->{log_file}  is /nfs/private/user/sns/log/myapps=
..myserver-44088.log

But when I checked up the fd 1 of my request pro=
cess(i suppose this is STDERR) it points to /nfs/private/user/sns/log/


ursforms.myserver-44088.log . Why so in httpd.conf i configured $ErrorLog t=
o a pipe and never configured STDERR  how  STDERR automatically p=
icks up /nfs/private/user/sns/log/myapps.myserver-44088.log for STDERR >



--Shibi Ns--


stderr is connected to the error log in apache. If y=
ou configure the error log to be something else, apache connects stderr to =
your something else.

See 2/logs.html#errorlog">http://httpd.apache.org/docs/2.2/logs. html#errorlog a>


Cheers

Tom


--000e0ce0d66acac5fb04787d8646--

Re: STDERR issue with Apache 2.0.4 under mod_perl

am 16.11.2009 16:56:45 von Shibi NS

--001636e1f81d7c2aa504787f0eed
Content-Type: text/plain; charset=ISO-8859-1

Thanks . Is there is any api/function for getting the current ErrorLog.

Shibi Ns

On Mon, Nov 16, 2009 at 7:37 PM, Tom Evans wrote:

> On Sun, Nov 15, 2009 at 6:02 PM, Shibi NS wrote:
>
>>
>> The configuration in httpd.conf look like this
>>
>>
>> my $app_home = $ENV{APPS_HOME};
>> my $config = ConfigLoader::include("$app_home/conf/
>> myapp.pl ");
>> my $elog = '"| rotatelogs '. $config->{log_file} .
>> '%y%m%d 1M "';
>> $ErrorLog = $elog ;
>>

>> Where the $config->{log_file} is
>> /nfs/private/user/sns/log/myapps.myserver-44088.log
>>
>> But when I checked up the fd 1 of my request process(i suppose this is
>> STDERR) it points to /nfs/private/user/sns/log/
>> ursforms.myserver-44088.log . Why so in httpd.conf i configured $ErrorLog
>> to a pipe and never configured STDERR how STDERR automatically picks up
>> /nfs/private/user/sns/log/myapps.myserver-44088.log for STDERR
>>
>> --Shibi Ns--
>>
>
> stderr is connected to the error log in apache. If you configure the error
> log to be something else, apache connects stderr to your something else.
>
> See http://httpd.apache.org/docs/2.2/logs.html#errorlog
>
> Cheers
>
> Tom
>



--
--Shibi Ns--

--001636e1f81d7c2aa504787f0eed
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Thanks . Is there is any api/function for getting the current ErrorLog.
=

Shibi Ns

On Mon, Nov 16, 2009 at 7:37=
PM, Tom Evans <
tevans.uk=
@> wrote:=


204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<=
div class=3D"h5">
On Sun, Nov 15, 2009 at 6:02 PM=
, Shibi NS < et=3D"_blank">shibi.ns@gmail.com> wrote:

204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

The configuration in httpd.conf look like this



<Perl>

  =A0 my $app_home     =3D $ENV{APPS_HOME};

  =A0 my $config          =A0 =3D ConfigLoader::inc=
lude("$app_home/conf/ >myapp.pl");  =A0

   
my $elog =A0 =A0 =A0 =A0 =A0   =A0 =3D '"| rotatelogs '. $=
config->{log_file} . '%y%m%d 1M "';


  =A0 $ErrorLog              =3D $elog ;
=A0
</Perl>

Where the $config->{log_file}=A0 is /nfs/private/user/sns/log/myapps.my=
server-44088.log

But when I checked up the fd 1 of my request proces=
s(i suppose this is STDERR) it points to /nfs/private/user/sns/log/



ursforms.myserver-44088.log . Why so in httpd.conf i configured $ErrorLog t=
o a pipe and never configured STDERR=A0 how=A0 STDERR automatically picks u=
p /nfs/private/user/sns/log/myapps.myserver-44088.log for STDERR
>



--Shibi Ns--


stderr is connected to the error log in =
apache. If you configure the error log to be something else, apache connect=
s stderr to your something else.

See ..org/docs/2.2/logs.html#errorlog" target=3D"_blank">http://httpd.apache.org=
/docs/2.2/logs.html#errorlog




Cheers

Tom




--
--Shibi Ns--


--001636e1f81d7c2aa504787f0eed--