Apache2 scripts and perl…

Save this pl file as… instead of running it?

Look in /etc/apache2/sites-available/default

for where your scripts should be:

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory “/usr/lib/cgi-bin”>

AllowOverride None

Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all


in this case:


sudo a2enmod will show the modules installed

also check the shebang and that it matched which perl

$ which perl


#!/usr/bin/perl -w

and also ensure a chmod 755 on the executables


~ by nambabwe on 2007/12/05.

%d bloggers like this: