Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

STDERR issue with Apache 2.0.4 under mod_perl

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


shibi.ns at gmail

Nov 15, 2009, 10:02 AM

Post #1 of 3 (431 views)
Permalink
STDERR issue with Apache 2.0.4 under mod_perl

The configuration in httpd.conf look like this

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

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


tevans.uk at googlemail

Nov 16, 2009, 6:07 AM

Post #2 of 3 (388 views)
Permalink
Re: STDERR issue with Apache 2.0.4 under mod_perl [In reply to]

On Sun, Nov 15, 2009 at 6:02 PM, Shibi NS <shibi.ns [at] gmail> wrote:

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

Nov 16, 2009, 7:56 AM

Post #3 of 3 (398 views)
Permalink
Re: STDERR issue with Apache 2.0.4 under mod_perl [In reply to]

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 [at] googlemail> wrote:

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

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.