perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brendan McAdams" <b.mcad...@themunicenter.com>
Subject RE: umable to run cgi scripts under mod_perl
Date Tue, 17 Apr 2001 15:00:53 GMT
you need to close your script with a <<END.
 
 

-----Original Message-----
From: Ratan Jha [mailto:ratan.jha@patni.com]
Sent: Tuesday, March 13, 2001 06:33
To: modperl@apache.org
Subject: 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 <mailto:ratan.jha@patni.com> 


Mime
View raw message