Ashwin Rao wrote:I'm using elementary os(built on ubuntu 12.04)
I tried to edit the apache2.conf file.
Eventhough it wasn't empty I couldn't find any of the commands (like ScriptAlias or LoadModule) that are listed in the link I posted above.
You have to edit the file and add those. So for instance if your Perl scripts are in
/usr/local/apache2/cgi-bin/, they should be treated as a CGI script, not a web page.
ScriptAlias /cgi-bin/ /usr/local/apache2/cgi-bin/
If your script is called myscript.pl then the URL would look like this:
http://mydomain.net/cgi-bin/myscript.pl