Mensajes: 4175 Ubicación: dos hermanas, sevilla
Viernes, 30 Marzo 2012, 19:41
Hola a tod@s
Estoy intentando ejecutar este script, llamado consulta.cgi, en mi servidor apache...
(adjunto el archivo, porque me da problemas al insertarlo en el foro)
Pero me da el siguiente error en el navegador:
Citar:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@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.20 (Ubuntu) Server at localhost Port 80
Y viendo el fichero log de apache2 ( /var/log/apache2/error.log ), aparece lo siguiente:
Citar:
[Fri Mar 30 20:33:56 2012] [error] [client 127.0.0.1] /tmp/gambas.33/4639/project.tmp/MMain.module:12: Unknown identifier: Use, referer:
http://localhost/inicio.html
[Fri Mar 30 20:33:56 2012] [error] [client 127.0.0.1] , referer:
http://localhost/inicio.html
[Fri Mar 30 20:33:56 2012] [error] [client 127.0.0.1] malformed header from script. Bad header='
gambas module file: consulta.cgi, referer:
http://localhost/inicio.html
Si borro la linea que empieza por "use", el script funciona perfectamente, pero necesito incluir las librerias de base de datos al script
¿sabeis porque puede darse este problema?
Saludos