You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Christian Gilmore <Ch...@tivoli.com> on 2000/07/25 19:16:51 UTC

Session errors

Hi. On a recent restart of a service that previously had been runnning,
the following error came up:

Bareword "Apache::Session::NEW" not allowed while "strict subs" in use at
/opt/gnu/depot/perl5.004_04/lib/site_perl/HTML/Embperl/Session.pm line
105.
Syntax error on line 853 of
/opt/apache/ext-sol-cgi.tivoli.com/80/conf/httpd.conf:
BEGIN not safe after errors--compilation aborted at
/opt/gnu/depot/perl5.004_04/lib/site_perl/HTML/Embperl/Session.pm line
105.

system /opt/apache/ext-sol-cgi.tivoli.com/80/bin/httpd -f
/opt/apache/ext-sol-cgi.tivoli.com/80/conf/httpd.conf failed: 256 at
../bin/start line 42.

I'm running apache_1.3.9/mod_perl_1.19/Embperl_1.2.1. Upgrading isn't an
option until I understand why this problem occurred in the first place.

Here's the configuration of importance in httpd.conf:

PerlSetEnv EMBPERL_SESSION_CLASSES "DBIStore SysVSemaphoreLocker"
PerlSetEnv EMBPERL_SESSION_ARGS "DataSource=dbi:mysql:sessions
UserName=root NSe
ms=8"

PerlModule Apache::AuthenDBI
PerlModule HTML::Embperl
PerlRequire conf/startup.pl

startup.pl has the following:

$Apache::Session::SysVSemaphoreLocker::nsems = 8;

1;

I'm hoping this is something silly that can be swatted away quickly. Any
ideas?

Regards,
Christian

-----------------
Christian Gilmore
Infrastructure & Tools Team Lead
Web & Multimedia Development
Tivoli Systems, Inc.


RE: Session errors

Posted by Gerald Richter <ri...@ecos.de>.
> 
> Here's the configuration of importance in httpd.conf:
> 
> PerlSetEnv EMBPERL_SESSION_CLASSES "DBIStore SysVSemaphoreLocker"
> PerlSetEnv EMBPERL_SESSION_ARGS "DataSource=dbi:mysql:sessions
> UserName=root NSe
> ms=8"
> 

Try to insert as first module that loads:

PerlModule Apache::Session 

> PerlModule Apache::AuthenDBI
> PerlModule HTML::Embperl
> PerlRequire conf/startup.pl
> 

Does this change anything?

Gerald