you may try to preload DBI and DBD::mysql. In your httpd.conf
PerlModule DBI
PerlModule DBD::mysql
this helps sometimes.
You may also link mod_perl staticly into Apache and load mod_php as dynamic
at runtime
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: "Antti Linno" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 11, 2000 10:07 AM
Subject: Embperl+mysql?
> Hi.
> I installed Apache_1.3.12, mod_perl-1.23 flexible way, also PHP4 as
> module. I am using mysql-3.22.32(from source) and postgresql. Also perl
> modules DBI-1.14, Msql-Mysql-modules-1.2214 . Also HTML-Embperl-1.2.1 .
> Apache started nice, php test phpinfo() ran too.
> As its my job to write scripts under Embperl, I
> tested Embperl without database connections, everything worked nice.
> Then I made small script to test database connection:
> <html>
> <body>
> [-use DBI;
> $dbh=DBI->connect("DBI:mysql:database=test","root","");
> $kuupaev=($dbh->selectall_arrayref(qq{
> select now() }))->[0][0];
> $dbh->disconnect;-]
> No mingi ilge jama <BR>
> [+ $kuupaev +]
> </body>
> </html>
> I got an empty document(errormessage). I included that error from
> errorlog(below).
> With postgres,it worked nicely. Tried different Msql-mysql-modules, but
> without success. When I built mod_perl statically with Apache(the first
> step in installation guide :), script worked nice.
> Btw, I tried it as pure perl script(removed all unnessecary tags),
> DBI:mysql worked nicely and gave right answers.
> So, it comes to my mind that there could be one of five problems:
> Broken
> 1. Apache_1.3.12
> 2. mod_perl-1.23
> 3. Msql-Mysql-modules-1.22xx????
> 4. DBI-1.14
> 5. mysql-3.22.32
>
> Error log contains only:
> [Sat Sep 9 21:49:01 2000]
> [notice] child pid 25528 exit signalSegmentation fault (11)
>
> Any help?
> A.
>
>
>
>
> ---------------------------------------------------------------------
> 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]