appended success document

2006-09-14 Thread Dave Viner
Hi, I'm trying to write a simple apache module in perl and have apparent success. When i request the page from my server, I get the proper HTML output. However, appended to the end of the proper HTML, is a second HTML document that says: .. my html ... /body /html !DOCTYPE HTML PUBLIC

devel::cover does not produce any output

2006-09-14 Thread Andreas Schuldei
hi i want to research what parts of our code base are unused and added this to the mod_perl startup script: use Devel::Cover -db,cover_db,-coverage,subroutine,-dir,/www/cover,-select,/www/docs/lib; apache starts just fine, i get a whole bunch of redefined warnings in my apache error.log (like

[mp2] accessing mod_perl configuration from another C module

2006-09-14 Thread Srebrenko Sehic
I need to tap into PerlSetVar table from another C module. In mp1, you can do something like the following: #include mod_perl.h perl_dir_config *c = (perl_dir_config *) ap_get_module_config(r-per_dir_config, perl_module); table *perl_vars = c-vars; char *value = ap_table_get(perl_vars,

Re: devel::cover does not produce any output

2006-09-14 Thread Geoffrey Young
Andreas Schuldei wrote: hi i want to research what parts of our code base are unused and added this to the mod_perl startup script: use Devel::Cover -db,cover_db,-coverage,subroutine,-dir,/www/cover,-select,/www/docs/lib; apache starts just fine, i get a whole bunch of redefined

Re: [mp2] accessing mod_perl configuration from another C module

2006-09-14 Thread Srebrenko Sehic
On 9/14/06, Srebrenko Sehic [EMAIL PROTECTED] wrote: I need to tap into PerlSetVar table from another C module. In mp1, you can do something like the following: #include mod_perl.h perl_dir_config *c = (perl_dir_config *) ap_get_module_config(r-per_dir_config, perl_module); table

Re: appended success document

2006-09-14 Thread Perrin Harkins
On Wed, 2006-09-13 at 22:05 -0700, Dave Viner wrote: pMore information about this error may be available in the server error log./p Did you look in the error log? My handler is quite simple, and returns Apache2::Const::OK. What causes this extra document to be appended and how do I

Re: inserting handler/filter in main server vs. virtual host configuration?

2006-09-14 Thread Perrin Harkins
On Wed, 2006-09-13 at 14:24 -0400, Jeff Ambrosino wrote: For httpd.conf in Apache 2.x / mp2, does it matter if I insert a handler in the main server section vs. a virtual host section? My question pertains specifically to performance/memory, as I already understand the logical implications.

?? modperl2-head not picking up LIB paths from apache install

2006-09-14 Thread OpenMacNews
hi all, i'm bldg modperl2 (r443381) on OSX 10.4.7 w/ Apache/2.2.4-dev, APR 1.2.8-dev, APR-Util 1.2.8-dev (all r443341), perl 588 amd msql 5.0.22 @ perl Makefile.PL MP_APXS=/usr/local/apache2/sbin/apxs MP_USE_DSO, i see: ... Writing Makefile for ModPerl::WrapXS Note

Re: appended success document

2006-09-14 Thread Dave Viner
thanks all for the responses... my problem turned out to be that i was returning Apache2::Const::HTTP_OK instead of Apache2::Const::OK from my handler. This caused the document to be appended... for what it's worth, there was no additional information in the error log... but i guess

mod_perl 2 setting request parameters

2006-09-14 Thread Johnny Shz
Hi, I'm trying to migrate some existing mod_perl 1 code to mod_perl 2. The original code uses many calls like: my $value = $r-args-{'foo'}; $r-args-{'foo'} = "bar"; to get and set request parameters. I couldn't seem to find an equivalent in mod_perl 2, Apache2::Request allows retrieving

[ANNOUNCE] Krang v2.007

2006-09-14 Thread Sam Tregar
Krang v2.007 is now available (the source release is up now and binary builds should be up soon). Notable changes in this release and in v2.006, which never received a proper announcement: * Improvements to the list-data management system, command-line tools and associated element

passing an argument to startup.pl

2006-09-14 Thread Geronimo
PROBLEM: I need to pass an argument to startup.pl,in orderto associate Apache2 with a specific version of an app. The app version has a simple identifier, say 'dv1'. What I'm trying to do is emulate passing an argument on the command line, which will show up in @ARGV, like; $

Re: passing an argument to startup.pl

2006-09-14 Thread Jeff Nokes
I guess you could try to do something dynamic with Perl blocks in your httpd.conf ...Perl open(NEW_MODULE, 'Startup.pm'); print NEW_MODULE ( "package Startup;\n" . "our $arg_1 = 'dv1'; );/Perlthen within startup.pl you do ...use Startup; (or require "Startup.pm")if($Startup::arg_1 eq 'dv1') {

Re: mod_perl 2 setting request parameters

2006-09-14 Thread Jeremy Nixon
Johnny Shz [EMAIL PROTECTED] wrote: I couldn't seem to find an equivalent in mod_perl 2, Apache2::Request allows retrieving parameters by its param() method, but no way to set the parameters to be processed further down the chain. Apache2::Request removed the ability to set the request

Re: passing an argument to startup.pl

2006-09-14 Thread Jonathan Vanasco
On Sep 14, 2006, at 4:58 PM, Geronimo wrote: PROBLEM: I need to pass an argument to startup.pl, in order to associate Apache2 with a specific version of an app. The app version has a simple identifier, say 'dv1'. What I'm trying to do is emulate passing an argument on the command line,

svn commit: r446503 - in /perl/modperl/trunk/t: conf/extra.last.conf.in response/TestDirective/perldo.pm

2006-09-14 Thread pgollucci
Author: pgollucci Date: Thu Sep 14 20:52:20 2006 New Revision: 446503 URL: http://svn.apache.org/viewvc?view=revrev=446503 Log: If mod_alias wasn't loaded by httpd the recently added PerlConfig tests would prevent the server from starting. Submitted by: Fed Moyer [EMAIL PROTECTED] Reviewed by: