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

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 apache2mod_perl2Mason1.27 It might be that the FreeBSD ports build mechanism sets some environment variables or

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

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

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

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 apache2mod_perl2Mason1.27 It might be that the FreeBSD ports build mechanism sets some

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

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

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: 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 ::'

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:

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

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

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 sql

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

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_dbh =

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 to

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 sure.

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 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

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 Perl *0 =

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: 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

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 I

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 and

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

svn commit: r109376 - /perl/modperl/trunk/Changes /perl/modperl/trunk/Makefile.PL

2004-12-01 Thread stas
Author: stas Date: Wed Dec 1 13:07:20 2004 New Revision: 109376 URL: http://svn.apache.org/viewcvs?view=revrev=109376 Log: Dynamically prompt and add MP_INST_APACHE2=1 when installing on systems with mod_perl 1 preinstalled. Modified: perl/modperl/trunk/Changes

svn commit: r109383 - /perl/modperl/trunk/Changes /perl/modperl/trunk/Makefile.PL

2004-12-01 Thread stas
Author: stas Date: Wed Dec 1 14:00:15 2004 New Revision: 109383 URL: http://svn.apache.org/viewcvs?view=revrev=109383 Log: If none of MP_APXS, MP_AP_PREFIX and MP_USE_STATIC were specified when configuring Makefile.PL, we now prompt for APXS path first and only if that fails ask for

svn commit: r109401 - /perl/modperl/trunk/lib/Apache/Resource.pm /perl/modperl/trunk/t/conf/modperl_extra.pl /perl/modperl/trunk/t/modules/apache_resource.t /perl/modperl/trunk/todo/release

2004-12-01 Thread stas
Author: stas Date: Wed Dec 1 16:04:07 2004 New Revision: 109401 URL: http://svn.apache.org/viewcvs?view=revrev=109401 Log: port Apache::Resource Added: perl/modperl/trunk/lib/Apache/Resource.pm perl/modperl/trunk/t/modules/apache_resource.t Modified:

svn commit: r109408 - /perl/modperl/trunk/lib/Apache/Resource.pm

2004-12-01 Thread stas
Author: stas Date: Wed Dec 1 16:18:55 2004 New Revision: 109408 URL: http://svn.apache.org/viewcvs?view=revrev=109408 Log: ident-tab police is in Modified: perl/modperl/trunk/lib/Apache/Resource.pm Modified: perl/modperl/trunk/lib/Apache/Resource.pm Url: