You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by ralf ullrich <ru...@web.de> on 2002/04/08 21:47:44 UTC
Problems seeting up Session
Hello,
I just set up session-tracking in Embperl 2.0b3, but when i restart apache, i get the following:
Syntax error on line 1513 of /etc/httpd/httpd.conf:
[Mon Apr 8 21:27:04 2002] Embperl.pm: [Mon Apr 8 21:27:04 2002] Cwd.pm: Cannot require Apache::Session::Store::DBIStore at /usr/lib/perl5/site_perl/5.6.0/i586-linux/HTML/Embperl/Session.pm line 204.
[Mon Apr 8 21:27:04 2002] Embperl.pm: Compilation failed in require at /usr/lib/perl5/site_perl/5.6.0/i586-linux/HTML/Embperl/Session.pm line 204.
But Apache::Session::Store::DBIStore is installed on my system, i had a look at it at /usr/lib/perl5/site_perl/5.6.0/Apache/Session/Store, without any success though ;-))
In httpd.conf I bring in Embperl::Sessions as follows:
#Embperl-session
PerlSetEnv EMBPERL_DEBUG 1
PerlSetEnv EMBPERL_LOG /tmp/embperl.log
PerlSetEnv EMBPERL_SESSION_CLASSES "DBIStore NullLocker"
PerlSetEnv EMBPERL_SESSION_ARGS "DataSource=DBI:mysql:sessions UserName=user Password=secret"
PerlSetEnv EMBPERL_COOKIE_DOMAIN "yak"
PerlSetEnv EMBPERL_COOKIE_EXPIRES 'Monday, 27-Aug-2002 10:30:00 GMT'
PerlModule HTML::Embperl
What am I doing wrong?
Any help is appreciated a lot.
Ralf
Re: Problems seeting up Session
Posted by Gerald Richter <ri...@ecos.de>.
Hello,
>I just set up session-tracking in Embperl 2.0b3, but when i restart apache,
i get the following:
>
>Syntax error on line 1513 of /etc/httpd/httpd.conf:
>[Mon Apr 8 21:27:04 2002] Embperl.pm: [Mon Apr 8 21:27:04 2002] Cwd.pm:
Cannot require >Apache::Session::Store::DBIStore at
/usr/lib/perl5/site_perl/5.6.0/i586-linux/HTML/Embperl/Session.pm line 204.
>[Mon Apr 8 21:27:04 2002] Embperl.pm: Compilation failed in require at
/usr/lib/perl5/site_perl/5.6.0/i586->linux/HTML/Embperl/Session.pm line 204.
Looks like a mix of Apache::Session 1.0 and 1.5
> But Apache::Session::Store::DBIStore is installed on my system, i had a
look at it >at /usr/lib/perl5/site_perl/5.6.0/Apache/Session/Store, without
any success though ;-))
There is either a Apache::Session::DBIStore (in 1.00) or
Apache::Session::Store::DBI (in 1.54)
Upgrade at least to Apache::Session 1.54 and change
>PerlSetEnv EMBPERL_SESSION_CLASSES "DBIStore NullLocker"
to
PerlSetEnv EMBPERL_SESSION_CLASSES "MySQL Null"
Since Embperl 2.0b3 is really old (and has known bugs), I recommend to
upgrade to Embperl 2.0b7 and install Apache::SessionX. In this case the
configuration will take place when Makefile.PL of Apache::SessionX runs and
you should remove the EMBPERL_SESSION_CLASSES and EMBPERL_SESSION_ARGS line
from your httpd.conf
Gerald
-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 925131
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org