Domanda

Il messaggio di errore I gen quando provo ad accedere al server della pagina web " 192.168.50.29/cgi-bin/tinyPL.cgi" ;; assomiglia a questo:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@localhost 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.
Apache/2.2.11 (Fedora) Server at 192.168.50.29 Port 80

Error_log:

 [Sat Oct 24 21:30:47 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
 [Sat Oct 24 21:30:47 2009] [notice] Digest: generating secret for digest authentication ...
 [Sat Oct 24 21:30:47 2009] [notice] Digest: done
 [Sat Oct 24 21:30:48 2009] [notice] Apache/2.2.11 (Unix) DAV/2 PHP/5.2.9 mod_ssl/2.2.11 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0 configured -- resuming normal operations
 [Sat Oct 24 21:30:50 2009] [error] [client 192.168.50.69] (13)Permission denied: exec of '/var/www/cgi-bin/tinyPL.cgi' failed
 [Sat Oct 24 21:30:50 2009] [error] [client 192.168.50.69] Premature end of script headers: tinyPL.cgi

Qualcuno potrebbe aiutarmi in questo!

È stato utile?

Soluzione

Il file di registro conterrà ulteriori dettagli sull'errore, ma un errore del server interno su uno script CGI di solito significa che quando il server ha tentato di eseguire il programma CGI le intestazioni previste non erano presenti.

In uno script perl, sarebbe (ad esempio):

use CGI qw(:standard);
print header();

Che stamperà qualcosa del tipo:

Content-type: text/html

Prova a eseguire lo script CGI dalla riga di comando e verifica se stampa quelle righe. L'altro problema potrebbe essere dovuto alle autorizzazioni di accesso. Apache potrebbe non essere in grado di eseguire il tuo script.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top