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 ...
200 OK
OK
The server encounte
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
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,
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
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 *pe
On Wed, 2006-09-13 at 22:05 -0700, Dave Viner wrote:
> More information about this error may be available
> in the server error log.
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 preven
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
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
Not
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 that
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
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 classes.
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, which will show up in @ARGV, like;
$ /devel/start
I guess you could try to do something dynamic with blocks in your httpd.conf ... open(NEW_MODULE, '>Startup.pm'); print NEW_MODULE ( "package Startup;\n" . "our $arg_1 = 'dv1'; );then within startup.pl you do ...use Startup; (or require "Startup.pm")if($Startup::arg_1 eq 'dv1'
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 pa
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, wh
Radoslaw Zielinski wrote:
> -8<-- Start Bug Report 8<--
> 1. Problem Description:
>
> t/directive/perldo.t fails. make test TEST_VERBOSE=1 output:
This was resolved thanks to Fred Moyer and Geoff. I've just committed there
patch to svn it will be in rc2
16 matches
Mail list logo