perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bram Whillock" <b...@cmu.edu>
Subject RE: PerlRun, nothing but page header
Date Mon, 05 Apr 2004 21:45:31 GMT
I tried changing the PerlHandler to Apache::Registry and modified the
script so that it does:
my $r = shift;
$r->send_http_header("text/plain");
$r->print("foo");
return OK;

Which works fine.  But this isn't a good option considering I've got a
lot of code that I want to run under PerlRun.

Also, I removed the shebang line to confirm that it's not using the
shebang line to resolve the perl interpreter.

> -----Original Message-----
> From: Stas Bekman [mailto:stas@stason.org]
> Sent: Monday, April 05, 2004 5:38 PM
> To: Bram Whillock
> Cc: 'Perrin Harkins'; 'Modperl List'
> Subject: Re: PerlRun, nothing but page header
> 
> Bram Whillock wrote:
> > Apache error log says:
> > mod_perl/1.25
> 
> That means nothing, besides having mod_perl present. You need to
configure the
> server to run your script under mod_perl.
> 
> Assuming that your script is under:/var/www/beta/modperl.cgi, your
> configuration:
> 
> PerlWarn On
> PerlTaintCheck On
> PerlModule Apache::PerlRun
> 
> <Directory "/var/www/beta">
>          SetHandler perl-script
>          PerlHandler Apache::PerlRun
>          Options ExecCGI
>          allow from all
>          PerlSendHeader On
> </Directory>
> 
> should work, as long as you don't reset it, somewhere later in
httpd.conf.
> e.g. with ScriptAlias directive, which will use mod_cgi to run the
script.
> 
> __________________________________________________________________
> Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
> http://stason.org/     mod_perl Guide ---> http://perl.apache.org
> mailto:stas@stason.org http://use.perl.org http://apacheweek.com
> http://modperlbook.org http://apache.org   http://ticketmaster.com



-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Mime
View raw message