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 <
####################################################
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] |
- Re: umable to run cgi scripts under mod_perl Ratan Jha
- Re: umable to run cgi scripts under mod_perl G.W. Haywood
- RE: umable to run cgi scripts under mod_perl Brendan McAdams