I'm under Apache 2.4.7 and Ubuntu 14.04.
I'm trying to run the following basic perl script (/home/fred/workspace/portfolio/cgi/fred.pl) under ModPerl::Registry
but it won't execute (the browser treats it as a file to download, not a perl script)
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "Hi Fred !";
This is my virtual host configuration :
<VirtualHost 127.0.0.1:80>
ServerAdmin webmaster@localhost
DocumentRoot /home/fred/workspace/portfolio/html
AddHandler perl-script .cgi .pl
PerlModule ModPerl::Registry
Alias / /home/fred/workspace/portfolio/cgi/
<Location />
SetHandler perl-script
PerlHandler ModPerl::Registry
Require all granted
Options +ExecCGI
</Location>
I previously run
sudo a2enmod cgi
which actually enabled cgid (my apache is threaded), fine.
when I type 127.0.0.1/fred.pl, no execution (fred.pl has rights 777)