You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by "Ryan C. Spaulding" <rs...@mail.arc.nasa.gov> on 2005/01/11 21:48:59 UTC

Problems with setting EMBPERL_SESSION_HANDLER_CLASS

Hi,

I am currently running:

Embperl-2.0rc2-1
httpd-2.0.46
on Redhat Enterprise AS 3.2-1

My Apache configuration:

<VirtualHost *:80>
     ServerAdmin root@testweb.nas.nasa.gov
     DocumentRoot /web/testweb/htdocs/
     ServerName testweb.nas.nasa.gov


         RewriteEngine On

         #SetEnv EMBPERL_SESSION_HANDLER_CLASS no
         PerlModule Embperl
         PerlSetEnv EMBPERL_SESSION_HANDLER_CLASS no
         #SetEnv EMBPERL_SESSION_HANDLER_CLASS no
         <Directory "/web/testweb/htdocs/wags">
                 #PerlSetVar EMBPERL_SESSION_HANDLER_CLASS no
                 #SetEnv EMBPERL_SESSION_HANDLER_CLASS no
                 SetHandler perl-script
                 PerlHandler Embperl
                 AllowOverride FileInfo AuthConfig Indexes Limit Options
                 Options ExecCGI
         </Directory>

</VirtualHost>


Below is the error message when I start apache (NOTE: this is the only 
time when this error occurs):

[root@testweb root]# apachectl start
[29532]ERR:  66:  Embperl Session handling DISABLED because of the 
following error: Can't locate Apache/SessionX.pm in @INC (@INC 
contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi 
/usr/lib/perl5/5.8.0 
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi 
/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl 
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi 
/usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl 
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 . 
/etc/httpd/ /etc/httpd/lib/perl) at

(eval 3) line 3.Set EMBPERL_SESSION_HANDLER_CLASS to 'no' to avoid this 
message.

So is there some other place other than httpd.conf that I should be 
setting this variable? All of my pages still work fine but I can not 
seem to get rid of this error message. I have also tried to set the 
variable above in the global configuration but with the same results.

Thank you,

Ryan


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


Re: Problems with setting EMBPERL_SESSION_HANDLER_CLASS

Posted by "Ryan C. Spaulding" <rs...@mail.arc.nasa.gov>.
That worked !!

Thank you,

Ryan
On Jan 12, 2005, at 1:19 PM, Gerald Richter wrote:

>>
>> Added this in (httpd.conf):
>>
>> LoadModule embperl_module
>> /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Embperl/
>> Embperl.so
>>
>> Below is the error:
>> [root@testweb root]# apachectl configtest Syntax error on
>> line 208 of /etc/httpd/conf/httpd.conf:
>> Cannot load
>> /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Embperl/
>> Embperl.so into server:
>> /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Embperl/
>> Embperl.so: undefined symbol: Perl_gv_stashpv
>>
>
> Did you load mod_perl before Embperl ? e.g.
>
> LoadModule perl_module /path/to/mod_perl.so
>
>
> Gerald
>
>
>
> ---------------------------------------------------------------------
> 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: Problems with setting EMBPERL_SESSION_HANDLER_CLASS

Posted by Gerald Richter <ri...@ecos.de>.
> 
> Added this in (httpd.conf):
> 
> LoadModule embperl_module
> /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Embperl/
> Embperl.so
> 
> Below is the error:
> [root@testweb root]# apachectl configtest Syntax error on 
> line 208 of /etc/httpd/conf/httpd.conf:
> Cannot load
> /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Embperl/
> Embperl.so into server:  
> /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Embperl/
> Embperl.so: undefined symbol: Perl_gv_stashpv
> 

Did you load mod_perl before Embperl ? e.g.

LoadModule perl_module /path/to/mod_perl.so


Gerald



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


Re: Problems with setting EMBPERL_SESSION_HANDLER_CLASS

Posted by "Ryan C. Spaulding" <rs...@mail.arc.nasa.gov>.
On Jan 11, 2005, at 11:53 PM, Michael Stepanov wrote:

> Ryan C. Spaulding wrote:
>> Hi Derrick,
> I suspect you've forgotten to load Embperl.so. You should
> add
> 	LoadModule embperl_module /some-dirs/Embperl.so
>
> before using special Embperl directives like  
> 	EMBPERL_SESSION_HANDLER_CLASS.

Added this in (httpd.conf):

LoadModule embperl_module  
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Embperl/ 
Embperl.so

Below is the error:
[root@testweb root]# apachectl configtest
Syntax error on line 208 of /etc/httpd/conf/httpd.conf:
Cannot load  
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Embperl/ 
Embperl.so into server:  
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Embperl/ 
Embperl.so: undefined symbol: Perl_gv_stashpv

Does this look familiar? It could be possible that I built it wrong,  
any ideas?

Thank you,

Ryan
>> <VirtualHost *:80>
>>     ServerAdmin root@testweb.nas.nasa.gov
>>     DocumentRoot /web/testweb/htdocs/
>>     ServerName testweb.nas.nasa.gov
>>         #<Directory "/web/testweb/htdocs/iCal">
>>         #       Dav on
>>         #</Directory>
>>         RewriteEngine On
>>         #RewriteRule ^/iCal(/?.*)   
>> https://testweb.nas.nasa.gov/iCal$1     [R,L]
>>         #SetEnv EMBPERL_SESSION_HANDLER_CLASS no
>>         PerlModule Embperl
>>         #EMBPERL_SESSION_HANDLER_CLASS no
>>         #SetEnv EMBPERL_SESSION_HANDLER_CLASS no
>>         <Directory "/web/testweb/htdocs/wags">
>>                 #PerlSetVar EMBPERL_SESSION_HANDLER_CLASS no
>>                 EMBPERL_SESSION_HANDLER_CLASS no
>>                 SetHandler perl-script
>>                 PerlHandler Embperl
>>                 AllowOverride FileInfo AuthConfig Indexes Limit  
>> Options
>>                 Options ExecCGI
>>         </Directory>
>> </VirtualHost>
>> I tried it in both the Directory and VirtualHost context and both  
>> produced the same error.
>> Below is the error message:
>> [root@testweb root]# apachectl configtest
>> Syntax error on line 1053 of /etc/httpd/conf/httpd.conf:
>> Invalid command 'EMBPERL_SESSION_HANDLER_CLASS', perhaps mis-spelled  
>> or defined by a module not included in the server configuration
>> Thank you,
>> Ryan
>> On Jan 11, 2005, at 12:55 PM, Derrick Spell wrote:
>>>
>>> On Jan 11, 2005, at 3:48 PM, Ryan C. Spaulding wrote:
>>>
>>>> Hi,
>>>>
>>>> I am currently running:
>>>>
>>>> Embperl-2.0rc2-1
>>>> httpd-2.0.46
>>>> on Redhat Enterprise AS 3.2-1
>>>>
>>>
>>>>         PerlSetEnv EMBPERL_SESSION_HANDLER_CLASS no
>>>>
>>>
>>> With Embperl2, you no longer need the PerlSetEnv.  Try taking this  
>>> out and see if it takes care of the error message, i.e. just:
>>>
>>> EMBPERL_SESSION_HANDLER_CLASS no
>>>
>>>
>>> -Derrick
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
>
>
> -- 
> Best regards,
> Michael Stepanov
> Perl/Linux Developer
> Francoudi & Stephanou Ltd
> Tel: +357 25-867154
> Email: michaelstepanov@francoudi.com
>
> ---------------------------------------------------------------------
> 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: Problems with setting EMBPERL_SESSION_HANDLER_CLASS

Posted by Michael Stepanov <mi...@francoudi.com>.
Ryan C. Spaulding wrote:
> Hi Derrick,
I suspect you've forgotten to load Embperl.so. You should
add
	LoadModule embperl_module /some-dirs/Embperl.so

before using special Embperl directives like 	EMBPERL_SESSION_HANDLER_CLASS.
> 
> <VirtualHost *:80>
>     ServerAdmin root@testweb.nas.nasa.gov
>     DocumentRoot /web/testweb/htdocs/
>     ServerName testweb.nas.nasa.gov
> 
>         #<Directory "/web/testweb/htdocs/iCal">
>         #       Dav on
>         #</Directory>
>         RewriteEngine On
>         #RewriteRule ^/iCal(/?.*)  https://testweb.nas.nasa.gov/iCal$1  
>    [R,L]
>         #SetEnv EMBPERL_SESSION_HANDLER_CLASS no
>         PerlModule Embperl
>         #EMBPERL_SESSION_HANDLER_CLASS no
>         #SetEnv EMBPERL_SESSION_HANDLER_CLASS no
>         <Directory "/web/testweb/htdocs/wags">
>                 #PerlSetVar EMBPERL_SESSION_HANDLER_CLASS no
>                 EMBPERL_SESSION_HANDLER_CLASS no
>                 SetHandler perl-script
>                 PerlHandler Embperl
>                 AllowOverride FileInfo AuthConfig Indexes Limit Options
>                 Options ExecCGI
>         </Directory>
> 
> </VirtualHost>
> 
> I tried it in both the Directory and VirtualHost context and both 
> produced the same error.
> 
> Below is the error message:
> 
> [root@testweb root]# apachectl configtest
> Syntax error on line 1053 of /etc/httpd/conf/httpd.conf:
> Invalid command 'EMBPERL_SESSION_HANDLER_CLASS', perhaps mis-spelled or 
> defined by a module not included in the server configuration
> 
> Thank you,
> 
> Ryan
> On Jan 11, 2005, at 12:55 PM, Derrick Spell wrote:
> 
>>
>> On Jan 11, 2005, at 3:48 PM, Ryan C. Spaulding wrote:
>>
>>> Hi,
>>>
>>> I am currently running:
>>>
>>> Embperl-2.0rc2-1
>>> httpd-2.0.46
>>> on Redhat Enterprise AS 3.2-1
>>>
>>
>>>         PerlSetEnv EMBPERL_SESSION_HANDLER_CLASS no
>>>
>>
>> With Embperl2, you no longer need the PerlSetEnv.  Try taking this out 
>> and see if it takes care of the error message, i.e. just:
>>
>> EMBPERL_SESSION_HANDLER_CLASS no
>>
>>
>> -Derrick
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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
> 
> 


-- 
Best regards,
Michael Stepanov
Perl/Linux Developer
Francoudi & Stephanou Ltd
Tel: +357 25-867154
Email: michaelstepanov@francoudi.com

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


Re: Problems with setting EMBPERL_SESSION_HANDLER_CLASS

Posted by "Ryan C. Spaulding" <rs...@mail.arc.nasa.gov>.
Hi Derrick,

<VirtualHost *:80>
     ServerAdmin root@testweb.nas.nasa.gov
     DocumentRoot /web/testweb/htdocs/
     ServerName testweb.nas.nasa.gov

         #<Directory "/web/testweb/htdocs/iCal">
         #       Dav on
         #</Directory>
         RewriteEngine On
         #RewriteRule ^/iCal(/?.*)  https://testweb.nas.nasa.gov/iCal$1  
    [R,L]
         #SetEnv EMBPERL_SESSION_HANDLER_CLASS no
         PerlModule Embperl
         #EMBPERL_SESSION_HANDLER_CLASS no
         #SetEnv EMBPERL_SESSION_HANDLER_CLASS no
         <Directory "/web/testweb/htdocs/wags">
                 #PerlSetVar EMBPERL_SESSION_HANDLER_CLASS no
                 EMBPERL_SESSION_HANDLER_CLASS no
                 SetHandler perl-script
                 PerlHandler Embperl
                 AllowOverride FileInfo AuthConfig Indexes Limit Options
                 Options ExecCGI
         </Directory>

</VirtualHost>

I tried it in both the Directory and VirtualHost context and both 
produced the same error.

Below is the error message:

[root@testweb root]# apachectl configtest
Syntax error on line 1053 of /etc/httpd/conf/httpd.conf:
Invalid command 'EMBPERL_SESSION_HANDLER_CLASS', perhaps mis-spelled or 
defined by a module not included in the server configuration

Thank you,

Ryan
On Jan 11, 2005, at 12:55 PM, Derrick Spell wrote:

>
> On Jan 11, 2005, at 3:48 PM, Ryan C. Spaulding wrote:
>
>> Hi,
>>
>> I am currently running:
>>
>> Embperl-2.0rc2-1
>> httpd-2.0.46
>> on Redhat Enterprise AS 3.2-1
>>
>
>>         PerlSetEnv EMBPERL_SESSION_HANDLER_CLASS no
>>
>
> With Embperl2, you no longer need the PerlSetEnv.  Try taking this out 
> and see if it takes care of the error message, i.e. just:
>
> EMBPERL_SESSION_HANDLER_CLASS no
>
>
> -Derrick
>
>
>
> ---------------------------------------------------------------------
> 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: Problems with setting EMBPERL_SESSION_HANDLER_CLASS

Posted by Derrick Spell <de...@cdmplus.com>.
On Jan 11, 2005, at 3:48 PM, Ryan C. Spaulding wrote:

> Hi,
>
> I am currently running:
>
> Embperl-2.0rc2-1
> httpd-2.0.46
> on Redhat Enterprise AS 3.2-1
>

>         PerlSetEnv EMBPERL_SESSION_HANDLER_CLASS no
>

With Embperl2, you no longer need the PerlSetEnv.  Try taking this out 
and see if it takes care of the error message, i.e. just:

EMBPERL_SESSION_HANDLER_CLASS no


-Derrick



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