When reporting problems, please *always* follow the guidelines:
http://use.perl.org/bugs/

BTW - The script looks like this:
#!/usr/local/bin/perl -w
use strict;
use Apache;
print "Content-Type: text/html";

that has to be:


print "Content-Type: text/html\n\n";

my $r = Apache->request;
1;
and the error looks like this:
Can't locate object method "request" via package "Apache" at /u/virtual/devel.*****.com/perl-
bin/Inslink.pl line 8.
[Thu Aug 21 10:31:07 2003] [error] [client 192.168.234.85] Premature end of script headers: /u/virtu
al/devel.*****.com/perl-bin/Inslink.pl

You need to load use Apache::RequestUtil ();

See:
http://perl.apache.org/docs/2.0/user/porting/porting.html#Using_C_ModPerl__MethodLookup__to_Discover_Which_mod_perl_2_0_Modules_Need_to_Be_Loaded

Notice it didn't fail on loading the Apache module, just on calling the request method.
Cheers
G


    -----Original Message-----
    *From:* Gareth Kirwan [mailto:[EMAIL PROTECTED]
    *Sent:* 21 August 2003 10:23
    *To:* [EMAIL PROTECTED]
    *Subject:* Apache installation not accepting perl-script Handler

I have a mod perl installation, but it won't accept a perl-script
handler.
In a Location directive I set the handler to perl-script. It fails
to execute the test file properly.
I set it to cgi-script and it executes the file fine ( though I get
complaints about doing Apache->request aftter loading the Apache
module )
I have perl-status running on the server, and it returns fine:
Embedded Perl version *v5.8.0* for *Apache/1.3.27 (Unix)
mod_gzip/1.3.26.1a mod_perl/1.27 mod_ssl/2.8.12 OpenSSL/0.9.6h*
** The loaded modules section shows Apache and Apache::Request to be
loaded.
Any ideas ?
Thanks
Gareth Kirwan
Programming & Development,
Thermeon Europe Ltd,
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
Tel: +44 (0) 1293 864 303
Thermeon Europe e-Card: gbjk
<http://www.thermeoneurope.com/e-Card/?uid=gbjk>


--


__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com



--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html



Reply via email to