Re: PerlInterpMaxRequests

2005-09-21 Thread Fabian Kreitner
Thank you for your suggestion. Unfortunately MaxRequestsPerChild cannot be set in a virtual host. Setting it outside and removing PerlOptions +Parent didnt change the behaviour either. Philip M. Gollucci wrote: Fabian Kreitner wrote: PerlInterpStart 1 PerlInterpMax 1 Per

'PL_memory_wrap' error when using PAR + 5.8.7

2005-09-21 Thread Foo Ji-Haw
Hi all,   I wonder if you have the same problem as me when trying to use PAR to create a standalone .EXE program. I'm using the latest PAR with ActiveState perl 5.8.7.   When I try to run the .EXE program, a dialog box pops out and show m the 'PL_memory_wrap' error. I've just upgraded my Perl

Looking to hire MP guru for setup/config

2005-09-21 Thread Patrick Kennedy
My techie set-up MP 1.99 on a new server running Apache 2 but things just aren't working properly. Unfortunately he had to go out of town for awhile, so I am looking to hire a MP "guru" to finishing the setup/config. I assume it wouldn't take you more than 30-60 minutes to finish, and I'm willing

Re: how to avoid the caching of the executed perl file

2005-09-21 Thread Aliet Santiesteban Sifontes
The problem was solved using ModPerl::PerlRun Thank's a lot Malcolm J Harwood wrote: On Wednesday 21 September 2005 08:10 pm, Aliet Santiesteban Sifontes wrote: On Wednesday 21 September 2005 07:09 pm, Aliet Santiesteban Sifontes wrote: Hi list, I have a problem with a .pl scr

Re: how to avoid the caching of the executed perl file

2005-09-21 Thread Malcolm J Harwood
On Wednesday 21 September 2005 08:10 pm, Aliet Santiesteban Sifontes wrote: > > On Wednesday 21 September 2005 07:09 pm, Aliet Santiesteban Sifontes wrote: > >> Hi list, I have a problem with a .pl script, the scripts is executed in > >> the first request, and it's been cached by the server, I c

Re: MP2 version of Apache->request

2005-09-21 Thread Geoffrey Young
Boysenberry Payne wrote: > I used to have: > > my $r = Apache->request(); > $r->content_type("text/html"); > $r->send_http_header; > > It seems the MP2 syntax is now: > > $r = Apache2::RequestRec->new($c); nope. try my $r = Apache2::RequestUtil->request; > $r->content_type("text/html");

Re: how to avoid the caching of the executed perl file

2005-09-21 Thread Aliet Santiesteban Sifontes
Apache-2.0.54, mod-perl-2.0.1, ActivePerl 5.8.7.813, windows 2003 Enterprise Server. Apache Config: LoadFile "D:/Perl/bin/perl58.dll" LoadModule perl_module modules/mod_perl.so PerlRequire "D:/Apache2/conf/includes.pl" PerlSwitches -wT Alias /intercompras/cgi-bin/ "D:/Apache2/htdocs/intercompras/

MP2 version of Apache->request

2005-09-21 Thread Boysenberry Payne
I used to have: my $r = Apache->request(); $r->content_type("text/html"); $r->send_http_header; It seems the MP2 syntax is now: $r = Apache2::RequestRec->new($c); $r->content_type("text/html"); How do I get $c? How do I send the http header now? Thanks, Boysenberry boysenberrys.com | habitatl

[patch mp2] Fixes to $0 handling [Was: Directive changes the command name]

2005-09-21 Thread Philippe M. Chiasson
I've finally had time to dig deeper in the troubling $0 and process display problems that seem to exist at least on *BSDs and HP-UX. On linux, modifications to the original argv[0] will directy modify the process information. On some other OSes, some special API is needed. Perl's $0 magic handlin

Re: how to avoid the caching of the executed perl file

2005-09-21 Thread Malcolm J Harwood
On Wednesday 21 September 2005 07:09 pm, Aliet Santiesteban Sifontes wrote: > Hi list, I have a problem with a .pl script, the scripts is executed in > the first request, and it's been cached by the server, I call this > script passing different arguments, and I expect that it must be > executed

how to avoid the caching of the executed perl file

2005-09-21 Thread Aliet Santiesteban Sifontes
Hi list, I have a problem with a .pl script, the scripts is executed in the first request, and it's been cached by the server, I call this script passing different arguments, and I expect that it must be executed with the new args but, I'm having the same output from the first execution wich s

Re: apache crash with MP2 Win32 HTTPS

2005-09-21 Thread Matthew Darwin
Not sure if this helps. It looks like maybe an SSL problem, not related to mod_perl? [Wed Sep 21 12:10:20 2005] [info] Initial (No.1) HTTPS request received for child 246 (server myserver:443) [Wed Sep 21 12:10:23 2005] [info] Connection to child 249 established (server myserver:443, clien

Re: PerlInterpMaxRequests

2005-09-21 Thread Philip M. Gollucci
Fabian Kreitner wrote: PerlInterpStart 1 PerlInterpMax 1 PerlInterpMaxRequests 1 You might try setting: MaxRequestsPerChild 1 for preform mpm Though I thought PerlInterpMaxRequests 1 should work too http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlInterpMaxRequest

PerlInterpMaxRequests

2005-09-21 Thread Fabian Kreitner
Hello, I've recently switched to Apache 2 with mod_perl 2. Unfortunately I still have to run some perl scripts which only worked with Apache::PerlRun and PerlSetVar PerlRunOnce On. After a bit of reading I concluded that ServerNametest DocumentRoot /test/html

[mp2] $r->print produces errors when Content-Disposition contains "built" filename

2005-09-21 Thread Christopher Stanton
Fedora Core 4 httpd-2.0.54-10 mod_perl-2.0.0-0.rc5.3 nph mod_perl script If I user $r->print to print the response to the client, it returns that it sent more bytes than length($write_buffer) and the JPEG, which is part of the response, is bad if the response header contains a Content-Dispositi

Re: ->lookup_uri(...), ->run() & Headers

2005-09-21 Thread Geoffrey Young
> And this works like a charm (the content on the php-script is parsed and > executed), except for the headers. I don't get any headers generated > from the php-script. Is there any way of getting them through to the > user? oooh! sorry, I totally misread what you were trying to do - print heade

Re: ->lookup_uri(...), ->run() & Headers

2005-09-21 Thread Geoffrey Young
> I've now tried any combination of: > ( $r | $subr ) ->assbackwards( 0 | 1 ); blarg. yes, that was supposed to be $subr->assbackwards(), not $r->assbackwards. > The only one with any effect was: $r->assbackwards(1); which resulted in > no headers at all. Not quite what I was hoping for ;o) hm

Re: ->lookup_uri(...), ->run() & Headers

2005-09-21 Thread Morten Bøgeskov
On Wed, 2005-09-21 at 07:34 -0400, Geoffrey Young wrote: > > sub handler : method { > > my($class, $r) = @_; > > my $subr = $r->lookup_uri('/index.php?a=1&b=2'); > > $r->assbackwards(0); > > > return $subr->run(); > > } > > > And this works like a charm (the content on the php-script i

Re: ->lookup_uri(...), ->run() & Headers

2005-09-21 Thread Geoffrey Young
> sub handler : method { > my($class, $r) = @_; > my $subr = $r->lookup_uri('/index.php?a=1&b=2'); $r->assbackwards(0); > return $subr->run(); > } > And this works like a charm (the content on the php-script is parsed and > executed), except for the headers. I don't get any headers ge

->lookup_uri(...), ->run() & Headers

2005-09-21 Thread Morten Bøgeskov
Hello... I'm trying to wrap an entire website in a perl handler. And then use the $r->lookup_uri() to access some files in the domain. httpd.conf:---8<-- PerlAccessHandler FOO_Access PerlResponseHandler FOO_Response FOO_Access.