By default, the APACHE server's configuration has CGI
turned off. Turning it on is a rather simple matter. In the example
shown below, you will be able to call your scripts with a URL such
as:
Find this line.
#ScriptAlias /cgi-bin/ @@ServerRoot@@/cgi-bin/
Change it to read as follows, but of course substitute the
full unix path to the directory containing your scripts if
it is different than what is shown below.
ScriptAlias /cgi-bin/ /usr/local/apache/share/cgi-bin
Then, track down this line:
#AddHandler cgi-script .cgi
and make it read as follows:
AddHandler cgi-script .cgi
Next, edit the file access.conf file
and find this section of code:
<Directory @@ServerRoot@@/cgi-bin>
AllowOverride None
Options None
</Directory>
and change the Directory to the same value that you used when editing
the srm.conf file.
After making these changes, restart the server and your scripts should
run- provided you did a good job debugging them first. ;-)