To answer all the replies:
Script is executable:
-rwxr-xr-x 1 kevin kevin 1076 May 4 12:11 index.pl*
The script starts with:
print "Content-type: text/html\n\n";
The #! line is correct, I checked.
I changed the directives to
AddHandler cgi-script .cgi .pl
I still get the same response. In konqueror I just get a copy of the raw
script. It appears to send it to me as plain text and skip sending it to perl
Kevin Philp wrote:
> I want to run a few perl scripts outside of the usual /per/ or
> /cgi-bin/ directories and in the main web tree. Perl works fine from
> the /perl/ directory but I can't get it working in any other
> directories. I followed the instructions in the Apache manual and
>> <Directory "/var/www/html/teerhatavaz"> Options +ExecCGI AddHandler
> cgi-script cgi pl </Directory>
>> But just got the source code thrown out. I also tried
>> <Directory "/var/www/html/teerhatavaz"> Options +ExecCGI
> AddHandler perl-script cgi pl SetHandler perl-script
A Lack of AllowOverride somewhere before ?
> Doesn't appear to be processing the scripts as perl. Any ideas
Does it sends you the raw perl source ?
Is your script chmod ogu +x ?
Does your script start with #/usr/bin/perl ?
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!