Salve a tutti,
ho un server web con ubuntu 7.10. Ho installato apache, nel file httpd.conf ho:


# ScriptAlias cgi-bin "var/www/cgi-bin"
<Directory "var/www/cgi-bin">
AddHandler cgi-script .cgi
AddHandler cgi-script .pl

AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch -Indexes

Order allow,deny
Allow from all

</Directory>


Nella cartella "var/www/cgi-bin ho due file:

=> test.cgi (con permessi impostati a 755);
=> test.pl (con permessi impostati a 755);

Il file test.cgi contiene:
Codice PHP:

#!/bin/sh

#Filename: Salve.sh.cgi
echo "Content-type: text/html"
echo
echo 
"<HTML><HEAD><TITLE>Salve Rete!</TITLE></HEAD>"
#HTML body
ECHO "<BODY><H1>Salve Rete!</H1></BODY></HTML>" 

Il file test.pl contiene:

Codice PHP:
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print 
"Hello, World."
Vado sul sito all'indirizzo http://miosito/cgi-bin/test.pl oppure http://miosito/cgi-bin/test.cgi mi viene restituito il seguente errore:

Codice PHP:
Internal Server Error
The server encountered an internal error 
or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email]zzzz@xxxx.cccc[/email] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
================================ 
Nei log trovo:

No such file or directory: exec of '/var/www/cgi-bin/test.cgi' failed
No such file or directory: exec of '/var/www/cgi-bin/test.pl' failed


Dove sbaglio?
Grazie