Question : Cannot get cgi-bin working

Hi,
I have gone through the apache2 docs and can't figure out what I am missing here.  Hopefully someone can help.  When I go to load the cgi script it prints out the source code instead of executing it.

the apache page I checked was here:

http://httpd.apache.org/docs/2.0/howto/cgi.html

I'm installing big brother on an existing apache server as a virtualhost.  OS is sles10sp2.  Apache is 2.0.63.    The cgi-bin directory does not seem to work for my virtual host. Below is my existing configuration.  I am sure some of it is redundant in the <Directory> directive since I already configured with the "ScriptAlias" line but I was basically at throw-spaghetti-on-the-wall mode at this point


<VirtualHost server:80>
    DocumentRoot /home/bb/bb1.9i-btf/www
    ServerName bb.server
    ScriptAlias /cgi-bin/ "/home/bb/bb1.9i-btf/www/cgi-bin/"
    ErrorLog  logs/bb_error_log
    CustomLog logs/bb_access_log combined

        <Directory "/home/bb/bb1.9i-btf/www/cgi-bin">
        Options ExecCGI
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
        </Directory>

</VirtualHost>

My cgi script is in the above bb cgi-bin dir

server:/home/bb/bbhome/www/cgi-bin# cat test.pl
#!/usr/bin/perl

print "Content-type:text/html\n\n";

print "HEllo World"
server:/home/bb/bbhome/www/cgi-bin#

I've already run it successfully from the command line and I also ran it on another server that has cgi working sucessfully (no virtual hosts though)

On this server when I load up

http://bb.server/cgi-bin/test.pl

it loads up the source/content of the test.pl instead of executing.

Anyway, what should I look for? What am I missing?

Thanks!

Answer : Cannot get cgi-bin working

Windows takes a few minutes to finish loading all services.  It depends on your speed of your cpu, speed of your hard drive and how much RAM you have.

Try removing the free AVG and see what happens.  If problem persists, do a defrag analyze and defrag the hard drive if it needs it that will speed up the Windows loading.
Random Solutions  
 
programming4us programming4us