You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Michael Ott <Zo...@NEFkom.net> on 2002/07/05 23:37:39 UTC
Problems with session
Hallo!
I have two problems. The first is a session-problem
Here my httpd.conf
<IfModule mod_perl.c>
# Alias /perl /var/www/perl
# <Directory /var/www/perl>
# SetHandler perl-script
# PerlHandler Apache::Registry
# Options +ExecCGI
# </Directory>
PerlSetEnv EMBPERL_DEBUG 2285
PerlSetEnv EMBPERL_LOG /var/log/httpd/embperl.log
PerlSetEnv EMBPERL_SESSION_CLASSES "MySQL Semaphore"
PerlSetEnv EMBPERL_SESSION_ARGS "DataSource=BDI:mysql:sessions UserName= Password="
PerlSetEnv EMBPERL_COOKIE_DOMAIN ".zolnott"
PerlSetEnv EMBPERL_COOKIE_PATH "/"
PerlSetEnv EMBPERL_COOKIE_EXPIRES '+10m'
PerlModule Embperl
#PerlModule Digest::MD5
#PerlModule MD5
Embperl_UseEnv on
<Location /embperl/>
SetHandler perl-script
#PerlHandler HTML::Embperl
PerlHandler Embperl
Options +ExecCGI
</Location>
</IfModule>
My apache crashes during start. When i comment out
EMBPERL_SESSION_CLASSES and EMBPERL_SESSION_ARGS, my apache works
Where is the problem
The second:
I create a dynamic table. But i shows always my <th> to, When i put the
following line in it:
[$ if($row == 0) $]
it works correct
-- snip --
[#[- @key = keys %ENV -]#]
<table border="0" cellspacing="2" cellpadding="2">
[$ if($row == 0) $]
<tr bgcolor="#b0b0b0">
<th width="5%">nr </th>
<th width="20%">Variable </th>
<th width="60%">Wert </th>
</tr>
[#[$ endif $]#]
<tr bgcolor="#e0e0e0">
<td align="center"><font size="-1">[+ $i = $row +]</font></td>
<td><font size="-1">[+ $key[$row] +]</font></td>
[-
$ENV{$key[$i]} =~ s/;/; /g;
print LOG "$ENV{$key[i]}\n" ;
-]
<td><font size="-1">[+ $ENV{$key[$i]} +]</font></td>
</tr>
</table>
-- snip --
Is this correct?
Tnx
CU
Michael
--
/---------------------------------------------------------------\
| Michael Ott, Glockenhofstr. 29a, 90478 Nuernberg |
| e-mail: ZolnOtt@NEFkom.net, Tel. +49 9 11 41 88 576 |
\---------------------------------------------------------------/
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Problems with session
Posted by Michael Ott <Zo...@NEFkom.net>.
On Sat, Jul 06, 2002 at 10:01:33PM -0400, David J. Mark wrote:
> change apache httpd.conf where:
>
> LogLevel warn
>
> to:
>
> LogLevel debug
I know it. But these are the two lines writting in my error_log:
[Sun Jul 7 09:45:00 2002] [info] removed PID file /var/run/httpd.pid
(pid=20371)
[Sun Jul 7 09:45:00 2002] [notice] caught SIGTERM, shutting down
CU
Michael
--
/---------------------------------------------------------------\
| Michael Ott, Glockenhofstr. 29a, 90478 Nuernberg |
| e-mail: ZolnOtt@NEFkom.net, Tel. +49 9 11 41 88 576 |
\---------------------------------------------------------------/
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Problems with session
Posted by "David J. Mark" <nr...@purefusion.com>.
change apache httpd.conf where:
LogLevel warn
to:
LogLevel debug
and you will be able to get more details from the apache logs.
DJM:>
On Sat, 2002-07-06 at 16:47, Michael Ott wrote:
> On Sat, Jul 06, 2002 at 08:32:20PM +0200, Gerald Richter wrote:
> > > PerlSetEnv EMBPERL_SESSION_ARGS "DataSource=BDI:mysql:sessions UserName=
> > Password="
> >
> > should be DBI:mysql... instead of BDI:mysql...
> >
> > >
> > > My apache crashes during start. When i comment out
> > > EMBPERL_SESSION_CLASSES and EMBPERL_SESSION_ARGS, my apache works
> > >
> >
> > The crash my because of it can't connect to the database, also an error
> > message would be better....
>
> I would send an error-message, when i get one. There is no one in my
> error_log and in my embperl.log. That's my great problem. I do not know,
> where i can change it
>
> CU
>
> Michael
>
> --
> /---------------------------------------------------------------\
> | Michael Ott, Glockenhofstr. 29a, 90478 Nuernberg |
> | e-mail: ZolnOtt@NEFkom.net, Tel. +49 9 11 41 88 576 |
> \---------------------------------------------------------------/
>
> ---------------------------------------------------------------------
> 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 session
Posted by Michael Ott <Zo...@NEFkom.net>.
On Sat, Jul 06, 2002 at 08:32:20PM +0200, Gerald Richter wrote:
> > PerlSetEnv EMBPERL_SESSION_ARGS "DataSource=BDI:mysql:sessions UserName=
> Password="
>
> should be DBI:mysql... instead of BDI:mysql...
>
> >
> > My apache crashes during start. When i comment out
> > EMBPERL_SESSION_CLASSES and EMBPERL_SESSION_ARGS, my apache works
> >
>
> The crash my because of it can't connect to the database, also an error
> message would be better....
I would send an error-message, when i get one. There is no one in my
error_log and in my embperl.log. That's my great problem. I do not know,
where i can change it
CU
Michael
--
/---------------------------------------------------------------\
| Michael Ott, Glockenhofstr. 29a, 90478 Nuernberg |
| e-mail: ZolnOtt@NEFkom.net, Tel. +49 9 11 41 88 576 |
\---------------------------------------------------------------/
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Problems with session
Posted by Gerald Richter <ri...@ecos.de>.
> PerlSetEnv EMBPERL_SESSION_ARGS "DataSource=BDI:mysql:sessions UserName=
Password="
should be DBI:mysql... instead of BDI:mysql...
>
> My apache crashes during start. When i comment out
> EMBPERL_SESSION_CLASSES and EMBPERL_SESSION_ARGS, my apache works
>
The crash my because of it can't connect to the database, also an error
message would be better....
>
> The second:
> I create a dynamic table. But i shows always my <th> to, When i put the
Embperl 2 has not implement <th> special processing yet, I plan to change
the table processing slightly for the next release so <th> and some more
will work again.
> following line in it:
> [$ if($row == 0) $]
> it works correct
>
That's the correct solution in Embperl 2 for now.
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