I am using Ubuntu 8.04 server to run a web server. I am trying to and a cgi script that I wrote to my page. When I use the
Code:
<--! #exec cgi="/cgi-bin/counter.cgi"-->
tag in my html. It does not execute at all. But if I got to
http://192.168.X.X/cgi-bin/counter.cgi I see the correct output is displayed on my browser. I have read several forums and the apache2 docs trying to figure out why. I have seen several different ways to do it. I have tried to XBitHack and had the same results. Also add AddHandler cgi-script .cgi to my mime.conf file. I also installed libapache2-mod-perl2. I also enabled the mod_include for apache. Here are is a paste from my enabled sites. I am not running virtual host so it is pretty much the default from a baseline install for all my conf files.
Code:
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
I would greatly appreciate any help or advice.