Still the version you are using missing...

If you use mod_perl < 1.22 upgrade to newer version, it has problems with
DSO

If you have PHP also loaded, try without (see the mailinglist archive for
more info on PHP and mysql)

Gerald

-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     [EMAIL PROTECTED]         Voice:    +49 6133 925151
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------

----- Original Message -----
From: "Steve Wilder" <[EMAIL PROTECTED]>
To: "Embperl" <[EMAIL PROTECTED]>
Sent: Tuesday, November 28, 2000 4:21 PM
Subject: Re: mod_perl/Embperl/MySQL problem


>
>   I'm hearing rumblings that sound like PHP and mod_perl/mysql don't tend
to
> work very well together... I hope I can work around that.
>
>   Anyway, here is a pared down version of the Embperl File that is causing
> the Sigmentation fault (11).
>
> http://gmbp.m8rix.net/steve/test.phtml
> --------------------------------------------
> <html>
> <head>
> </head>
> <body>
> [-
> use DBI;
> DBI->trace(4, "dbitrace.log");
> -]
> <pre>
>
> [$ if (!($dbc_gmbp = DBI->connect("dbi:mysql:buypower", "testuser",
> "testuser",
> {PrintError => 1, RaiseError => 1}))) $]
>         DBI Connection failed: [+ $DBI::errstr +]
> [$ else $]
>         [- $sth = $dbc_gmbp->prepare("select * from role_desc"); -]
>         [- $sth->execute(); -]
>
>         [$ while (@aRow = $sth->fetchrow_array) $]
>                 [+ join("\t", @aRow) +]
>         [$ endwhile $]
>         [-
>         $sth->finish;
>         $dbc_gmbp->disconnect;
>         -]
> [$ endif $]
>
> </pre>
> ...End
> </html>
> --------------------------------------------
>
>   You can see the dbitrace.log at:
> http://gmbp.m8rix.net/steve/dbitrace.log -- I'm not worried about the
> "testuser" id.  It's only a temporary MySQL user ID.
>
> Here are some pieces of httpd.conf:
> --------------------------------------------
> PerlModule HTML::Embperl
> SetEnv EMBPERL_DEBUG 2285
> SetEnv EMBPERL_VIRTLOG /tmp/embperl.log
> PerlModule Apache::DBI
>
> # When Mod_perl is installed...
> <Location /perl-status>
>     AllowOverride None
>     SetHandler perl-script
>     PerlHandler Apache::Status
>     allow from all
>     PerlSendHeader On
> </Location>
>
> # Mod_perl default Location
> <Location /perl>
>     #AllowOverride None
>     SetHandler perl-script
>     PerlHandler Apache::Registry
>     Options ExecCGI
>     allow from all
>     # PerlSendHeader On
>     PerlSendHeader Off
> </Location>
>
> # EmbedPerl files...
> <Files *.phtml>
>   SetHandler  perl-script
>   PerlHandler HTML::Embperl
>   Options     ExecCGI
>   PerlSendHeader On
> </Files>
> AddType text/html .phtml
> --------------------------------------------
>
> You can take a look at http://gmbp.m8rix.net/perl-status
>
> No RPMs.  Everything compiled and installed.  I have mod_perl compiled as
a
> DSO.
>
> Any help would be appreciated...
>
> Steve Wilder
> Matrix Interactive, Inc.
> http://www.matrixinteractive.net/
> Desk: 248.814.8235
> Cell: 248.894.3128
> Fax : 248.814.8236
>


----------------------------------------------------------------------------
----


> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to