Enabling CGI in Apache
I have recently been attempting to get cgi working on my Apache server. I added some lines to the httpd.conf and access.conf files.
In httpd.conf:
"ScriptAlias /cgi-bin/ /var/www/cgi-bin"
"AddHandle cgi-bin .cgi"
In access.conf:
"<Directory /var/www/cgi-bin>
AllowOverride None
Options None
</Directory>"
These lines had to be added manually. The httpd.conf lines were added manually because when added in netconf, they were added before the necessary modules were imported and caused syntax error.
Now, most of the problem is fixed, except when I link to a script, it displays the script in the browser window instead of the printed html.
Any help would be greatly appreciated.
|