You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Matt Sergeant <ma...@sergeant.org> on 2000/02/17 15:01:34 UTC

Possible addition to the guide

In the section on KeepAlives, it's probably worth adding a note about how
its beneficial to use KeepAlive if you're using SSL, because the expense of
re-establishing SSL connections is much higher than ordinary connections.

-- 
<Matt/>

Details: FastNet Software Ltd - XML, Perl, Databases.
Tagline: High Performance Web Solutions
Web Sites: http://come.to/fastnet http://sergeant.org
Available for Consultancy, Contracts and Training.

Re: Possible addition to the guide

Posted by Gunther Birznieks <gu...@extropia.com>.
On Mon, 21 Feb 2000, Vivek Khera wrote:

> >>>>> "SB" == Stas Bekman <sb...@iname.com> writes:
> 
> SB> Can someone post the details of the configuration, to make SSL server
> SB> cache those ids? 
> 
> That would be server-dependent.  I think stronghold does this by
> default configuration.  Can't say about any others.
> 
My understanding is that Ralf has had this for the last half year+ in
mod_ssl. I think it was first implemented using a dbm file for lookup
amongst the processes, and then more recently with mmap/ipc/sharedmem type
facilities. But don't quiz me on the details...




Re: Possible addition to the guide

Posted by Vivek Khera <kh...@kciLink.com>.
>>>>> "SB" == Stas Bekman <sb...@iname.com> writes:

SB> Can someone post the details of the configuration, to make SSL server
SB> cache those ids? 

That would be server-dependent.  I think stronghold does this by
default configuration.  Can't say about any others.

Re: Possible addition to the guide

Posted by Stas Bekman <sb...@iname.com>.
> >>>>> "GB" == Gunther Birznieks <gu...@extropia.com> writes:
> 
> GB> It shouldn't be that much higher? Once the browser has gotten the
> GB> symmetric session id, it will be reused among subsequent HTTPS
> GB> requests instead of doing a key exchange all over again.
> 
> You just need to make sure your SSL server caches those ids.
> When this was implemented in stronghold, the performance really picked
> up...

Can someone post the details of the configuration, to make SSL server
cache those ids? 

Thank you!

_______________________________________________________________________
Stas Bekman    mailto:sbekman@iname.com      http://www.stason.org/stas
Perl,CGI,Apache,Linux,Web,Java,PC     http://www.stason.org/stas/TULARC
perl.apache.org    modperl.sourcegarden.org   perlmonth.com    perl.org
single o-> + single o-+ = singlesheaven    http://www.singlesheaven.com



Re: Possible addition to the guide

Posted by Vivek Khera <kh...@kciLink.com>.
>>>>> "GB" == Gunther Birznieks <gu...@extropia.com> writes:

GB> It shouldn't be that much higher? Once the browser has gotten the
GB> symmetric session id, it will be reused among subsequent HTTPS
GB> requests instead of doing a key exchange all over again.

You just need to make sure your SSL server caches those ids.
When this was implemented in stronghold, the performance really picked
up...

Re: Can't locate loadable object for module Mysql

Posted by Stas Bekman <sb...@iname.com>.
> I'm getting this error from some code that is attempting to connect to
> mysql via DBI. The same snippet of code works fine from the command. I did
> not install any of the software, but given that this works form the
> command line I tend to believe that mysql and the perl DBI module are
> installed and working properly. this leaves the apache / mod_perl
> configuration I guess?
> 
> I can give more specifics about the versions if need be, but it's a Red
> Hat Linux 6.0 box with apache_1.3.11, mod_perl-1.19 and mysql-3.22.30
> 
> This is my first experience with mod_perl, so please be gentle :)
> thanks
> charles
> 
> The exact error
> install_driver(mysql) failed: Can't locate
>             loadable object for module Mysql in @INC

http://perl.apache.org/guide/troubleshooting.html#Can_t_locate_loadable_object_for

>             (@INC contains: /usr/local/apache/lib
>             /usr/local/lib/perl5/5.00503/i686-linux
>             /usr/local/lib/perl5/5.00503
>             /usr/local/lib/perl5/site_perl/5.005/i686-linux
>             /usr/local/lib/perl5/site_perl/5.005 .
>             /usr/local/apache/ /usr/local/apache/lib/perl)
>             at (eval 27) line 3 Perhaps a module that
>             DBD::mysql requires hasn't been fully
>             installed at /usr/local/apache/lib/MP3/DB.pm
>             line 29 
> 
> 
> The command line stuff
> 
> #less test.pl
> #!/usr/local/bin/perl -w
> 
> use strict;
> use DBI;
> 
> my $dsn = 'DBI:mysql:MP3:host=myhost';
> my $user = 'user';
> my $password = 'pssst';
> my $db  = DBI->connect($dsn, $user, $password, { RaiseError => 1 });
> 
> ($db) ? print "db connection ok\n" : print "db connection bad\n";
> $db->disconnect;
> 
> # ./test.pl
> db connection ok
> 
> # perl -e 'print "@INC"'
> /usr/local/lib/perl5/5.00503/i686-linux 
> /usr/local/lib/perl5/5.00503
> /usr/local/lib/perl5/site_perl/5.005/i686-linux
> /usr/local/lib/perl5/site_perl/5.005 
> .
> 
> 
> 



_______________________________________________________________________
Stas Bekman    mailto:sbekman@iname.com      http://www.stason.org/stas
Perl,CGI,Apache,Linux,Web,Java,PC     http://www.stason.org/stas/TULARC
perl.apache.org    modperl.sourcegarden.org   perlmonth.com    perl.org
single o-> + single o-+ = singlesheaven    http://www.singlesheaven.com


Can't locate loadable object for module Mysql

Posted by Charles Galpin <cg...@lighthouse-software.com>.
I'm getting this error from some code that is attempting to connect to
mysql via DBI. The same snippet of code works fine from the command. I did
not install any of the software, but given that this works form the
command line I tend to believe that mysql and the perl DBI module are
installed and working properly. this leaves the apache / mod_perl
configuration I guess?

I can give more specifics about the versions if need be, but it's a Red
Hat Linux 6.0 box with apache_1.3.11, mod_perl-1.19 and mysql-3.22.30

This is my first experience with mod_perl, so please be gentle :)
thanks
charles

The exact error
install_driver(mysql) failed: Can't locate
            loadable object for module Mysql in @INC
            (@INC contains: /usr/local/apache/lib
            /usr/local/lib/perl5/5.00503/i686-linux
            /usr/local/lib/perl5/5.00503
            /usr/local/lib/perl5/site_perl/5.005/i686-linux
            /usr/local/lib/perl5/site_perl/5.005 .
            /usr/local/apache/ /usr/local/apache/lib/perl)
            at (eval 27) line 3 Perhaps a module that
            DBD::mysql requires hasn't been fully
            installed at /usr/local/apache/lib/MP3/DB.pm
            line 29 


The command line stuff

#less test.pl
#!/usr/local/bin/perl -w

use strict;
use DBI;

my $dsn = 'DBI:mysql:MP3:host=myhost';
my $user = 'user';
my $password = 'pssst';
my $db  = DBI->connect($dsn, $user, $password, { RaiseError => 1 });

($db) ? print "db connection ok\n" : print "db connection bad\n";
$db->disconnect;

# ./test.pl
db connection ok

# perl -e 'print "@INC"'
/usr/local/lib/perl5/5.00503/i686-linux 
/usr/local/lib/perl5/5.00503
/usr/local/lib/perl5/site_perl/5.005/i686-linux
/usr/local/lib/perl5/site_perl/5.005 
.



Re: Possible addition to the guide

Posted by Gunther Birznieks <gu...@extropia.com>.
It shouldn't be that much higher? Once the browser has gotten the symmetric
session id, it will be reused among subsequent HTTPS requests instead of doing
a key exchange all over again.

Matt Sergeant wrote:

> In the section on KeepAlives, it's probably worth adding a note about how
> its beneficial to use KeepAlive if you're using SSL, because the expense of
> re-establishing SSL connections is much higher than ordinary connections.
>
> --
> <Matt/>
>
> Details: FastNet Software Ltd - XML, Perl, Databases.
> Tagline: High Performance Web Solutions
> Web Sites: http://come.to/fastnet http://sergeant.org
> Available for Consultancy, Contracts and Training.