RE: umable to run cgi scripts under mod_perl

2001-04-17 Thread Brendan McAdams

you need to close your script with a END.
 
 

-Original Message-
From: Ratan Jha [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 13, 2001 06:33
To: [EMAIL PROTECTED]
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
SetHandlerperl-script
PerlHandlerApache::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
h1This 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 - [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 




Re: umable to run cgi scripts under mod_perl

2001-04-13 Thread G.W. Haywood

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
 h1This is a test/h1
 /body
 /html
 

But where's the END? 

73,
Ged.