This is how to enable the execution of cgi scripts on linux. Add the following code the /etc/apache2/httpd.conf file.
ScriptAlias /cgi-bin/ /var/www/cgi-bin/
<Directory "/var/www/cgi-bin/">
Options ExecCGI
AllowOverride All
Order allow, deny
Allow from all
</Directory>
Remember to make the files that are put there executable by the doing the following.
% chmod +x file.cgi
Lastly you should have had the cgi module loaded in apache.
Advertisement