Re: [error] Can't locate object method "bootstrap" via package "DBI"

2004-12-01 Thread Randy Kobes
On Wed, 1 Dec 2004, Ray Chuan wrote: > yes, the printenv.pl script works fine, and the CGI module > works fine too, although I have to create a CGI object: That's really strange then that you can use other modules that don't have an xs component within ModPerl::Registry, but those that do have su

Re: $0 problem with mp1

2004-12-01 Thread Pratik
> I've never used that under mp1, did it actually ever work? > Nop, it didn't work. > I can see some experimental code which is enabled when compiled with > -DPERL_TIE_SCRIPTNAME. but I won't have the time to look at it, until > after modperl2 is released. > > Feel free to look through the code

Re: the scripts under mod_perl are running as mod_cgi

2004-12-01 Thread Stas Bekman
SHAHNAWAZ OSMAN wrote: Hi Stas, Thank you for your speedy response. Now, when I try to run the script (http://www.mydoamin.com/perl/test.pl) I get a "404 - file not found page" and get the following message in the error log. "/usr/local/httpd_perl/cgi-bin/test.pl not found or unable to stat"

Re: the scripts under mod_perl are running as mod_cgi

2004-12-01 Thread SHAHNAWAZ OSMAN
Hi Stas, Thank you for your speedy response. Now, when I try to run the script (http://www.mydoamin.com/perl/test.pl) I get a "404 - file not found page" and get the following message in the error log. "/usr/local/httpd_perl/cgi-bin/test.pl not found or unable to stat" I was g

Re: END block weird behavior

2004-12-01 Thread Stas Bekman
Faisal Nasim wrote: Okay here's a demonstration: The test script is: #!/usr/local/bin/perl use strict; use vars qw ($mydata); $mydata = 'woodooeer'; my $data = 'woodoo'; my $data2 = 'dingdong'; print "Content-type: text/plain\n\n"; print scalar localtime () , "\n\n"; print `cat /tmp/modperltest.txt

Re: $0 problem with mp1

2004-12-01 Thread Stas Bekman
Pratik wrote: Hi ! I am using Apache/1.3.33 and Mod-Perl 1.29. I have following httpd.conf file. ServerRoot "/home/pvnaik/lab/mp1" Timeout 300 KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 15 DocumentRoot "/home/pvnaik/lab/mp1/htdocs" ErrorLog logs/error_log Port 50505 *0 = "MyApache

Re: DBI persistence problem

2004-12-01 Thread Richard N. Fogle
Malcom, Thank you for your response..  It does sound like a possibility that the script isn't all the way into completion as we have query->process result->query->process result->query->disconnect (figuratively) scripts.  We were thinking of using SQLRelay as a connection pool and concentrator

Re: DBI persistence problem

2004-12-01 Thread Malcolm J Harwood
On Wednesday 1 December 2004 08:26 pm, Richard N. Fogle wrote: > 1. We disabled Apache::DBI - the server can generate thousands of > queries per second and this feature literally made the CPU catch fire. Odd. Normally (in my limited experience) it has the reverse effect as you aren't creating a

Re: DBI persistence problem

2004-12-01 Thread Richard N. Fogle
Malcom and Perrin, Thank you for your quick replies! 1.  We disabled Apache::DBI - the server can generate thousands of queries per second and this feature literally made the CPU catch fire. 2.  Understood about placing the connect strings in startup.PL.  That's why we wrote the list first :

Re: DBI persistence problem

2004-12-01 Thread Perrin Harkins
On Wed, 2004-12-01 at 19:00 -0600, Richard N. Fogle wrote: > The problem we're having is each time the CGI is called it seems to > make a persistent connection to the database despite the fact that we > have a $dbh->disconnect(); at the end of the code. Are you using Apache::DBI anywhere? Make su

Re: DBI persistence problem

2004-12-01 Thread Malcolm J Harwood
On Wednesday 1 December 2004 08:00 pm, Richard N. Fogle wrote: > Basically, we have one MySQL cluster setup for reads and the other > cluster for writes - the reads cluster alternates between master and > slave. This works fine. The problem we're having is each time the CGI > is called it seems

DBI persistence problem

2004-12-01 Thread Richard N. Fogle
Hello, We're having quite the time with CGIs being called in mod_perl, listed below is an example of the DBI connection code: SNIP use DBI my $write_dbh = DBI->connect("DBI:mysql:writeDB:192.168.1.10","foouser","foopass") || die $DBI::errstr; my $read_dbh; if ( int(rand(4)) ) { $read_

Re: mod_perl2 on my FreeBSD

2004-12-01 Thread Stas Bekman
Lars Eggert wrote: Stas Bekman wrote: Most likely cglee was running gmake, while you Lars -- make, which makes a big diffference (but as stated in the other reply it should have been working with make too). I'll try that. If using gmake fixes it, that's an easy change to the port Makefile. I'd

Re: mod_perl and 64-bit linux

2004-12-01 Thread Fred Moyer
> I am considering upgrading to a 64-bit Opteron-based machine running RH > linux. Using perl 5.8, apache 2, mod_perl. Has anyone run into any > problems running their mod_perl applications on a 64-bit box with a > 64-bit linux OS? I ran a mission critical web-app using Apache2/mod_perl2, and an s

Re: mod_perl2 on my FreeBSD

2004-12-01 Thread Lars Eggert
Stas Bekman wrote: Most likely cglee was running gmake, while you Lars -- make, which makes a big diffference (but as stated in the other reply it should have been working with make too). I'll try that. If using gmake fixes it, that's an easy change to the port Makefile. In the future please al

Re: mod_perl and 64-bit linux

2004-12-01 Thread Charles P. Frank
Hi Mathew, Some time ago I posted a message about libapreq failing on my 64bit architecture. http://www.gossamer-threads.com/lists/modperl/modperl/74261?search_string=x86_64;#74261 All other modules that I use seem to work fine. I was told that there is a separate libapreq mailing list. I stil

mod_perl and 64-bit linux

2004-12-01 Thread Matthew Berk
I am considering upgrading to a 64-bit Opteron-based machine running RH linux. Using perl 5.8, apache 2, mod_perl. Has anyone run into any problems running their mod_perl applications on a 64-bit box with a 64-bit linux OS? Thanks in advance, Matthew -- Report problems: http://perl.apache.org/b

Re: mod_perl2 on my FreeBSD

2004-12-01 Thread cglee
> It might be that the FreeBSD ports build mechanism sets some environment variables or does some other things that are different from building from source.   Check your Makefile in the directory mod_perl-1.99_17/xs/APR/aprext.   $ cat ./Makefile... dynamic :: # End.$   you must see the 'dynamic :

Fwd: [ANNOUNCE] Perl 5.8.6 released

2004-12-01 Thread Stas Bekman
++ | Perl 5.8.6 released| | posted by rafael on Tuesday November 30, @06:42 (Releases) | | http://use.perl.org/article.pl?sid=04/11/30/1125252 | +--

Re: pnotes

2004-12-01 Thread Perrin Harkins
Arshavir Grigorian wrote: I have module called Application which handles all the requests to the site (except for images, etc) and then dispatches the request to a different module based on the $r->path_info(). Apache::Dispatch could do this for you if you like. You could also just use httpd.co

Re: Graceful restart of Apache multiple times

2004-12-01 Thread Stas Bekman
pradeep kumar wrote: Hi, If Apache is gracefully rastarted multiplae times it dumps core. To reproduce this problem there is a script that can be run which sends a kill -HUP to httpd every 20 secs. pradeep, your report is incomplete. Please read: http://perl.apache.org/bugs/ and try again. The s

Re: the scripts under mod_perl are running as mod_cgi

2004-12-01 Thread Stas Bekman
SHAHNAWAZ OSMAN wrote: Hi! I have been trying to configure two servers under Linux (CentOS-3.3) - one vanilla (frontend) & one mod_perl (backend) enabled server with a proxy setting in the front end. The frontend server is on port: 80 and the backend is on port 8000 and they are both in the same IP

Re: mod_perl2 on my FreeBSD

2004-12-01 Thread Stas Bekman
Lars Eggert wrote: cglee wrote: on my FreeBSD 5.3 stabe, perl 5.8.5 from port, Apache 2.0.52 from source, mod_perl 1.99_17 from source ... $ make test All tests successful and Web service looks good with apache2&mod_perl2&Mason1.27 It might be that the FreeBSD ports build mechanism sets some env

Re: FreeBSD mod_perl2 patches

2004-12-01 Thread Stas Bekman
Lars Eggert wrote: Stas Bekman wrote: Lars Eggert wrote: patch-ab is required to build, otherwise I see the following error during make: Running Mkbootstrap for APR::PerlIO () chmod 644 PerlIO.bs rm -f ../../../blib/arch/Apache2/auto/APR/PerlIO/PerlIO.so LD_RUN_PATH="" cc -shared -L/usr/local/l

Graceful restart of Apache multiple times

2004-12-01 Thread pradeep kumar
Hi, If Apache is gracefully rastarted multiplae times it dumps core. To reproduce this problem there is a script that can be run which sends a kill -HUP to httpd every 20 secs. The scpirt is #!/usr/bin/sh COUNT=1 while true do kill -HUP `cat "path_to_httpd.pid/httpd.pid"` date "+DATE: %m/%d/%y

the scripts under mod_perl are running as mod_cgi

2004-12-01 Thread SHAHNAWAZ OSMAN
Hi! I have been trying to configure two servers under Linux (CentOS-3.3) - one vanilla (frontend) & one mod_perl (backend) enabled server with a proxy setting in the front end. The frontend server is on port: 80 and the backend is on port 8000 and they are both in the same IP. The installation seem

Re: mod_perl2 on my FreeBSD

2004-12-01 Thread Lars Eggert
cglee wrote: on my FreeBSD 5.3 stabe, perl 5.8.5 from port, Apache 2.0.52 from source, mod_perl 1.99_17 from source ... $ make test All tests successful and Web service looks good with apache2&mod_perl2&Mason1.27 It might be that the FreeBSD ports build mechanism sets some environment variables o

Re: FreeBSD mod_perl2 patches

2004-12-01 Thread Lars Eggert
Stas Bekman wrote: Lars Eggert wrote: patch-ab is required to build, otherwise I see the following error during make: Running Mkbootstrap for APR::PerlIO () chmod 644 PerlIO.bs rm -f ../../../blib/arch/Apache2/auto/APR/PerlIO/PerlIO.so LD_RUN_PATH="" cc -shared -L/usr/local/lib PerlIO.o modper