I have configured two virtual hosts on my apache2 server but neither can execute cgi scripts
I can navigate to the script (cgi-bin lies outside web root) using mysite.com/cgi-bin/test.pl but it just displays the code
here is my httpd.conf section for one of the two sites, they are both the same.
# Basic setup
# HTML documents, with indexing.
# CGI Handling
ScriptAlias /cgi-bin/ /usr/local/apache2/cgi-bin/
AddHandler cgi-script cgi pl
CustomLog /usr/local/apache2/logs/access.log combined
In httpd.conf I have commented out everything else to do with cgi except
# ScriptSock: On threaded servers, designate the path to the UNIX
# socket used to communicate with the CGI daemon of mod_cgid.
I have tried chmod 755 cgi-bin and chmod a+x test.pl but no luck
I really need help with this one, thanks for any help