Hola, buenas tardes.
Soy nuevo en Perl. Quisiera que me ayudaran en un problema que tengo.
Estoy subiendo al
hosting donde tengo alojada mi página, un CGI muy sencillo, para efectos de prueba, y es el siguiente:
Construí un archivo llamado CONEC.cgi y fue construido con el editor
Dzsoft Perl Editor 5.8.3.
El editor generó el archivo CONEC.pl pero le cambié la extensión a .CGI.
Este es el contenido del archivo:
Using perl Syntax Highlighting
#!/usr/bin/perl
print "Content-type: text/html \n";
print "<b>prueba</b>";
El verdadero problema es el siguiente: cuando subo este archivo al servidor web en la ruta
https://xxxxxxxxxxxxxxxxxxx.com:2078/www/cgi-bin, cambio los permisos de este archivo a 755 y lo ejecuto y me sale el siguiente mensaje:
Código:
*******************************************************************
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@maestroedison.com 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.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request
******************************************************************
Cabe anotar que tengo otro CGI con el mismo contenido de este, en el servidor y me funciona, no entiendo porque el nuevo noooo...
Lo estoy subiendo al servidor como CONEC.txt, y en formato ASCII, en el servidor le cambio el nombre a CONEC.CGI y le doy los permisos 755.
Por favor, ¿pueden decirme qué es lo que estoy haciendo mal?
Gracias.