Re: Trying To Come Up Under PerlRun

2007-11-21 Thread CraigT
That was it Perrin. Thanks alot.I appreciate the help. Craig Perrin Harkins wrote: > > On Nov 21, 2007 2:59 PM, CraigT <[EMAIL PROTECTED]> wrote: >> > Below is the way I bring the parameters across in the programs of the 2 >> > links I listed in the original post.. >> > >> > my $page

Re: [mp 2.0.4-dev] mod_perl segfaults httpd with simple CGI redirect

2007-11-21 Thread Perrin Harkins
On Nov 21, 2007 3:26 PM, David Eisner <[EMAIL PROTECTED]> wrote: > Second question: Is it a bug in mod_perl if referencing an old > Apache2::RequestRec object segfaults the server? It's certainly not desired behavior, but it's a tough thing to avoid. That code is providing access to Apache C struc

Re: [mp 2.0.4-dev] mod_perl segfaults httpd with simple CGI redirect

2007-11-21 Thread David Eisner
On Nov 21, 2007 12:19 PM, Perrin Harkins <[EMAIL PROTECTED]> wrote: > You need to pass $q to your sub every time. You can't just access it > directly from the enclosing scope. Thanks for the pointer. I'm reading Section 6.2 of the Practical mod_perl book now and I see what's going on. And I n

Re: Trying To Come Up Under PerlRun

2007-11-21 Thread Perrin Harkins
On Nov 21, 2007 2:59 PM, CraigT <[EMAIL PROTECTED]> wrote: > > Below is the way I bring the parameters across in the programs of the 2 > > links I listed in the original post.. > > > > my $page = new CGI; Make sure you have CGI.pm version 3.29. If you don't, upgrade it. - Perrin

Re: Trying To Come Up Under PerlRun

2007-11-21 Thread CraigT
Craig Tussey wrote: > > > Here is the value of $ENV{MOD_PERL} = 'mod_perl/2.0.2'. And it prints > this way in both links. > > Below is the way I bring the parameters across in the programs of the 2 > links I listed in the original post.. > > my $page = new CGI; > > 1st link - ss.cgi > $gov

Re: Trying To Come Up Under PerlRun

2007-11-21 Thread Perrin Harkins
On Nov 21, 2007 1:47 PM, CraigT <[EMAIL PROTECTED]> wrote: > > Since the > > last time, I reworked all subroutines into stand-alone objects, as you > > suggested would be necessary to ever get to mod_perl. It was a good > > exercise. Glad to hear it. > > ***I verify the links using a printing r

Re: Trying To Come Up Under PerlRun

2007-11-21 Thread CraigT
Perrin Harkins wrote: > > Hi Craig, > > Still having problems with this? I remember you trying to get this > going in July. > > ***Thanks for responding again Perrin. Yes I'm still at it. Since the > last time, I reworked all subroutines into stand-alone objects, as you > suggested would b

Re: Trying To Come Up Under PerlRun

2007-11-21 Thread Perrin Harkins
Hi Craig, Still having problems with this? I remember you trying to get this going in July. > The entry page comes up fine. Ok, is that a static file, or is it served by PerlRun? > The first link I try (any link) works fine. > All links after the first fail. Can you verify that your perl code

Re: GATEWAY_INTERFACE CGI-Perl

2007-11-21 Thread Malcolm
On Wednesday 21 November 2007 6:21:57 am Neil Shephard wrote: > Alias /cgi-perl /usr/local/apache/chi-perl/ > Should that be: Alias /cgi-perl /usr/local/apache/cgi-perl/ rather than Alias /cgi-perl /usr/local/apache/chi-perl/ ? (typo in c[gh]i-perl?) > 3. The book indicates th

Re: [mp 2.0.4-dev] mod_perl segfaults httpd with simple CGI redirect

2007-11-21 Thread Perrin Harkins
On Nov 21, 2007 9:54 AM, David Eisner <[EMAIL PROTECTED]> wrote: > httpd segfaults when I access this CGI, on the second or subsequent > access (but not the first) after restarting the server: > > use CGI qw/:standard/; > use strict; > > my $q = CGI->new(); > handle_response(); >

Re: GATEWAY_INTERFACE CGI-Perl

2007-11-21 Thread Neil Shephard
On Nov 21, 2007 11:21 AM, Neil Shephard <[EMAIL PROTECTED]> wrote: > So, finally on to my questions. > > 1. Is PerlResponseHandler under mod_perl 2.0 the equivalent of > PerlHandler under mod_perl 1.1? > > I found details of renames from v1.1 to 2.0 at > http://perl.apache.org/docs/2.0/rename.html

[mp 2.0.4-dev] mod_perl segfaults httpd with simple CGI redirect

2007-11-21 Thread David Eisner
-8<-- Start Bug Report 8<-- 1. Problem Description: [System: Solaris 9, apache-2.0.61, Perl 5.8.8, mod_perl 2.0.3, and also mod_perl 2.0.4-dev (from svn checkout yesterday). httpd segfaults when I access this CGI, on the second or subsequent access (but not

Trying To Come Up Under PerlRun

2007-11-21 Thread CraigT
I'm having trouble coming up under perlrun. I'm on a Windows XP Home platform running Apache/2.0.49 (Win32) PHP/5.1.4 mod_perl/2.0.2 Perl/v5.8.3. The entry page comes up fine. The first link I try (any link) works fine. All links after the first fail. I have confirmed that no parameters get p

GATEWAY_INTERFACE CGI-Perl

2007-11-21 Thread Neil Shephard
Hi, I'm just starting out with mod_perl and am using the book "MySQL and Perl for the Web" by Paul DuBois for guiding me through some of the intricacies. The book is a bit old (2002) and was written for mod_perl v1 and I've a few questions about the differences between that and the current versio