I would say that according to that, your CGI dir is /usr/lib/cgi-bin/, do you think that is right?Quote:
/etc/apache2/sites-available/default: ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
chdir to that dir and see what is in there. If you find any *.cgi or *.pl files, try to load them in a browser, using the 2nd parameter inthe ScriptAlias line as your path relative to the server root. i.e., if there is a file called /usr/lib/cgi-bin/test.cgi (and it is marked executable), the on the same machine, launch a browser and go to:
http://localhost/cgi-bin/test.cgi
Hopefully you'll get the output of whatever script you've found.
If there is not one there, just open your editor (as root) and in it put:
then save it as /usr/lib/cgi-bin/hello.pl and make it executable:Code:#!/usr/bin/perl
print "Content-type:text/html\n\n";
print "Hello from <b>$0</b>\n";
then execute it from the command line to make sure it works:Code:chmod +x /usr/lib/cgi-bin/hello.pl
then if all is well, load it in your browser:Code:# cd /usr/lib/cgi-bin
# ./hello.pl
Content-type:text/html
Hello from <b>./hello.pl</b>
http://localhost/cgi-bin/hello.pl
If you can get that far, then we can try your other scripts.

