You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Ratan Jha <ra...@patni.com> on 2001/03/13 12:32:55 UTC

umable to run cgi scripts under mod_perl

Running mod_perl-1.22  apache-1.3.11 
I want to run plain perl scripts under mod_perl using Apache:Registry.
I amke a change to my httpd.conf file
Alias /perl/ /usr/local/apache/perl/
<Location /perl>
SetHandler    perl-script
PerlHandler    Apache::Registry
Options          +ExecCGI
PerlSendHeader On
</Location>


I've stored my perl script in the perl directory under ~www/perl
The perl script is:
#!/usr/bin/perl

print <<END;
<html>
<body>
<h1>This is a test</h1>
</body>
</html>

The file is being returned as a plain html file

The output is:

################################################
#!/usr/bin/perl print < 
This is Test
END 
####################################################

Do you have any idea why is this happening?
I'll appreciate your response.

Thanks
Ratan

Ratan M. Jha
Patni Computer Systems Ltd.(PCS)
Unit 55, SDF2, SEEPZ, Andheri(E),
Mumbai.
Call - 8291454/0479 x 5178.
E- mail - ratan.jha@patni.com

Re: umable to run cgi scripts under mod_perl

Posted by "G.W. Haywood" <ge...@www.jubileegroup.co.uk>.
Hi there,

On Tue, 13 Mar 2001, Ratan Jha wrote:

> Running mod_perl-1.22  apache-1.3.11 
> 
> #!/usr/bin/perl
> 
> print <<END;
> <html>
> <body>
> <h1>This is a test</h1>
> </body>
> </html>
> 

But where's the END? 

73,
Ged.