You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by "Thompson, Jon" <jt...@midwestern.edu> on 2007/11/30 23:35:12 UTC

EMBPERL_SESSION_HANDLER_CLASS = no

I'm getting this garbage in my logs: 

 

--- snip ---

ERR:  66:  Embperl Session handling DISABLED because of the following
error: Can't locate Apache/SessionX.pm in @INC ...

Set EMBPERL_SESSION_HANDLER_CLASS to 'no' to avoid this message.

--- end snip ---

 

I've read up on this a bit, and it seems that I should be able to do
this:

 

$ENV{'EMBPERL_SESSION_HANDLER_CLASS'} = 'no';

 

In my CGI or at least set the environment variable for apache and put
this is my httpd.conf

 

PassEnv EMBPERL_SESSION_HANDLER_CLASS

 

Neither of these work. I understand that putting the following in my
httpd.conf should work assuming that I've loaded mod_embperl & mod_perl:

 

EMBPERL_SESSION_HANDLER_CLASS no

 

However, *I don't have mod_perl*. Is there any way to turn this message
off without mod_perl?

 

Thanks.

 

Jon Thompson

Administrative Systems Integration Specialist

Midwestern University

19555 N 59th Avenue

Glendale, AZ 85308

T 623-572-3303

F 623-572-3292

 


RE: EMBPERL_SESSION_HANDLER_CLASS = no

Posted by "Thompson, Jon" <jt...@midwestern.edu>.
I didn't try that, however I did try this, which should be the same
thing:

$ENV{'EMBPERL_SESSION_HANDLER_CLASS'} = 'no';
require Embperl;

which didn't work. I gave up on trying to do this nicely and just
downloaded the source again and made a modification to the code so it
doesn't print this log.

-----Original Message-----
From: Andrew O'Brien [mailto:andrewo@oriel.com.au] 
Sent: Sunday, December 02, 2007 2:52 PM
To: embperl@perl.apache.org
Subject: RE: EMBPERL_SESSION_HANDLER_CLASS = no


Hi Jon,

> I've read up on this a bit, and it seems that I should be 
> able to do this:
> 
> $ENV{'EMBPERL_SESSION_HANDLER_CLASS'} = 'no';
> 
> In my CGI or at least set the environment variable for apache 
> and put this is my httpd.conf
> 
> PassEnv EMBPERL_SESSION_HANDLER_CLASS
> 
> Neither of these work. I understand that putting the 
> following in my httpd.conf should work assuming that I've 
> loaded mod_embperl & mod_perl:
> 
> EMBPERL_SESSION_HANDLER_CLASS no
> 
> However, *I don't have mod_perl*. Is there any way to turn 
> this message off without mod_perl?

If you're definitely not running under mod_perl (or Apache::Registry
etc) then does putting the the environment setting in a BEGIN block
help?

ie
BEGIN {
  $ENV{'EMBPERL_SESSION_HANDLER_CLASS'} = 'no';
}

...
use Embperl;
...

My only worry would be making sure you are definitely not running in an
environment that is caching any module compilations.

There are several example cgi handlers that come with the Embperl
distribution - it would be worth your while to have a look at these to
see how Embperl recommends you pass things like this through.

Cheers,

Andrew


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


RE: EMBPERL_SESSION_HANDLER_CLASS = no

Posted by Andrew O'Brien <an...@oriel.com.au>.
Hi Jon,

> I've read up on this a bit, and it seems that I should be 
> able to do this:
> 
> $ENV{'EMBPERL_SESSION_HANDLER_CLASS'} = 'no';
> 
> In my CGI or at least set the environment variable for apache 
> and put this is my httpd.conf
> 
> PassEnv EMBPERL_SESSION_HANDLER_CLASS
> 
> Neither of these work. I understand that putting the 
> following in my httpd.conf should work assuming that I've 
> loaded mod_embperl & mod_perl:
> 
> EMBPERL_SESSION_HANDLER_CLASS no
> 
> However, *I don't have mod_perl*. Is there any way to turn 
> this message off without mod_perl?

If you're definitely not running under mod_perl (or Apache::Registry
etc) then does putting the the environment setting in a BEGIN block
help?

ie
BEGIN {
  $ENV{'EMBPERL_SESSION_HANDLER_CLASS'} = 'no';
}

...
use Embperl;
...

My only worry would be making sure you are definitely not running in an
environment that is caching any module compilations.

There are several example cgi handlers that come with the Embperl
distribution - it would be worth your while to have a look at these to
see how Embperl recommends you pass things like this through.

Cheers,

Andrew


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org